net.customware.gwt.presenter.client
Interface Presenter

All Known Implementing Classes:
BasicPresenter, DeckPresenter, WidgetContainerPresenter, WidgetPresenter

public interface Presenter


Method Summary
 void bind()
          Called when the presenter is initialised.
 Display getDisplay()
          Returns the Display for the current presenter.
 boolean isBound()
          Returns true if the presenter is currently in a 'bound' state.
 void revealDisplay()
          Requests the presenter to reveal the display on screen.
 void unbind()
          Called after the presenter and display have been finished with for the moment.
 

Method Detail

bind

void bind()
Called when the presenter is initialised. This is called before any other methods. Any event handlers and other setup should be done here rather than in the constructor.


unbind

void unbind()
Called after the presenter and display have been finished with for the moment.


isBound

boolean isBound()
Returns true if the presenter is currently in a 'bound' state. That is, the bind() method has completed and unbind() has not been called.

Returns:
true if bound.

getDisplay

Display getDisplay()
Returns the Display for the current presenter.

Returns:
The display.

revealDisplay

void revealDisplay()
Requests the presenter to reveal the display on screen. It should automatically ask any parent displays/presenters to reveal themselves also. It should not trigger a refresh.



Copyright © 2010 customware.net. All Rights Reserved.