net.customware.gwt.presenter.client
Interface Presenter

All Known Implementing Classes:
BasicPresenter, WidgetPresenter

public interface Presenter


Method Summary
 void bind()
          Called then the presenter is initialised.
 Display getDisplay()
          Returns the Display for the current presenter.
 void refreshDisplay()
          Requests the presenter to refresh the contents of the display.
 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 then 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.


getDisplay

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

Returns:
The display.

refreshDisplay

void refreshDisplay()
Requests the presenter to refresh the contents of the display. This does not force the display to be revealed on screen.


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 © 2009 customware.net. All Rights Reserved.