Packagelunas.components.buttons
Classpublic class BackgroundButtonBuilder
InheritanceBackgroundButtonBuilder Inheritance CoreButtonBuilder Inheritance CoreBuilder Inheritance CoreEventDispatcher Inheritance Object
Subclasses LabelButtonBuilder, PictureButtonBuilder, SwitchLabelButtonBuilder

The builders of the BackgroundButton component.



Public Properties
 PropertyDefined By
  background : Background
The background reference of the component.
BackgroundButtonBuilder
 Inheritedchannel : String
[read-only] Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
 Inheritedtarget : DisplayObject
Indicates the target reference of the component.
CoreBuilder
Public Methods
 MethodDefined By
  
BackgroundButtonBuilder(target:DisplayObject)
Creates a new BackgroundButtonBuilder instance.
BackgroundButtonBuilder
 Inherited
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.
BackgroundButtonBuilder
 Inherited
containsType(type:String):Boolean
Returns true if the specified type is register in the object.
CoreButtonBuilder
  
disabled(e:ButtonEvent = null):void
Invoked when the button is down.
BackgroundButtonBuilder
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
  
down(e:ButtonEvent = null):void
Invoked when the button is down.
BackgroundButtonBuilder
 Inherited
Returns the internal system.events.EventDispatcher reference.
CoreEventDispatcher
 Inherited
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
 Inherited
isGlobal():Boolean
Indicates if the dispatcher use a global event flow.
CoreEventDispatcher
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreEventDispatcher
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
  
over(e:ButtonEvent = null):void
Invoked when the button is over.
BackgroundButtonBuilder
 Inherited
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
 Inherited
registerType(type:String, callback:Function = null):void
Registers the ButtonEvent type passed in argument.
CoreButtonBuilder
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
CoreEventDispatcher
  
run(... arguments):void
[override] Runs the build of the component.
BackgroundButtonBuilder
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
 Inherited
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
 Inherited
unlock():void
Unlocks the display.
CoreEventDispatcher
 Inherited
unregisterEventListener(type:String, listener:*, useCapture:Boolean = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
CoreEventDispatcher
 Inherited
unregisterType(type:String):void
Unregisters the ButtonEvent type passed in argument.
CoreButtonBuilder
  
up(e:ButtonEvent = null):void
Invoked when the button is up.
BackgroundButtonBuilder
  
update():void
[override] Update the view of the component.
BackgroundButtonBuilder
 Inherited
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
Protected Methods
 MethodDefined By
 Inherited
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor).
CoreEventDispatcher
  
refreshBackground(theme:IFillStyle = null, themeBorder:ILineStyle = null):void
Refresh the internal background.
BackgroundButtonBuilder
 Inherited
refreshState(e:Event):void
Invoked when a ButtonEvent register in this builder is dispatched.
CoreButtonBuilder
Property Detail
backgroundproperty
public var background:Background

The background reference of the component.

Constructor Detail
BackgroundButtonBuilder()Constructor
public function BackgroundButtonBuilder(target:DisplayObject)

Creates a new BackgroundButtonBuilder instance.

Parameters
target:DisplayObject — the target of the component reference to build.
Method Detail
clear()method
override public function clear():void

Clear the view of the component.

disabled()method 
public function disabled(e:ButtonEvent = null):void

Invoked when the button is down.

Parameters

e:ButtonEvent (default = null)

down()method 
public function down(e:ButtonEvent = null):void

Invoked when the button is down.

Parameters

e:ButtonEvent (default = null)

initType()method 
override public function initType():void

Initialize all register type of this builder.

over()method 
public function over(e:ButtonEvent = null):void

Invoked when the button is over.

Parameters

e:ButtonEvent (default = null)

refreshBackground()method 
protected function refreshBackground(theme:IFillStyle = null, themeBorder:ILineStyle = null):void

Refresh the internal background.

Parameters

theme:IFillStyle (default = null)
 
themeBorder:ILineStyle (default = null)

registerLight()method 
public function registerLight(target:DisplayObject):void

Register the scope of the light effect of the component.

Parameters

target:DisplayObject

run()method 
override public function run(... arguments):void

Runs the build of the component.

Parameters

... arguments

up()method 
public function up(e:ButtonEvent = null):void

Invoked when the button is up.

Parameters

e:ButtonEvent (default = null)

update()method 
override public function update():void

Update the view of the component.