public class TerminateSessionAlert extends ModalViewWithUiHandlers<SessionUIHandler>
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
TerminateSessionAlert.AlertMessages
Alert message templates.
|
(package private) static interface |
TerminateSessionAlert.Binder
GWT UI creator
|
Modifier and Type | Field and Description |
---|---|
private TerminateSessionAlert.AlertMessages |
messages
The alerts builder
|
(package private) org.gwtbootstrap3.client.ui.Modal |
modal
The underlined modal dialog
|
(package private) org.gwtbootstrap3.client.ui.Button |
noAction
The No cancel button
|
private SessionInfo |
sessionToTerminate
The session to terminate
|
(package private) org.gwtbootstrap3.client.ui.html.Text |
terminateAlert
The alert text widget
|
(package private) org.gwtbootstrap3.client.ui.Button |
yesAction
The Yes approval button
|
logger
Constructor and Description |
---|
TerminateSessionAlert(TerminateSessionAlert.Binder binder,
TerminateSessionAlert.AlertMessages messages)
Constructs this dialog used by by MPV gwtplatform of ArcBees Inc.
|
Modifier and Type | Method and Description |
---|---|
protected org.gwtbootstrap3.client.ui.Modal |
getModal()
Provides an access to the target modal dialog.
|
(package private) void |
onNoAction(com.google.gwt.event.dom.client.ClickEvent e)
The No cancel button click handler.
|
(package private) void |
onYesAction(com.google.gwt.event.dom.client.ClickEvent e)
The Yes approval button click handler.
|
void |
setAlert(SessionInfo session)
Setups this alert dialog.
|
addHideHandler, addShowHandler
getUiHandlers, setUiHandlers
@UiField org.gwtbootstrap3.client.ui.html.Text terminateAlert
@UiField org.gwtbootstrap3.client.ui.Button yesAction
@UiField org.gwtbootstrap3.client.ui.Button noAction
private final TerminateSessionAlert.AlertMessages messages
private SessionInfo sessionToTerminate
@UiField org.gwtbootstrap3.client.ui.Modal modal
@Inject public TerminateSessionAlert(TerminateSessionAlert.Binder binder, TerminateSessionAlert.AlertMessages messages)
binder
- The injected GWT UI creatormessages
- The injected alerts builder@UiHandler(value="yesAction") void onYesAction(com.google.gwt.event.dom.client.ClickEvent e)
e
- Click event@UiHandler(value="noAction") void onNoAction(com.google.gwt.event.dom.client.ClickEvent e)
e
- Click eventpublic void setAlert(SessionInfo session)
session
- The session which is requested to be terminatedprotected org.gwtbootstrap3.client.ui.Modal getModal()
getModal
in class ModalViewWithUiHandlers<SessionUIHandler>