com.extjs.gxt.ui.client.mvc
Class View

java.lang.Object
  extended by com.extjs.gxt.ui.client.mvc.View

public abstract class View
extends java.lang.Object

Views are responsible for rendering the user interface.


Field Summary
protected  Controller controller
           
protected  boolean initialized
           
 
Constructor Summary
View(Controller controller)
          Creates a new view instance.
 
Method Summary
protected  void fireEvent(AppEvent event)
          Called when a view needs to pass an event to it's controller.
protected  void fireEvent(EventType eventType)
          Called when a view needs to pass an event to it's controller.
 Controller getController()
          Returns the view's controller.
protected abstract  void handleEvent(AppEvent event)
          Process the event.
protected  void initialize()
          Called once prior to handleEvent being called.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

controller

protected Controller controller

initialized

protected boolean initialized
Constructor Detail

View

public View(Controller controller)
Creates a new view instance.

Parameters:
controller - the parent controller
Method Detail

getController

public Controller getController()
Returns the view's controller.

Returns:
the controller

fireEvent

protected void fireEvent(AppEvent event)
Called when a view needs to pass an event to it's controller.

Parameters:
event - the application event

fireEvent

protected void fireEvent(EventType eventType)
Called when a view needs to pass an event to it's controller.

Parameters:
eventType - the event type

handleEvent

protected abstract void handleEvent(AppEvent event)
Process the event.

Parameters:
event - the event to be processed

initialize

protected void initialize()
Called once prior to handleEvent being called. Widgets should be instantiated in the init method rather than the view constructor.