Packagecom.cyntaxic.cynmvc.view
Classpublic dynamic class CynViewProxy
InheritanceCynViewProxy Inheritance CynView Inheritance 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.



Public Properties
 PropertyDefined By
  actualView : DisplayObject
[read-only] Returns the view proxy.
CynViewProxy
Protected Properties
 PropertyDefined By
 InheritedcynController : CynController
A reference to the CynController.
CynView
 InheritedcynModel : CynModel
A reference to the CynModel.
CynView
 InheriteddescribeProperties : Array
List of properties to describe on the view when using describe.
CynView
 InheritedsuppressDebug : Boolean = false
Flag to set whether debugging is suppressed for this CynView.
CynView
Public Methods
 MethodDefined By
  
add(view:DisplayObject):void
[static] Adds a view to the framework that cannot extend CynComponent or CynComposite.
CynViewProxy
 Inherited
addListener(type:String, listener:Function, props:Object = null):void
Shorthand method for addEventListener.
CynView
 Inherited
addWeakListener(type:String, listener:Function):void
Shorthand method for addEventListener using weak reference.
CynView
 Inherited
describe(compact:Boolean = true):String
Returns a valid JSON string describing some commonly used display properties.
CynView
 Inherited
describeListeners(compact:Boolean = true):String
Returns a valid JSON string describing the listeners.
CynView
 Inherited
getListeners():Array
Returns a copy of the listeners on the CynView.
CynView
 Inherited
Optionally initialize a view.
CynView
  
remove(view:DisplayObject):void
[static] Removes a proxy view from notifications from the controller.
CynViewProxy
 Inherited
Removes all children of the DisplayObject from the display list.
CynView
 Inherited
Removes all the listeners added.
CynView
 Inherited
removeListener(type:String):void
Shorthand method for removeEventListener.
CynView
 Inherited
resize(vo:ResizeVO):void
Invoked when Event.RESIZE event is fired.
CynView
Protected Methods
 MethodDefined By
 Inherited
debug(message:Object):void
Traces out a debugging message.
CynView
Property Detail
actualViewproperty
actualView:DisplayObject  [read-only]

Returns the view proxy.


Implementation
    public function get actualView():DisplayObject
Method Detail
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.