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 |
|---|---|
(package private) org.gwtbootstrap3.client.ui.gwt.DataGrid<SessionInfo> |
dataGrid
The session table view
|
private ModalDialogs |
dialogs
Modal dialogs
|
(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
|
(package private) org.gwtbootstrap3.client.ui.Button |
viewTrace
The View Program Trace button
|
logger| Constructor and Description |
|---|
SessionView(SessionView.Binder binder,
ModalDialogs dialogs,
FilterSessionsView filterSessionsView,
TerminateSessionAlert terminateSessionAlert) |
| Modifier and Type | Method and Description |
|---|---|
static com.google.gwt.safehtml.shared.SafeHtml |
buildStackTrace(StacktraceInfo[] traces)
Build the HTML representation of these program traces.
|
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.
|
(package private) void |
onViewTrace(com.google.gwt.event.dom.client.ClickEvent e)
The View Program Trace 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, setupModalSlotaddToSlot, asWidget, bindSlot, bindSlot, bindSlot, initWidget, removeFromSlot, setInSlotclone, 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 viewTrace
@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 ModalDialogs dialogs
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, ModalDialogs dialogs, FilterSessionsView filterSessionsView, TerminateSessionAlert terminateSessionAlert)
binder - The injected GWT UI Binderdialogs - The injected ModalDialogs providerfilterSessionsView - The injected the Filter Session ViewterminateSessionAlert - The injected the Terminate Session Alertpublic static com.google.gwt.safehtml.shared.SafeHtml buildStackTrace(StacktraceInfo[] traces)
traces - The stacktrace information.SafeHtml object holding this cell's content.public void setSessions(SessionInfo[] sessions, com.google.gwt.regexp.shared.RegExp filter)
setSessions in interface SessionPresenter.MyViewsessions - 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="viewTrace") void onViewTrace(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.MyViewpublic TerminateSessionAlert getTerminateSessionAlert()
getTerminateSessionAlert in interface SessionPresenter.MyViewpublic boolean isSessionSelected(SessionInfo session)
isSessionSelected in interface SessionPresenter.MyViewsession - The tested session