| Package | andromeda.config |
| Class | public class ConfigurableObject |
| Inheritance | ConfigurableObject CoreEventDispatcher CoreObject |
| Implements | IConfigurable, Identifiable |
| Subclasses | AbstractStyle |
ConfigCollector.run() method when the Config is loaded for example.
| Property | Defined by | ||
|---|---|---|---|
![]() | channel : String
Indicates the channel of this dispatcher if this instance is global.
| CoreEventDispatcher | |
| id : *
Returns the id of this object.
| ConfigurableObject | ||
| isConfigurable : Boolean
(read-write) Returns
true if the object is configurable and receive the notification of the ConfigCollector in the setup() method. | ConfigurableObject | ||
![]() | isGlobal : Boolean
(read-only) Returns the value of the isGlobal flag of this model.
| CoreEventDispatcher | |
| Method | Defined by | ||
|---|---|---|---|
|
ConfigurableObject(id:* = null, isConfigurable:Boolean = false, bGlobal:Boolean = false, sChannel:String = null)
Creates a new ConfigurableObject instance.
| ConfigurableObject | ||
![]() |
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target.
| CoreEventDispatcher | |
![]() |
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
| CoreEventDispatcher | |
![]() |
Returns the internal
EventDispatcher reference. | CoreEventDispatcher | |
![]() |
getIsGlobal():Boolean
Returns the value of the isGlobal flag of this model.
| CoreEventDispatcher | |
![]() |
Returns the internal
ILogger reference of this ILogable object. | CoreObject | |
![]() |
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
| CoreEventDispatcher | |
![]() |
hashCode():uint
Returns a hashcode value for the object.
| CoreObject | |
![]() |
Creates and returns the internal
EventDispatcher reference (this method is invoked in the constructor). | CoreEventDispatcher | |
![]() |
isLocked():Boolean
Returns
true if the object is locked. | CoreEventDispatcher | |
![]() |
lock():void
Locks the object.
| CoreEventDispatcher | |
![]() |
registerEventListener(type:String, listener:Boolean, useCapture:int = false, priority:Boolean = 0, useWeakReference:* = false):void
Allows the registration of event listeners on the event target (Function or EventListener).
| CoreEventDispatcher | |
![]() |
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
| CoreEventDispatcher | |
![]() |
setEventDispatcher(e:EventDispatcher):void
Sets the internal
EventDispatcher reference. | CoreEventDispatcher | |
![]() |
setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global
EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher. | CoreEventDispatcher | |
![]() |
Sets the internal
ILogger reference of this ILogable object. | CoreObject | |
|
setup():void
Invoked when this object when the ConfigCollector is run.
| ConfigurableObject | ||
![]() |
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
| CoreEventDispatcher | |
![]() |
toString():String
Returns the string representation of this instance.
| CoreObject | |
![]() |
unlock():void
Unlocks the display.
| CoreEventDispatcher | |
![]() |
unregisterEventListener(type:String, listener:Boolean, useCapture:* = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
| CoreEventDispatcher | |
|
update():void
Update the display.
| ConfigurableObject | ||
![]() |
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.
| CoreEventDispatcher | |
| Method | Defined by | ||
|---|---|---|---|
|
_setID(id:*):void
Sets the id of the object with a custom method.
| ConfigurableObject | ||
| id | property |
id:* [read-write]Returns the id of this object.
Implementation public function get id():*
public function set id(value:*):void
| isConfigurable | property |
isConfigurable:Boolean [read-write]
(read-write) Returns true if the object is configurable and receive the notification of the ConfigCollector in the setup() method.
public function get isConfigurable():Boolean
public function set isConfigurable(value:Boolean):void
| ConfigurableObject | () | constructor |
public function ConfigurableObject(id:* = null, isConfigurable:Boolean = false, bGlobal:Boolean = false, sChannel:String = null)Creates a new ConfigurableObject instance.
Parametersid:* (default = null) — Indicates the id of the object.
|
|
isConfigurable:Boolean (default = false) — This flag indicates if the IConfigurable object is register in the ConfigCollector.
|
|
bGlobal:Boolean (default = false) — the flag to use a global event flow or a local event flow.
|
|
sChannel:String (default = null) — the name of the global event flow if the bGlobal argument is true.
|
| _setID | () | method |
protected function _setID(id:*):voidSets the id of the object with a custom method.
Parametersid:* |
| setup | () | method |
public function setup():voidInvoked when this object when the ConfigCollector is run.
| update | () | method |
public function update():voidUpdate the display. You must override this method. This method is launch by the setup() method when the Config is checked.