public class ServerMessagesPresenter extends BasePresenter<ServerMessagesPresenter.MyView,ServerMessagesPresenter.MyProxy> implements ServerMesagesUiHandlers
| Modifier and Type | Class and Description |
|---|---|
static interface |
ServerMessagesPresenter.MyProxy
Defines the proxy place for GWTP framework.
|
static interface |
ServerMessagesPresenter.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 dependent modal dialogs on this view
|
private ModalDialogs |
modalDialogsManager
The common modal dialogs manager
|
private Alarm |
serverAlarmsManager
The server alarms manager
|
FILTER, filterExp, logger| Constructor and Description |
|---|
ServerMessagesPresenter(com.google.web.bindery.event.shared.EventBus eventBus,
ServerMessagesPresenter.MyView view,
ServerMessagesPresenter.MyProxy proxy,
com.gwtplatform.mvp.client.proxy.PlaceManager placeManager,
AdminServiceAsync adminService,
ModalDialogs modalDialogsManager,
Alarm serverAlarmsManager)
Defines the Server Messages presenter.
|
| Modifier and Type | Method and Description |
|---|---|
private void |
clearMessages()
Requests to clear the server messages and updates its view accordingly if this action is
completed.
|
void |
onBackAction()
Hides the Server Messages view and displays the invoker view.
|
void |
prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest request)
Loads the data before the associated view will be displayed.
|
private void |
showMessages()
Retrieves the server messages asynchronously and updates its view accordingly if this action
is completed successfully.
|
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, setInSlotpublic static final com.gwtplatform.mvp.client.presenter.slots.NestedSlot MODAL_CONTENT
private final AdminServiceAsync adminService
private final ModalDialogs modalDialogsManager
private final Alarm serverAlarmsManager
@Inject
public ServerMessagesPresenter(com.google.web.bindery.event.shared.EventBus eventBus,
ServerMessagesPresenter.MyView view,
ServerMessagesPresenter.MyProxy proxy,
com.gwtplatform.mvp.client.proxy.PlaceManager placeManager,
AdminServiceAsync adminService,
ModalDialogs modalDialogsManager,
Alarm serverAlarmsManager)
eventBus - The event busview - The associated viewproxy - The proxy placeplaceManager - The place manageradminService - The administration servicemodalDialogsManager - The common modal dialogs managerserverAlarmsManager - The server alarmspublic void prepareFromRequest(com.gwtplatform.mvp.shared.proxy.PlaceRequest request)
prepareFromRequest in class com.gwtplatform.mvp.client.Presenter<ServerMessagesPresenter.MyView,ServerMessagesPresenter.MyProxy>request - The current requestprivate void showMessages()
private void clearMessages()
public void onBackAction()
onBackAction in interface ServerMesagesUiHandlers