Module io.github.mmm.ui.api.window
Class AbstractUiNotifier
java.lang.Object
io.github.mmm.ui.api.window.notiy.AbstractUiNotifier
- All Implemented Interfaces:
UiNotifier,UiPopupNotifier
Abstract base implementation of
UiPopupNotifier.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePopup(UiNotification notification, UiAction... actions) This method creates apopup windowwith the givenmessage.voidvoidshow(UiNotification notification) abstract voidshowGrowl(UiNotification notification) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.mmm.ui.api.notify.UiNotifier
show, showInfoMethods inherited from interface io.github.mmm.ui.api.window.notiy.UiPopupNotifier
createPopupOk, createPopupOk, createPopupYesNo, showPopup, showPopupOk, showPopupOk, showPopupYesNo
-
Constructor Details
-
AbstractUiNotifier
public AbstractUiNotifier()The constructor.
-
-
Method Details
-
getHistory
- Specified by:
getHistoryin interfaceUiNotifier- Specified by:
getHistoryin interfaceUiPopupNotifier- Returns:
- the history of the notifications collected by this
UiNotifier. It may be only a queue with the last N number ofUiNotifications to avoid memory leaks.
-
event
- Specified by:
eventin interfaceUiNotifier
-
show
- Specified by:
showin interfaceUiNotifier
-
showGrowl
- Parameters:
notification- theUiNotificationto show as growl message box. Such growl box will typically appear at the bottom right and automatically fade out after some time.
-
createPopup
Description copied from interface:UiPopupNotifierThis method creates apopup windowwith the givenmessage. It is the most generic and flexible but also the most inconvenientshowPopupmethod variant.- Specified by:
createPopupin interfaceUiPopupNotifier- Parameters:
notification- theUiNotificationto show.actions- are theUiActions for the buttons to close (answer, confirm, or cancel) the popup. Has to be at least oneUiAction.- Returns:
- the
UiPopup.
-