public static interface Components.dialog
| Modifier and Type | Method and Description |
|---|---|
static DialogBuilder.ConfirmDialogBuilder |
confirm()
Get a builder to create a message dialog with a OK button in the
dialog toolbar which can be used to close the dialog.
|
static DialogBuilder.MessageDialogBuilder |
message()
Get a builder to create a generic message dialog.
|
static DialogBuilder.QuestionDialogBuilder |
question(DialogBuilder.QuestionDialogCallback questionDialogCallback)
Get a builder to create a question dialog, with a confirm button and
a deny button in the dialog toolbar which will trigger the given
questionDialogCallback to react to the user choice. |
static void |
showConfirm(com.holonplatform.core.i18n.Localizable message)
Show a confirm dialog with given localizable message text.
|
static void |
showConfirm(String message)
Show a confirm dialog with given message text.
|
static void |
showConfirm(String defaultMessage,
String messageCode,
Object... arguments)
Show a confirm dialog with given localizable message text.
|
static void |
showMessage(com.holonplatform.core.i18n.Localizable message)
Show a message dialog with given localizable message text.
|
static void |
showMessage(String message)
Show a message dialog with given message text.
|
static void |
showMessage(String defaultMessage,
String messageCode,
Object... arguments)
Show a message dialog with given localizable message text.
|
static void |
showQuestion(DialogBuilder.QuestionDialogCallback questionDialogCallback,
com.holonplatform.core.i18n.Localizable message)
Show a question dialog with given localizable message text.
|
static void |
showQuestion(DialogBuilder.QuestionDialogCallback questionDialogCallback,
String message)
Show a question dialog with given message text.
|
static void |
showQuestion(DialogBuilder.QuestionDialogCallback questionDialogCallback,
String defaultMessage,
String messageCode,
Object... arguments)
Show a question dialog with given localizable message text.
|
static DialogBuilder.MessageDialogBuilder message()
DialogBuilder.MessageDialogBuilderstatic void showMessage(com.holonplatform.core.i18n.Localizable message)
message - The dialog message textstatic void showMessage(String message)
message - The dialog message textstatic void showMessage(String defaultMessage, String messageCode, Object... arguments)
defaultMessage - Default dialog message if no translation is available
for given messageCode for current
LocalemessageCode - Dialog message translation message keyarguments - Optional dialog message translation argumentsLocalizationProviderstatic DialogBuilder.ConfirmDialogBuilder confirm()
The default OK button message localization code is
DialogBuilder.DEFAULT_OK_BUTTON_MESSAGE_CODE.
DialogBuilder.ConfirmDialogBuilderstatic void showConfirm(com.holonplatform.core.i18n.Localizable message)
message - The dialog message textstatic void showConfirm(String message)
message - The dialog message textstatic void showConfirm(String defaultMessage, String messageCode, Object... arguments)
defaultMessage - Default dialog message if no translation is available
for given messageCode for current
Locale.messageCode - Dialog message translation message keyarguments - Optional dialog message translation argumentsLocalizationProviderstatic DialogBuilder.QuestionDialogBuilder question(DialogBuilder.QuestionDialogCallback questionDialogCallback)
questionDialogCallback to react to the user choice.
The default confirm button message localization code is
DialogBuilder.DEFAULT_CONFIRM_BUTTON_MESSAGE_CODE. The default
deny button message localization code is
DialogBuilder.DEFAULT_DENY_BUTTON_MESSAGE_CODE.
questionDialogCallback - The callback function use to react to the user
selection (not null)DialogBuilder.QuestionDialogBuilderstatic void showQuestion(DialogBuilder.QuestionDialogCallback questionDialogCallback, com.holonplatform.core.i18n.Localizable message)
questionDialogCallback - The callback function use to react to the user
selection (not null)message - The dialog message textstatic void showQuestion(DialogBuilder.QuestionDialogCallback questionDialogCallback, String message)
questionDialogCallback - The callback function use to react to the user
selection (not null)message - The dialog message textstatic void showQuestion(DialogBuilder.QuestionDialogCallback questionDialogCallback, String defaultMessage, String messageCode, Object... arguments)
questionDialogCallback - The callback function use to react to the user
selection (not null)defaultMessage - Default dialog message if no translation is
available for given messageCode
for current LocalemessageCode - Dialog message translation message keyarguments - Optional dialog message translation argumentsLocalizationProviderCopyright © 2020 The Holon Platform. All rights reserved.