public class MessageDialogView extends com.gwtplatform.mvp.client.ViewImpl implements MessageDialogPresenter.MyView
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
MessageDialogView.Binder
GWT binder.
|
Modifier and Type | Field and Description |
---|---|
(package private) com.google.gwt.user.client.ui.HTML |
bodyMessage
Dialog message
|
private com.google.web.bindery.event.shared.HandlerRegistration |
hideHandlerReg
Modal dialog dismiss event registration
|
(package private) org.gwtbootstrap3.client.ui.Icon |
icon
The icon displayed in the dialog
|
(package private) org.gwtbootstrap3.client.ui.Modal |
modal
The modal window
|
(package private) org.gwtbootstrap3.client.ui.ModalFooter |
modalFooter
Modal footer
|
(package private) org.gwtbootstrap3.client.ui.html.Span |
title
The modal title
|
Constructor and Description |
---|
MessageDialogView(MessageDialogView.Binder binder)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
onReveal()
Called when the view is about to be revealed.
|
void |
show(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 the message dialog.
|
addToSlot, asWidget, bindSlot, bindSlot, bindSlot, initWidget, onAttach, onDetach, removeFromSlot, setInSlot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@UiField org.gwtbootstrap3.client.ui.Modal modal
@UiField org.gwtbootstrap3.client.ui.Icon icon
@UiField org.gwtbootstrap3.client.ui.html.Span title
@UiField com.google.gwt.user.client.ui.HTML bodyMessage
@UiField org.gwtbootstrap3.client.ui.ModalFooter modalFooter
private com.google.web.bindery.event.shared.HandlerRegistration hideHandlerReg
@Inject MessageDialogView(MessageDialogView.Binder binder)
binder
- GWT binder.public void onReveal()
onReveal
in interface MessageDialogPresenter.MyView
public void show(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)
show
in interface MessageDialogPresenter.MyView
title
- Dialog title.message
- Message dialog message.icon
- Message dialog icon.buttonLabels
- Button labels.buttonTypes
- Button types.closeCallback
- Close callback.