| Package | lunas.components.buttons |
| Class | public class ItemButtonBuilder |
| Inheritance | ItemButtonBuilder IconButtonBuilder LabelButtonBuilder 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 | |
![]() | container : DisplayObject
The picture container reference of the component. | IconButtonBuilder | |
| deleteIcon : LightButton
The light picture delete button reference of the component. | ItemButtonBuilder | ||
![]() | field : TextField
The field reference of the component. | LabelButtonBuilder | |
| iconContainer : ListContainer
The picture container reference of the component. | ItemButtonBuilder | ||
| optionIcon : LightButton
The light picture option button reference of the component. | ItemButtonBuilder | ||
![]() | target : DisplayObject
Indicates the target reference of the component. | CoreBuilder | |
| Method | Defined By | ||
|---|---|---|---|
ItemButtonBuilder(target:DisplayObject)
Creates a new ItemButtonBuilder instance. | ItemButtonBuilder | ||
![]() | 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 | |
attachDeleteButton(state:DisplayObject):void
Attach the DisplayObject view of the delete button. | ItemButtonBuilder | ||
attachOptionButton(state:DisplayObject):void
Attach the DisplayObject view of the delete button. | ItemButtonBuilder | ||
clear():void [override]
Clear the view of the component. | ItemButtonBuilder | ||
![]() | 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 button is disabled. | ItemButtonBuilder | ||
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | CoreEventDispatcher | |
![]() | down(e:ButtonEvent = null):void [override]
Invoked when the button is down. | LabelButtonBuilder | |
![]() |
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 | |
![]() | load(request:URLRequest):void
Loads an external picture or swf in the component to create the icon. | IconButtonBuilder | |
![]() | lock():void
Locks the object. | CoreEventDispatcher | |
![]() | over(e:ButtonEvent = null):void [override]
Invoked when the button is over. | LabelButtonBuilder | |
![]() | 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]
Runs the build of the component. | ItemButtonBuilder | ||
![]() | 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. | LabelButtonBuilder | |
update():void [override]
Update the view of the component. | ItemButtonBuilder | ||
![]() | 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 | ||
|---|---|---|---|
deleteClick(e:MouseEvent):void
Invoked when the delete button is selected. | ItemButtonBuilder | ||
![]() |
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor). | CoreEventDispatcher | |
optionClick(e:MouseEvent):void
Invoked when the option button is selected. | ItemButtonBuilder | ||
![]() |
Refresh the internal background. | BackgroundButtonBuilder | |
refreshContainer():void [override]
Refresh the container. | ItemButtonBuilder | ||
![]() | refreshField():void
Refreshs the internal field. | LabelButtonBuilder | |
refreshIconContainer():void
Refresh the container. | ItemButtonBuilder | ||
![]() | refreshState(e:Event):void
Invoked when a ButtonEvent register in this builder is dispatched. | CoreButtonBuilder | |
| deleteIcon | property |
public var deleteIcon:LightButtonThe light picture delete button reference of the component.
| iconContainer | property |
public var iconContainer:ListContainerThe picture container reference of the component.
| optionIcon | property |
public var optionIcon:LightButtonThe light picture option button reference of the component.
| ItemButtonBuilder | () | Constructor |
public function ItemButtonBuilder(target:DisplayObject)Creates a new ItemButtonBuilder instance.
Parameterstarget:DisplayObject — the target of the component reference to build.
|
| attachDeleteButton | () | method |
public function attachDeleteButton(state:DisplayObject):voidAttach the DisplayObject view of the delete button.
Parameters
state:DisplayObject |
| attachOptionButton | () | method |
public function attachOptionButton(state:DisplayObject):voidAttach the DisplayObject view of the delete button.
Parameters
state:DisplayObject |
| clear | () | method |
override public function clear():voidClear the view of the component.
| deleteClick | () | method |
protected function deleteClick(e:MouseEvent):voidInvoked when the delete button is selected.
Parameters
e:MouseEvent |
| disabled | () | method |
override public function disabled(e:ButtonEvent = null):voidInvoked when the button is disabled.
Parameters
e:ButtonEvent (default = null) |
| optionClick | () | method |
protected function optionClick(e:MouseEvent):voidInvoked when the option button is selected.
Parameters
e:MouseEvent |
| refreshContainer | () | method |
override protected function refreshContainer():voidRefresh the container.
| refreshIconContainer | () | method |
protected function refreshIconContainer():voidRefresh the container.
| run | () | method |
override public function run(... arguments):voidRuns the build of the component.
Parameters
... arguments |
| update | () | method |
override public function update():voidUpdate the view of the component.