Packagegs.display.view
Classpublic class BaseView
InheritanceBaseView Inheritance GSClip Inheritance flash.display.MovieClip
SubclassesBaseFormView

The BaseView class is the base for any views, and provides common hooks and properties.



Public Properties
 PropertyDefined by
  controller : *
A controller for this view.
BaseView
 Inheritedstage : Stage
StageRef.stage (gs.util.StageRef)
GSClip
Public Methods
 MethodDefined by
  
Constructor for BaseView instances.
BaseView
  
dispose():void
Override this method and write your own dispose logic.
BaseView
 Inherited
hide():void
Sets the visible property to false.
GSClip
 Inherited
show():void
Sets the visible property to true.
GSClip
Protected Methods
 MethodDefined by
  
Override this method, and use the event manager to add event handlers on your objects.
BaseView
  
init():void
Initialize this view - called from the constructor.
BaseView
  
onActivate():void
Override this method to hook into the activate event.
BaseView
  
Override this method to hook into the added to stage event.
BaseView
  
onDeactive():void
Override this method to hook into the deactivate event.
BaseView
  
onMouseLeave():void
A method you can override to hook into the mouse leve event.
BaseView
  
Override this method to hook into the removed from stage event.
BaseView
  
onResize():void
Override this method to hook into resize events from the stage.
BaseView
  
Override this method, and remove events from objects that were registered with the event manager.
BaseView
Property detail
controllerproperty
public var controller:*

A controller for this view.

Constructor detail
BaseView()constructor
public function BaseView()

Constructor for BaseView instances.

Method detail
addEventHandlers()method
protected function addEventHandlers():void

Override this method, and use the event manager to add event handlers on your objects.

dispose()method 
public override function dispose():void

Override this method and write your own dispose logic.

init()method 
protected function init():void

Initialize this view - called from the constructor.

onActivate()method 
protected function onActivate():void

Override this method to hook into the activate event.

onAddedToStage()method 
protected function onAddedToStage():void

Override this method to hook into the added to stage event.

This method calls addEventHandlers() and onResize().

onDeactive()method 
protected function onDeactive():void

Override this method to hook into the deactivate event.

onMouseLeave()method 
protected function onMouseLeave():void

A method you can override to hook into the mouse leve event.

onRemovedFromStage()method 
protected function onRemovedFromStage():void

Override this method to hook into the removed from stage event.

This method also calls removeEventHandlers().

onResize()method 
protected function onResize():void

Override this method to hook into resize events from the stage.

removeEventHandlers()method 
protected function removeEventHandlers():void

Override this method, and remove events from objects that were registered with the event manager.