| Package | lunas |
| Class | public class CoreBuilder |
| Inheritance | CoreBuilder CoreEventDispatcher Object |
| Implements | Builder |
| Subclasses | CoreButtonBuilder, LabelBuilder, LevelBarBuilder |
Builder interface, to minimize the effort required to implement this interface.
| Property | Defined By | ||
|---|---|---|---|
![]() | channel : String [read-only]
Indicates the channel of this dispatcher if this instance is global. | CoreEventDispatcher | |
| target : DisplayObject
Indicates the target reference of the component. | CoreBuilder | ||
| Method | Defined By | ||
|---|---|---|---|
CoreBuilder(target:DisplayObject)
Creates a new CoreBuilder instance. | CoreBuilder | ||
![]() | 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 | |
clear():void
Clear the view of the component. | CoreBuilder | ||
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | CoreEventDispatcher | |
![]() |
Returns the internal system.events.EventDispatcher reference. | CoreEventDispatcher | |
![]() | hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | CoreEventDispatcher | |
![]() | isGlobal():Boolean
Indicates if the dispatcher use a global event flow. | CoreEventDispatcher | |
![]() | isLocked():Boolean
Returns true if the object is locked. | CoreEventDispatcher | |
![]() | lock():void
Locks the object. | CoreEventDispatcher | |
![]() | registerEventListener(type:String, listener:*, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = 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 | |
run(... arguments):void
Runs the build of the component. | CoreBuilder | ||
![]() | setEventDispatcher(dispatcher:EventDispatcher):void
Sets the internal EventDispatcher reference. | CoreEventDispatcher | |
![]() | setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global system.events.EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher. | CoreEventDispatcher | |
![]() | unlock():void
Unlocks the display. | CoreEventDispatcher | |
![]() | unregisterEventListener(type:String, listener:*, useCapture:Boolean = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object. | CoreEventDispatcher | |
update():void
Update the view of the component. | CoreBuilder | ||
![]() | 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 | |
| target | property |
target:DisplayObjectIndicates the target reference of the component.
public function get target():DisplayObject public function set target(value:DisplayObject):void| CoreBuilder | () | Constructor |
public function CoreBuilder(target:DisplayObject)Creates a new CoreBuilder instance.
Parameterstarget:DisplayObject — the target of the component reference to build.
|
| clear | () | method |
public function clear():voidClear the view of the component.
| run | () | method |
public function run(... arguments):voidRuns the build of the component.
Parameters
... arguments |
| update | () | method |
public function update():voidUpdate the view of the component.