| Package | lunas.components.buttons |
| Class | public class CoreButtonBuilder |
| Inheritance | CoreButtonBuilder CoreBuilder CoreEventDispatcher Object |
| Implements | Builder |
| Subclasses | BackgroundButtonBuilder, FrameLabelButtonBuilder, LightButtonBuilder, MediaButtonBuilder, RadioIconButtonBuilder |
| Method | Defined By | ||
|---|---|---|---|
CoreButtonBuilder(target:DisplayObject)
Creates a new CoreButtonBuilder instance. | CoreButtonBuilder | ||
![]() | 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 | |
containsType(type:String):Boolean
Returns true if the specified type is register in the object. | CoreButtonBuilder | ||
![]() | 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 | |
initType():void
Initialize all register type of this builder. | CoreButtonBuilder | ||
![]() | 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 | |
registerType(type:String, callback:Function = null):void
Registers the ButtonEvent type passed in argument. | CoreButtonBuilder | ||
![]() | 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 | |
unregisterType(type:String):void
Unregisters the ButtonEvent type passed in argument. | CoreButtonBuilder | ||
![]() | 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 | |
| Method | Defined By | ||
|---|---|---|---|
![]() |
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor). | CoreEventDispatcher | |
refreshState(e:Event):void
Invoked when a ButtonEvent register in this builder is dispatched. | CoreButtonBuilder | ||
| CoreButtonBuilder | () | Constructor |
public function CoreButtonBuilder(target:DisplayObject)Creates a new CoreButtonBuilder instance.
Parameterstarget:DisplayObject — the target of the component reference to build.
|
| containsType | () | method |
public function containsType(type:String):Boolean
Returns true if the specified type is register in the object.
Parameters
type:String |
Boolean — true if the specified type is register in the object.
|
| initType | () | method |
public function initType():voidInitialize all register type of this builder. Overrides this method in the concrete implementations.
| refreshState | () | method |
protected function refreshState(e:Event):voidInvoked when a ButtonEvent register in this builder is dispatched.
Parameters
e:Event |
| registerType | () | method |
public function registerType(type:String, callback:Function = null):voidRegisters the ButtonEvent type passed in argument.
Parameters
type:String — The type of the frame event to register (choose your event in the ButtonEvent static enumeration).
| |
callback:Function (default = null) — The optional method of the button to launch
|
| unregisterType | () | method |
public function unregisterType(type:String):voidUnregisters the ButtonEvent type passed in argument.
Parameters
type:String |