V
- A view typeProxy_
- A controller's proxy typepublic abstract class PresenterWithStateMachine<V extends com.gwtplatform.mvp.client.View,Proxy_ extends com.gwtplatform.mvp.client.proxy.Proxy<?>> extends BasePresenter<V,Proxy_>
Modifier and Type | Field and Description |
---|---|
private ViewStateMachine.State |
savedState
The saved state
|
private ViewStateMachine |
viewStateMachine
The current view state machine associated with this view presenter
|
FILTER, filterExp, logger
Constructor and Description |
---|
PresenterWithStateMachine(com.google.web.bindery.event.shared.EventBus eventBus,
V view,
Proxy_ proxy,
com.google.gwt.event.shared.GwtEvent.Type<com.gwtplatform.mvp.client.proxy.RevealContentHandler<?>> slot,
com.gwtplatform.mvp.client.proxy.PlaceManager placeManager,
ViewStateMachine viewStateMachine)
Constructs this controller based on the given data.
|
Modifier and Type | Method and Description |
---|---|
void |
changeState(ViewStateMachine.TransitionState transitionState)
Change a current view according to new provided transition state.
|
void |
restoreState()
Restores the current state.
|
void |
setState(ViewStateMachine.State state)
Setups a current view's state.
|
backTo, clearRequestParameter, getCurrentFilter, getCurrentParameter, getPlaceManager, getQueryParametersMap, getQueryString, getQueryString, setFilter, updateBrowserHistory
bind, forceReveal, getProxy, getRevealType, getSlot, prepareFromRequest, revealInParent, setRevealType, setSlot, unbind, useManualReveal
addHandler, 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, setInSlot
private final ViewStateMachine viewStateMachine
private ViewStateMachine.State savedState
public PresenterWithStateMachine(com.google.web.bindery.event.shared.EventBus eventBus, V view, Proxy_ proxy, com.google.gwt.event.shared.GwtEvent.Type<com.gwtplatform.mvp.client.proxy.RevealContentHandler<?>> slot, com.gwtplatform.mvp.client.proxy.PlaceManager placeManager, ViewStateMachine viewStateMachine)
eventBus
- The event busview
- The associated viewproxy
- The associated controller's proxyslot
- The slotplaceManager
- The palce managerviewStateMachine
- The view state machinepublic void changeState(ViewStateMachine.TransitionState transitionState)
transitionState
- The new transition statepublic void setState(ViewStateMachine.State state)
state
- The new view's state.public void restoreState()