public class UiPopupHelperDummy extends AbstractUiPopupHelper
UiPopupHelper.BUTTON_ID_CANCEL, BUTTON_ID_OK| Constructor and Description |
|---|
UiPopupHelperDummy()
The constructor.
|
UiPopupHelperDummy(NlsBundleUtilCoreRoot nlsBundle)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
showPopup(String message,
MessageSeverity severity,
String title,
Consumer<String> callback,
Map<String,String> id2buttonLabelMap)
This method opens a confirmation popup dialog with the given
message. |
void |
showPopup(Throwable error)
This method opens a popup dialog showing the given
error. |
getTitle, showPopup, showPopup, showPopup, showPopup, showPopup, showPopupYesNocreateLogger, doInitialize, getLoggerdoInitialized, getInitializationState, initializepublic UiPopupHelperDummy()
public UiPopupHelperDummy(NlsBundleUtilCoreRoot nlsBundle)
nlsBundle - is the instance of NlsBundleUtilCoreRoot.public void showPopup(String message, MessageSeverity severity, String title, Consumer<String> callback, Map<String,String> id2buttonLabelMap)
message. It is the most generic
and flexible but also the most inconvenient method variant.message - is the message to display.severity - is the MessageSeverity. Should NOT be MessageSeverity.QUESTION.title - is the title that will be displayed in the title-bar of the popup.callback - is the Consumer invoked after the popup has been confirmed (the user has clicked
on one of the buttons). The given String value will be the ID of the button that has been
clicked. The ID is the key of the given id2buttonLabelMap.id2buttonLabelMap - is a Map defining the buttons for the popup. The values are the labels of the buttons while the keys are their IDs. The ID of
the button that has been clicked is passed to the given callback.public void showPopup(Throwable error)
error. It will use
MessageSeverity.ERROR.error - is the Throwable that has occurred.Copyright © 2001–2016 mmm-Team. All rights reserved.