Package org.adempiere.webui.window
Class Dialog
java.lang.Object
org.adempiere.webui.window.Dialog
Static method for message and input dialog
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Deprecated, for removal: This API element is subject to removal in a future version.static boolean
Deprecated, for removal: This API element is subject to removal in a future version.static boolean
Ask Question with question icon and (OK) (Cancel) buttonsstatic boolean
Ask Question with question icon and (OK) (Cancel) buttonsstatic boolean
Ask Question with question icon and (OK) (Cancel) buttonsstatic boolean
ask
(String title, int windowNo, String adMessage, String additionalMessage, Callback<Boolean> callback, Object... args) Ask Question with question icon and (OK) (Cancel) buttonsstatic boolean
Ask Question with question icon and (OK) (Cancel) buttonsstatic void
askForInput
(int windowNo, String adMessage, String title, Callback<String> callback) static void
askForInput
(int windowNo, String adMessage, Callback<String> callback) static void
askForInput
(int windowNo, WEditor weditor, String adMessage, String title, Callback<Object> callback) static void
askForInput
(int windowNo, WEditor weditor, String adMessage, Callback<Object> callback) static void
askForInput
(String message, MLookup lookup, int editorType, Callback<Object> callback, org.zkoss.zk.ui.Desktop desktop, int windowNo) static void
askForInput
(String message, MLookup lookup, int editorType, Callback<Object> callback, org.zkoss.zk.ui.Desktop desktop, int windowNo, String title, Object defaultValue) static void
askForInputTextConfirmation
(int windowNo, WEditor weditor, String adMessage, Object[] adMessageArgs, String title, Callback<Map.Entry<Boolean, String>> callback) Confirmation dialog before deleting the records.static void
askForInputWithCancel
(int windowNo, WEditor weditor, String adMessage, String title, Callback<Map.Entry<Boolean, Object>> callback) static void
askForSecretInput
(int windowNo, String adMessage, Callback<String> callback) Same as askForInput but uses password editor for input field.static void
Display dialog with an error iconstatic void
Display dialog with an error iconstatic void
Display dialog with an error iconstatic void
Display dialog with an error iconstatic void
error
(int windowNo, String adMessage, String additionalMessage, Callback<Integer> callback, String title) Display dialog with an error iconstatic void
Display dialog with information icon.static void
Display dialog with information icon.static void
Display dialog with information icon.static void
info
(int windowNo, String adMessage, String additionalMessage, String title, Callback<Integer> callback) Display dialog with information icon.static void
Display dialog with a warning iconstatic void
Display a dialog with a warning iconstatic void
Display a dialog with a warning icon
-
Method Details
-
warn
Display dialog with a warning icon- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translated
-
warn
Display a dialog with a warning icon- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedtitle
- Message box title
-
warn
Display a dialog with a warning icon- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional messagetitle
- If none then one will be generated
-
error
Display dialog with an error icon- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translated
-
error
Display dialog with an error icon- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional message
-
error
public static void error(int windowNo, String adMessage, String additionalMessage, Callback<Integer> callback) Display dialog with an error icon- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional messagecallback
-
-
error
Display dialog with an error icon- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional messagetitle
- If none then one will be generated
-
error
public static void error(int windowNo, String adMessage, String additionalMessage, Callback<Integer> callback, String title) Display dialog with an error icon- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional messagecallback
-title
- If none then one will be generated
-
ask
Deprecated, for removal: This API element is subject to removal in a future version.Ask Question with question icon and (OK) (Cancel) buttons- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translated- Returns:
- true, if OK
-
ask
Ask Question with question icon and (OK) (Cancel) buttons- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedcallback
-- Returns:
- ignore, use callback instead.
-
ask
@Deprecated(forRemoval=true, since="11") public static boolean ask(int windowNo, String adMessage, String additionalMessage) Deprecated, for removal: This API element is subject to removal in a future version.Ask Question with question icon and (OK) (Cancel) buttons- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional clear text message- Returns:
- true, if OK
-
ask
public static boolean ask(int windowNo, String adMessage, String additionalMessage, Callback<Boolean> callback) Ask Question with question icon and (OK) (Cancel) buttons- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional clear text messagecallback
-- Returns:
- ignore, use callback instead.
-
ask
public static boolean ask(String title, int windowNo, String adMessage, Callback<Boolean> callback, Object... args) Ask Question with question icon and (OK) (Cancel) buttons- Parameters:
title
-windowNo
- Number of WindowadMessage
- Message to be translatedcallback
-args
-- Returns:
- ignore, use callback instead.
-
ask
public static boolean ask(int windowNo, String title, String adMessage, String msg, Callback<Boolean> callback) Ask Question with question icon and (OK) (Cancel) buttons- Parameters:
windowNo
- Number of Windowtitle
- Title of the dialog paneladMessage
- Message to be translatedmsg
- Additional clear text messagecallback
-- Returns:
- ignore, use callback instead.
-
ask
public static boolean ask(String title, int windowNo, String adMessage, String additionalMessage, Callback<Boolean> callback, Object... args) Ask Question with question icon and (OK) (Cancel) buttons- Parameters:
title
-windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional clear text messagecallback
-args
-- Returns:
- ignore, use callback instead.
-
askForInput
public static void askForInput(String message, MLookup lookup, int editorType, Callback<Object> callback, org.zkoss.zk.ui.Desktop desktop, int windowNo) - Parameters:
message
-lookup
-editorType
-callback
-desktop
-windowNo
-
-
askForInput
public static void askForInput(String message, MLookup lookup, int editorType, Callback<Object> callback, org.zkoss.zk.ui.Desktop desktop, int windowNo, String title, Object defaultValue) - Parameters:
message
-lookup
-editorType
-callback
-desktop
-windowNo
-title
-defaultValue
-
-
askForInput
public static void askForInput(int windowNo, WEditor weditor, String adMessage, Callback<Object> callback) - Parameters:
windowNo
-weditor
-adMessage
-callback
-
-
askForInput
public static void askForInput(int windowNo, WEditor weditor, String adMessage, String title, Callback<Object> callback) - Parameters:
windowNo
-weditor
-adMessage
-title
-callback
-
-
askForInput
- Parameters:
windowNo
-adMessage
-callback
-
-
askForInput
public static void askForInput(int windowNo, String adMessage, String title, Callback<String> callback) - Parameters:
windowNo
-adMessage
-title
-callback
-
-
askForSecretInput
Same as askForInput but uses password editor for input field.- Parameters:
windowNo
-adMessage
-callback
-
-
askForInputTextConfirmation
public static void askForInputTextConfirmation(int windowNo, WEditor weditor, String adMessage, Object[] adMessageArgs, String title, Callback<Map.Entry<Boolean, String>> callback) Confirmation dialog before deleting the records.- Parameters:
windowNo
-weditor
-adMessage
-adMessageArgs
-title
-callback
-
-
askForInputWithCancel
public static void askForInputWithCancel(int windowNo, WEditor weditor, String adMessage, String title, Callback<Map.Entry<Boolean, Object>> callback) - Parameters:
windowNo
-weditor
-adMessage
-title
-callback
-
-
info
Display dialog with information icon.- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translated
-
info
Display dialog with information icon.- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional message
-
info
Display dialog with information icon.- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional messagetitle
- If none then one will be generated
-
info
public static void info(int windowNo, String adMessage, String additionalMessage, String title, Callback<Integer> callback) Display dialog with information icon.- Parameters:
windowNo
- Number of WindowadMessage
- Message to be translatedadditionalMessage
- Additional messagetitle
- If none then one will be generatedcallback
- (optional)
-