public class SessionView extends BaseViewWithUiHandlers<SessionUIHandler> implements SessionPresenter.MyView
Modifier and Type | Class and Description |
---|---|
(package private) static interface |
SessionView.Binder
GWT UI creator
|
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
columnNames
Column names.
|
(package private) org.gwtbootstrap3.client.ui.gwt.DataGrid<SessionInfo> |
dataGrid
The session table view
|
(package private) org.gwtbootstrap3.client.ui.Button |
filter
The Filter button
|
private FilterSessionsView |
filterSessionsView
The Filter Session View
|
private com.google.gwt.i18n.shared.DateTimeFormat |
fmt
The data and time formatter
|
private GridHandle<SessionInfo> |
gridHandle
The grid handle of the session table view
|
(package private) com.google.gwt.user.client.ui.Widget |
modalFragment
Modal container
|
(package private) org.gwtbootstrap3.client.ui.Button |
refresh
The Refresh button
|
private com.google.gwt.view.client.SingleSelectionModel<SessionInfo> |
selectionModel
The session selection model
|
(package private) org.gwtbootstrap3.client.ui.Button |
terminate
The Terminate button
|
private TerminateSessionAlert |
terminateSessionAlert
The Terminate Session Alert
|
logger
Constructor and Description |
---|
SessionView(SessionView.Binder binder,
FilterSessionsView filterSessionsView,
TerminateSessionAlert terminateSessionAlert) |
Modifier and Type | Method and Description |
---|---|
FilterSessionsView |
getFilterView()
Gets a reference to the Filter Session View.
|
TerminateSessionAlert |
getTerminateSessionAlert()
Gets a reference to the Terminate Session Alert.
|
boolean |
isSessionSelected(SessionInfo session)
Tests if the tested session is selected.
|
(package private) void |
onRefresh(com.google.gwt.event.dom.client.ClickEvent e)
The Refresh button click handler.
|
(package private) void |
onTerminate(com.google.gwt.event.dom.client.ClickEvent e)
The Terminate button click handler.
|
void |
setSessions(SessionInfo[] sessions,
com.google.gwt.regexp.shared.RegExp filter)
Sets the session table model.
|
addDialog, onAttach, onDetach, removeModaDialog, setUiHandlers, setupModaDialog, setupModalSlot
addToSlot, asWidget, bindSlot, bindSlot, bindSlot, initWidget, removeFromSlot, setInSlot
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
@UiField(provided=true) org.gwtbootstrap3.client.ui.gwt.DataGrid<SessionInfo> dataGrid
@UiField org.gwtbootstrap3.client.ui.Button refresh
@UiField org.gwtbootstrap3.client.ui.Button filter
@UiField org.gwtbootstrap3.client.ui.Button terminate
@UiField com.google.gwt.user.client.ui.Widget modalFragment
private final FilterSessionsView filterSessionsView
private final TerminateSessionAlert terminateSessionAlert
private final java.lang.String[] columnNames
private final GridHandle<SessionInfo> gridHandle
private final com.google.gwt.view.client.SingleSelectionModel<SessionInfo> selectionModel
private final com.google.gwt.i18n.shared.DateTimeFormat fmt
@Inject SessionView(SessionView.Binder binder, FilterSessionsView filterSessionsView, TerminateSessionAlert terminateSessionAlert)
binder
- The injected GWT UI BinderfilterSessionsView
- The injected the Filter Session ViewterminateSessionAlert
- The injected the Terminate Session Alertpublic void setSessions(SessionInfo[] sessions, com.google.gwt.regexp.shared.RegExp filter)
setSessions
in interface SessionPresenter.MyView
sessions
- The array of sessionsfilter
- The filter criteria@UiHandler(value="refresh") void onRefresh(com.google.gwt.event.dom.client.ClickEvent e)
e
- Click event@UiHandler(value="terminate") void onTerminate(com.google.gwt.event.dom.client.ClickEvent e)
e
- Click eventpublic FilterSessionsView getFilterView()
getFilterView
in interface SessionPresenter.MyView
public TerminateSessionAlert getTerminateSessionAlert()
getTerminateSessionAlert
in interface SessionPresenter.MyView
public boolean isSessionSelected(SessionInfo session)
isSessionSelected
in interface SessionPresenter.MyView
session
- The tested session