V - A view typeProxy_ - A controller's proxy typepublic abstract class BasePresenter<V extends com.gwtplatform.mvp.client.View,Proxy_ extends com.gwtplatform.mvp.client.proxy.Proxy<?>>
extends com.gwtplatform.mvp.client.Presenter<V,Proxy_>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILTER
Filter GET parameter
|
protected com.google.gwt.regexp.shared.RegExp |
filterExp
Filter regular expression
|
protected java.util.logging.Logger |
logger
The call logger
|
private com.gwtplatform.mvp.client.proxy.PlaceManager |
placeManager
Place manager
|
| Constructor and Description |
|---|
BasePresenter(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)
Creates a base presenter for the GWTP framework.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
backTo(com.gwtplatform.mvp.shared.proxy.PlaceRequest request)
Navigates to the given history or current request.
|
protected void |
clearRequestParameter(java.lang.String parameter)
Removes this parameter from the browser's history and its url.
|
java.lang.String |
getCurrentFilter()
Gets the current search template.
|
protected java.lang.String |
getCurrentParameter(java.lang.String key,
java.lang.String defaultValue)
Gets the current GET parameter value if it is found in the current url, otherwise returns
the provided value.
|
protected com.gwtplatform.mvp.client.proxy.PlaceManager |
getPlaceManager()
Returns the GWTP place manager.
|
protected java.util.Map<java.lang.String,java.lang.String> |
getQueryParametersMap(com.gwtplatform.mvp.shared.proxy.PlaceRequest current)
Gets the query parameters map for the given request (the history or current one).
|
protected java.lang.String |
getQueryString()
Gets the current browser's query string.
|
protected java.lang.String |
getQueryString(com.gwtplatform.mvp.shared.proxy.PlaceRequest current)
Gets the query string for the given request (the history or current one).
|
void |
setFilter(java.lang.String value)
Sets the current search filter.
|
protected void |
updateBrowserHistory(java.lang.String key,
java.lang.String value)
Update browser's history and its url
|
bind, forceReveal, getProxy, getRevealType, getSlot, prepareFromRequest, 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 java.lang.String FILTER
protected java.util.logging.Logger logger
private final com.gwtplatform.mvp.client.proxy.PlaceManager placeManager
protected com.google.gwt.regexp.shared.RegExp filterExp
public BasePresenter(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)
eventBus - The event busview - The viewproxy - The place proxyslot - The slotplaceManager - The place managerprotected void updateBrowserHistory(java.lang.String key,
java.lang.String value)
key - The key parameter to updatevalue - The new valueprotected void clearRequestParameter(java.lang.String parameter)
parameter - The GET parameter to removeprotected com.gwtplatform.mvp.client.proxy.PlaceManager getPlaceManager()
protected java.lang.String getCurrentParameter(java.lang.String key,
java.lang.String defaultValue)
key - The GET parameter namedefaultValue - The provided default valueprotected java.lang.String getQueryString()
protected java.lang.String getQueryString(com.gwtplatform.mvp.shared.proxy.PlaceRequest current)
current - The given requestprotected java.util.Map<java.lang.String,java.lang.String> getQueryParametersMap(com.gwtplatform.mvp.shared.proxy.PlaceRequest current)
current - The given requestpublic void setFilter(java.lang.String value)
value - The current search templatepublic java.lang.String getCurrentFilter()
protected void backTo(com.gwtplatform.mvp.shared.proxy.PlaceRequest request)
request - The given history or current request