Packagelunas.components.buttons
Classpublic class IconButtonBuilder
InheritanceIconButtonBuilder Inheritance LabelButtonBuilder Inheritance BackgroundButtonBuilder Inheritance CoreButtonBuilder Inheritance CoreBuilder Inheritance CoreEventDispatcher Inheritance Object
Subclasses ItemButtonBuilder

The builder of the IconButton component.



Public Properties
 PropertyDefined By
 Inheritedbackground : Background
The background reference of the component.
BackgroundButtonBuilder
 Inheritedchannel : String
[read-only] Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
  container : DisplayObject
The picture container reference of the component.
IconButtonBuilder
 Inheritedfield : TextField
The field reference of the component.
LabelButtonBuilder
 Inheritedtarget : DisplayObject
Indicates the target reference of the component.
CoreBuilder
Public Methods
 MethodDefined By
  
IconButtonBuilder(target:DisplayObject)
Creates a new IconButtonBuilder instance.
IconButtonBuilder
 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
  
attach(state:DisplayObject):void
Attach a linked DisplayObject to create the icon of the component.
IconButtonBuilder
  
clear():void
[override] Clear the view of the component.
IconButtonBuilder
 Inherited
containsType(type:String):Boolean
Returns true if the specified type is register in the object.
CoreButtonBuilder
 Inherited
disabled(e:ButtonEvent = null):void
[override] Invoked when the button is disabled.
LabelButtonBuilder
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
 Inherited
down(e:ButtonEvent = null):void
[override] Invoked when the button is down.
LabelButtonBuilder
 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
 Inherited
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
  
load(request:URLRequest):void
Loads an external picture or swf in the component to create the icon.
IconButtonBuilder
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
 Inherited
over(e:ButtonEvent = null):void
[override] Invoked when the button is over.
LabelButtonBuilder
 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
 Inherited
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
 Inherited
run(... arguments):void
[override] Runs the build of the component.
LabelButtonBuilder
 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
 Inherited
up(e:ButtonEvent = null):void
[override] Invoked when the button is up.
LabelButtonBuilder
  
update():void
[override] Update the view of the component.
IconButtonBuilder
 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
 Inherited
refreshBackground(theme:IFillStyle = null, themeBorder:ILineStyle = null):void
Refresh the internal background.
BackgroundButtonBuilder
  
Refresh the container.
IconButtonBuilder
 Inherited
Refreshs the internal field.
LabelButtonBuilder
 Inherited
refreshState(e:Event):void
Invoked when a ButtonEvent register in this builder is dispatched.
CoreButtonBuilder
Property Detail
containerproperty
public var container:DisplayObject

The picture container reference of the component.

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

Creates a new IconButtonBuilder instance.

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

Attach a linked DisplayObject to create the icon of the component.

Parameters

state:DisplayObject

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

Clear the view of the component.

load()method 
public function load(request:URLRequest):void

Loads an external picture or swf in the component to create the icon.

Parameters

request:URLRequest

refreshContainer()method 
protected function refreshContainer():void

Refresh the container.

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

Update the view of the component.