Packagecom.bomski.engine.kernel.view
Classpublic class AView
InheritanceAView Inheritance starling.display.Sprite
Implements IView
Subclasses EntityView, GameView, SceneView

Abstract view class



Public Properties
 PropertyDefined By
  canRemove : Boolean
Can remove the view
AView
  displayObject : DisplayObject
[read-only] The displayobject representing the view
AView
  name : String
[override] [read-only] The name
AView
Protected Properties
 PropertyDefined By
  _controller : IController
AView
  _model : IModel
AView
Public Methods
 MethodDefined By
  
AView(name:String, model:IModel = null, controller:IController = null)
Constructor
AView
  
dispose():void
[override] Free all data from an object
AView
Protected Methods
 MethodDefined By
  
handleAddToStage(event:Event):void
Handle add to stage event and add the listener for the controller
AView
  
handleKeyDown(key:KeyboardEvent):void
Handle key down
AView
  
handleKeyUp(key:KeyboardEvent):void
Handle key up
AView
  
Handle model change event
AView
  
Handle model state change event
AView
  
handleRemoveFromStage(event:Event):void
Handle remove from stage event
AView
  
handleStageTouch(touch:TouchEvent):void
Handle stage touch
AView
  
handleTouch(touch:TouchEvent):void
Handle touch
AView
Property Detail
_controllerproperty
protected var _controller:IController

_modelproperty 
protected var _model:IModel

canRemoveproperty 
canRemove:Boolean

Can remove the view


Implementation
    public function get canRemove():Boolean
    public function set canRemove(value:Boolean):void
displayObjectproperty 
displayObject:DisplayObject  [read-only]

The displayobject representing the view


Implementation
    public function get displayObject():DisplayObject
nameproperty 
name:String  [read-only] [override]

The name


Implementation
    public function get name():String
Constructor Detail
AView()Constructor
public function AView(name:String, model:IModel = null, controller:IController = null)

Constructor

Parameters
name:String — The name
 
model:IModel (default = null) — Optional a model
 
controller:IController (default = null) — Optional a controller
Method Detail
dispose()method
override public function dispose():void

Free all data from an object

handleAddToStage()method 
protected function handleAddToStage(event:Event):void

Handle add to stage event and add the listener for the controller

Parameters

event:Event

handleKeyDown()method 
protected function handleKeyDown(key:KeyboardEvent):void

Handle key down

Parameters

key:KeyboardEvent

handleKeyUp()method 
protected function handleKeyUp(key:KeyboardEvent):void

Handle key up

Parameters

key:KeyboardEvent

handleModelChange()method 
protected function handleModelChange(event:ModelChangeEvent):void

Handle model change event

Parameters

event:ModelChangeEvent

handleModelStateChange()method 
protected function handleModelStateChange(event:ModelChangeEvent):void

Handle model state change event

Parameters

event:ModelChangeEvent

handleRemoveFromStage()method 
protected function handleRemoveFromStage(event:Event):void

Handle remove from stage event

Parameters

event:Event

handleStageTouch()method 
protected function handleStageTouch(touch:TouchEvent):void

Handle stage touch

Parameters

touch:TouchEvent

handleTouch()method 
protected function handleTouch(touch:TouchEvent):void

Handle touch

Parameters

touch:TouchEvent