|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.customware.gwt.presenter.client.BasicPresenter<D>
public abstract class BasicPresenter<D extends Display>
Field Summary | |
---|---|
protected D |
display
The display for the presenter. |
protected EventBus |
eventBus
The EventBus for the application. |
Constructor Summary | |
---|---|
BasicPresenter(D display,
EventBus eventBus)
|
Method Summary | |
---|---|
void |
bind()
Called then the presenter is initialised. |
D |
getDisplay()
Returns the display for the presenter. |
abstract Place |
getPlace()
The Place that represents this Presenter. |
protected PlaceRequest |
getPlaceRequest()
|
protected abstract void |
onBind()
This method is called when binding the presenter. |
protected abstract void |
onPlaceRequest(PlaceRequest request)
This method is called when a PlaceRequestEvent occurs that
matches with the value from getPlace() . |
protected abstract void |
onUnbind()
This method is called when unbinding the presenter. |
protected void |
registerHandler(com.google.gwt.event.shared.HandlerRegistration handlerRegistration)
Any HandlerRegistration s added will be removed when
unbind() is called. |
void |
unbind()
Called after the presenter and display have been finished with for the moment. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.customware.gwt.presenter.client.Presenter |
---|
refreshDisplay, revealDisplay |
Field Detail |
---|
protected final D extends Display display
protected final EventBus eventBus
EventBus
for the application.
Constructor Detail |
---|
public BasicPresenter(D display, EventBus eventBus)
Method Detail |
---|
public void bind()
Presenter
bind
in interface Presenter
protected void registerHandler(com.google.gwt.event.shared.HandlerRegistration handlerRegistration)
HandlerRegistration
s added will be removed when
unbind()
is called. This provides a handy way to track event
handler registrations when binding and unbinding.
handlerRegistration
- The registration.public void unbind()
Presenter
unbind
in interface Presenter
protected abstract void onBind()
protected abstract void onUnbind()
registerHandler(HandlerRegistration)
will have already been removed at this point.
public D getDisplay()
getDisplay
in interface Presenter
protected PlaceRequest getPlaceRequest()
public abstract Place getPlace()
Place
that represents this Presenter.
protected abstract void onPlaceRequest(PlaceRequest request)
PlaceRequestEvent
occurs that
matches with the value from getPlace()
.
request
- The request.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |