| Package | lunas.components.buttons |
| Class | public class SwitchLabelButtonBuilder |
| Inheritance | SwitchLabelButtonBuilder BackgroundButtonBuilder CoreButtonBuilder CoreBuilder CoreEventDispatcher Object |
| Property | Defined By | ||
|---|---|---|---|
![]() | background : Background
The background reference of the component. | BackgroundButtonBuilder | |
![]() | channel : String [read-only]
Indicates the channel of this dispatcher if this instance is global. | CoreEventDispatcher | |
| field1 : TextField
The field of the button when is up. | SwitchLabelButtonBuilder | ||
| field2 : TextField
The field of the button when is over or selected. | SwitchLabelButtonBuilder | ||
| fieldContainer : ScrollContainer
The scroll container of this button. | SwitchLabelButtonBuilder | ||
![]() | target : DisplayObject
Indicates the target reference of the component. | CoreBuilder | |
| Method | Defined By | ||
|---|---|---|---|
SwitchLabelButtonBuilder(target:DisplayObject)
Creates a new SwitchLabelButtonBuilder reference. | SwitchLabelButtonBuilder | ||
![]() | 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 [override]
Clear the view of the component. | SwitchLabelButtonBuilder | ||
![]() | containsType(type:String):Boolean
Returns true if the specified type is register in the object. | CoreButtonBuilder | |
disabled(e:ButtonEvent = null):void [override]
Invoked when the component is disabled. | SwitchLabelButtonBuilder | ||
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | CoreEventDispatcher | |
down(e:ButtonEvent = null):void [override]
Invoked when the button is down. | SwitchLabelButtonBuilder | ||
![]() |
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 [override]
Initialize all register type of this builder. | BackgroundButtonBuilder | |
![]() | 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 | |
over(e:ButtonEvent = null):void [override]
Invoked when the button is over. | SwitchLabelButtonBuilder | ||
![]() | 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 | |
![]() | registerLight(target:DisplayObject):void
Register the scope of the light effect of the component. | BackgroundButtonBuilder | |
![]() | 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 [override]
Run the view initialize of the component. | SwitchLabelButtonBuilder | ||
![]() | 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 | |
up(e:ButtonEvent = null):void [override]
Invoked when the button is up. | SwitchLabelButtonBuilder | ||
update():void [override]
Update the view of the component. | SwitchLabelButtonBuilder | ||
![]() | 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 | |
| field1 | property |
public var field1:TextFieldThe field of the button when is up.
| field2 | property |
public var field2:TextFieldThe field of the button when is over or selected.
| fieldContainer | property |
public var fieldContainer:ScrollContainerThe scroll container of this button.
| SwitchLabelButtonBuilder | () | Constructor |
public function SwitchLabelButtonBuilder(target:DisplayObject)Creates a new SwitchLabelButtonBuilder reference.
Parameterstarget:DisplayObject — the target of the component reference to build.
|
| clear | () | method |
override public function clear():voidClear the view of the component.
| disabled | () | method |
override public function disabled(e:ButtonEvent = null):voidInvoked when the component is disabled.
Parameters
e:ButtonEvent (default = null) |
| down | () | method |
override public function down(e:ButtonEvent = null):voidInvoked when the button is down.
Parameters
e:ButtonEvent (default = null) |
| over | () | method |
override public function over(e:ButtonEvent = null):voidInvoked when the button is over.
Parameters
e:ButtonEvent (default = null) |
| run | () | method |
override public function run(... arguments):voidRun the view initialize of the component.
Parameters
... arguments |
| up | () | method |
override public function up(e:ButtonEvent = null):voidInvoked when the button is up.
Parameters
e:ButtonEvent (default = null) |
| update | () | method |
override public function update():voidUpdate the view of the component.