Packageorg.servebox.foundry.widget
Classpublic class WidgetProperty
Implementsflash.events.IEventDispatcher

Represents a property of widget.



Public Properties
 PropertyDefined by
  name : String
The widget proeprty name.
WidgetProperty
  value : Object
The widget proeprty name.
WidgetProperty
Public Methods
 MethodDefined by
  
Creates a new WidgetProperty object.
WidgetProperty
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
WidgetProperty
  
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
WidgetProperty
  
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
WidgetProperty
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
WidgetProperty
  
willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
WidgetProperty
Events
 EventSummaryDefined by
    WidgetProperty
Property detail
nameproperty
public var name:String

The widget proeprty name.

This property can be used as the source for data binding.

valueproperty 
value:Object  [read-write]

The widget proeprty name.

This property can be used as the source for data binding.

Implementation
    public function get value():Object
    public function set value(value:Object):void
Constructor detail
WidgetProperty()constructor
public function WidgetProperty()

Creates a new WidgetProperty object.

Method detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void

Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event. You can register event listeners on all nodes in the display list for a specific type of event, phase, and priority.

Parameters
type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0.0)
 
useWeakReference:Boolean (default = false)
dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Dispatches an event into the event flow. The event target is the EventDispatcher object upon which dispatchEvent() is called.

Parameters
event:Event

Returns
Boolean
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Checks whether the EventDispatcher object has any listeners registered for a specific type of event.

Parameters
type:String

Returns
Boolean
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Removes a listener from the EventDispatcher object. If there is no matching listener registered with the EventDispatcher object, a call to this method has no effect.

Parameters
type:String
 
listener:Function
 
useCapture:Boolean (default = false)
willTrigger()method 
public function willTrigger(type:String):Boolean

Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. This method returns true if an event listener is triggered during any phase of the event flow when an event of the specified type is dispatched to this EventDispatcher object or any of its descendants.

Parameters
type:String

Returns
Boolean
Event detail
changeevent