|
||||||||||
| 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>
net.customware.gwt.presenter.client.widget.WidgetPresenter<T>
net.customware.gwt.presenter.client.widget.WidgetContainerPresenter<T>
public abstract class WidgetContainerPresenter<T extends WidgetContainerDisplay>
This class provides support for widgets that contain other widgets. It will
listen for PresenterRevealedEvents and reveal itself if the source
was a direct child of this presenter.
| Field Summary |
|---|
| Fields inherited from class net.customware.gwt.presenter.client.BasicPresenter |
|---|
display, eventBus |
| Constructor Summary | |
|---|---|
WidgetContainerPresenter(T display,
EventBus eventBus,
WidgetPresenter<?>... presenters)
|
|
| Method Summary | |
|---|---|
protected boolean |
addPresenter(WidgetPresenter<?> presenter)
Adds the presenter, if the current presenter is unbound. |
protected boolean |
addPresenters(WidgetPresenter<?>... presenters)
Adds the list of presenters, if they are unbound. |
protected WidgetPresenter<?> |
getCurrentPresenter()
|
protected int |
indexOf(WidgetPresenter<?> presenter)
|
protected void |
onBind()
This method is called when binding the presenter. |
protected void |
onRevealDisplay()
Called before firing a PresenterRevealedEvent. |
protected void |
onUnbind()
This method is called when unbinding the presenter. |
protected boolean |
setCurrentPresenter(WidgetPresenter<?> presenter)
Sets the specified presenter to the be currently displaying presenter. |
| Methods inherited from class net.customware.gwt.presenter.client.BasicPresenter |
|---|
bind, firePresenterChangedEvent, firePresenterRevealedEvent, getDisplay, isBound, registerHandler, revealDisplay, unbind |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WidgetContainerPresenter(T display,
EventBus eventBus,
WidgetPresenter<?>... presenters)
| Method Detail |
|---|
protected boolean addPresenters(WidgetPresenter<?>... presenters)
false will be returned if any were
ignored.
presenters - The list of presenters.
false if any of the presenters were bound, and
therefor not added.protected boolean addPresenter(WidgetPresenter<?> presenter)
presenter - The presenter to add.
true.protected void onBind()
BasicPresenter
onBind in class BasicPresenter<T extends WidgetContainerDisplay>protected void onUnbind()
BasicPresenterBasicPresenter.registerHandler(HandlerRegistration)
will have already been removed at this point.
onUnbind in class BasicPresenter<T extends WidgetContainerDisplay>protected WidgetPresenter<?> getCurrentPresenter()
protected boolean setCurrentPresenter(WidgetPresenter<?> presenter)
addPresenter(WidgetPresenter>)),
it will not be set as the current presenter.
presenter - The presenter.
true if the presenter was successfully set as the current presenter.protected int indexOf(WidgetPresenter<?> presenter)
protected void onRevealDisplay()
BasicPresenterPresenterRevealedEvent.
onRevealDisplay in class BasicPresenter<T extends WidgetContainerDisplay>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||