public class MessageDialogPresenter extends com.gwtplatform.mvp.client.PresenterWidget<MessageDialogPresenter.MyView>
| Modifier and Type | Class and Description |
|---|---|
static interface |
MessageDialogPresenter.MyView
The presenter's view.
|
| Constructor and Description |
|---|
MessageDialogPresenter(com.google.web.bindery.event.shared.EventBus eventBus,
MessageDialogPresenter.MyView view)
Ctor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
onReveal()
Lifecycle method called whenever this presenter is about to be
revealed.
|
void |
showMessage(java.lang.String title,
java.lang.String message,
org.gwtbootstrap3.client.ui.constants.IconType icon,
java.lang.String[] buttonLabels,
org.gwtbootstrap3.client.ui.constants.ButtonType[] buttonTypes,
java.util.function.Consumer<java.lang.Integer> closeCallback)
Shows a modal dialog according to the supplied arguments.
|
void |
showMessage(java.lang.String title,
java.lang.String message,
MessageType type,
java.lang.String[] buttonLabels,
org.gwtbootstrap3.client.ui.constants.ButtonType[] buttonTypes,
java.util.function.Consumer<java.lang.Integer> closeCallback)
Shows a modal dialog according to the supplied arguments.
|
void |
showOKCancel(java.lang.String title,
java.lang.String message,
MessageType type,
java.util.function.Consumer<java.lang.Integer> closeCallback)
Shows the ok-cancel modal dialog according to the supplied arguments.
|
void |
showYesNo(java.lang.String title,
java.lang.String message,
MessageType type,
java.util.function.Consumer<java.lang.Integer> closeCallback)
Shows the yes-no modal dialog according to the supplied arguments.
|
void |
showYesNoCancel(java.lang.String title,
java.lang.String message,
MessageType type,
java.util.function.Consumer<java.lang.Integer> closeCallback)
Shows the yes-no-cancel modal dialog according to the supplied arguments.
|
addHandler, addRegisteredHandler, addToPopupSlot, addToPopupSlot, addToSlot, addToSlot, addVisibleHandler, asWidget, clearSlot, clearSlot, equals, fireEvent, fireEvent, getChild, getChildren, getChildren, getEventBus, getView, hashCode, isVisible, onHide, onReset, registerVisibleHandler, removeFromParentSlot, removeFromPopupSlot, removeFromSlot, removeFromSlot, setInSlot, setInSlot, setInSlot, setInSlot@Inject
MessageDialogPresenter(com.google.web.bindery.event.shared.EventBus eventBus,
MessageDialogPresenter.MyView view)
eventBus - Event bus reference.view - Presenter's view.public void showYesNo(java.lang.String title,
java.lang.String message,
MessageType type,
java.util.function.Consumer<java.lang.Integer> closeCallback)
title - Modal dialog title.message - The dialog message.type - The message type.closeCallback - Close callback called when the dialog is dismissed.public void showYesNoCancel(java.lang.String title,
java.lang.String message,
MessageType type,
java.util.function.Consumer<java.lang.Integer> closeCallback)
title - Modal dialog title.message - The dialog message.type - The message type.closeCallback - Close callback called when the dialog is dismissed.public void showOKCancel(java.lang.String title,
java.lang.String message,
MessageType type,
java.util.function.Consumer<java.lang.Integer> closeCallback)
title - Modal dialog title.message - The dialog message.type - The message type.closeCallback - Close callback called when the dialog is dismissed.public void showMessage(java.lang.String title,
java.lang.String message,
MessageType type,
java.lang.String[] buttonLabels,
org.gwtbootstrap3.client.ui.constants.ButtonType[] buttonTypes,
java.util.function.Consumer<java.lang.Integer> closeCallback)
title - Modal dialog title.message - The dialog message.type - The message type.buttonLabels - Button labels.buttonTypes - Button types.closeCallback - Close callback called when the dialog is dismissed.public void showMessage(java.lang.String title,
java.lang.String message,
org.gwtbootstrap3.client.ui.constants.IconType icon,
java.lang.String[] buttonLabels,
org.gwtbootstrap3.client.ui.constants.ButtonType[] buttonTypes,
java.util.function.Consumer<java.lang.Integer> closeCallback)
title - Modal dialog title.message - The dialog message.icon - The dialog icon.buttonLabels - Button labels.buttonTypes - Button types.closeCallback - Close callback called when the dialog is dismissed.protected void onReveal()
onReveal in class com.gwtplatform.mvp.client.PresenterWidget<MessageDialogPresenter.MyView>