public class SessionPresenter extends BasePresenter<SessionPresenter.MyView,SessionPresenter.MyProxy> implements SessionUIHandler
| Modifier and Type | Class and Description |
|---|---|
static interface |
SessionPresenter.MyProxy
Defines the proxy place for GWTP framework.
|
static interface |
SessionPresenter.MyView
This view interface that must be implemented by the concrete view according to GWTP
framework.
|
| Modifier and Type | Field and Description |
|---|---|
private AdminServiceAsync |
adminService
Administration server interface
|
static com.gwtplatform.mvp.client.presenter.slots.NestedSlot |
MODAL_CONTENT
The attachment point for modal dialogs on this view
|
FILTER, filterExp, logger| Constructor and Description |
|---|
SessionPresenter(com.google.web.bindery.event.shared.EventBus eventBus,
SessionPresenter.MyView view,
SessionPresenter.MyProxy proxy,
com.gwtplatform.mvp.client.proxy.PlaceManager placeManager,
AdminServiceAsync adminService)
Defines Session presenter.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
filterSessionList(com.google.gwt.regexp.shared.RegExp filter)
Retrieves the current session list and updates the session table model according to
the given filter criteria.
|
void |
prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest request)
Loads the data before the associated view will be displayed.
|
void |
setDataSelectionFilter(java.lang.String value)
Sets the current search string used as a filter to display the target results.
|
void |
terminateSession(SessionInfo session)
Executes an asynchronous action to terminate the given session and on its completion
to update the current sessions table view.
|
void |
updateSessionList()
Executes an asynchronous action to retrieve the current session list from the server and
to update the current sessions table view.
|
backTo, clearRequestParameter, getCurrentFilter, getCurrentParameter, getPlaceManager, getQueryParametersMap, getQueryString, getQueryString, setFilter, updateBrowserHistorybind, forceReveal, getProxy, getRevealType, getSlot, revealInParent, setRevealType, setSlot, unbind, useManualRevealaddHandler, addRegisteredHandler, addToPopupSlot, addToPopupSlot, addToSlot, addToSlot, addVisibleHandler, asWidget, clearSlot, clearSlot, equals, fireEvent, fireEvent, getChild, getChildren, getChildren, getEventBus, getView, hashCode, isVisible, onHide, onReset, onReveal, registerVisibleHandler, removeFromParentSlot, removeFromPopupSlot, removeFromSlot, removeFromSlot, setInSlot, setInSlot, setInSlot, setInSlotisBound, onBind, onUnbind, registerHandlerclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetCurrentFilterpublic static final com.gwtplatform.mvp.client.presenter.slots.NestedSlot MODAL_CONTENT
private final AdminServiceAsync adminService
@Inject
SessionPresenter(com.google.web.bindery.event.shared.EventBus eventBus,
SessionPresenter.MyView view,
SessionPresenter.MyProxy proxy,
com.gwtplatform.mvp.client.proxy.PlaceManager placeManager,
AdminServiceAsync adminService)
eventBus - The event busview - The associated viewproxy - The proxy placeplaceManager - The place manageradminService - The administration serviceprivate void filterSessionList(com.google.gwt.regexp.shared.RegExp filter)
filter - The filter criteriapublic void updateSessionList()
updateSessionList in interface SessionUIHandlerpublic void prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest request)
prepareFromRequest in class com.gwtplatform.mvp.client.Presenter<SessionPresenter.MyView,SessionPresenter.MyProxy>request - The current requestpublic void setDataSelectionFilter(java.lang.String value)
setDataSelectionFilter in interface BaseUiHandlersvalue - The new search string used as a filter.public void terminateSession(SessionInfo session)
terminateSession in interface SessionUIHandlersession - The session info