Package | com.cyntaxic.cynmvc.view |
Class | public dynamic class CynViewProxy |
Inheritance | CynViewProxy CynView flash.display.Sprite |
Implements | ICynView |
CynViewProxy
is a decorator for setting up views that cannot
directly extend CynComponent
or the CynComposite
classes.
Using the add
and remove
functions allow views to listen
and to unlisten for notifications from the controller. Instances of CynViewProxy
are not directly accessible as the constructor is private and the static functions do not
return a value.
Property | Defined By | ||
---|---|---|---|
actualView : DisplayObject [read-only]
Returns the view proxy. | CynViewProxy |
Method | Defined By | ||
---|---|---|---|
add(view:DisplayObject):void [static]
Adds a view to the framework that cannot extend CynComponent
or CynComposite. | CynViewProxy | ||
addListener(type:String, listener:Function, props:Object = null):void
Shorthand method for addEventListener. | CynView | ||
addWeakListener(type:String, listener:Function):void
Shorthand method for addEventListener using weak reference. | CynView | ||
describe(compact:Boolean = true):String
Returns a valid JSON string describing some commonly used display properties. | CynView | ||
describeListeners(compact:Boolean = true):String
Returns a valid JSON string describing the listeners. | CynView | ||
getListeners():Array
Returns a copy of the listeners on the CynView. | CynView | ||
Optionally initialize a view. | CynView | ||
remove(view:DisplayObject):void [static]
Removes a proxy view from notifications from the controller. | CynViewProxy | ||
removeAllChildren():Array
Removes all children of the DisplayObject from the display list. | CynView | ||
removeAllListeners():void
Removes all the listeners added. | CynView | ||
removeListener(type:String):void
Shorthand method for removeEventListener. | CynView | ||
Invoked when Event.RESIZE event is fired. | CynView |
actualView | property |
actualView:DisplayObject
[read-only] Returns the view proxy.
public function get actualView():DisplayObject
add | () | method |
public static function add(view:DisplayObject):void
Adds a view to the framework that cannot extend CynComponent
or CynComposite
. This allows the view to be notified by the contoller.
Parameters
view:DisplayObject — The proxy view to be added.
|
remove | () | method |
public static function remove(view:DisplayObject):void
Removes a proxy view from notifications from the controller.
Parameters
view:DisplayObject — The proxy view to be removed.
|