| Package | lunas.core |
| Class | public dynamic class AbstractButton |
| Inheritance | AbstractButton AbstractComponent CoreSprite flash.display.Sprite |
| Implements | IButton |
| Subclasses | AquaButton, BackgroundButton, FrameLabelButton, LightButton |
IButton interface, to minimize the effort required to implement this interface.
| Property | Defined by | ||
|---|---|---|---|
![]() | border : EdgeMetrics
Indicates the thickness, in pixels, of the four edge regions around a visual component.
| AbstractComponent | |
![]() | bubbles : Boolean = true
Indicates if the events use bubbling when are dispatched.
| AbstractComponent | |
![]() | builder : IBuilder
Indicates the IBuilder reference of this instance.
| AbstractComponent | |
| buttonMode : Boolean [write-only]
Specifies whether this object receives mouse messages.
| AbstractButton | ||
![]() | componentInspectorSetting : Boolean
Initialize when the Flash component settings are initialized (only in Flash with a compiled component).
| AbstractComponent | |
| data : *
Indicates the data value object of the component.
| AbstractButton | ||
![]() | enabled : Boolean
Indicates the enabled state of the component.
| AbstractComponent | |
![]() | group : Boolean
Indicates with a boolean if this object is grouped.
| AbstractComponent | |
![]() | groupName : String
Indicates the name of the group of this object.
| AbstractComponent | |
![]() | h : Number
(read-only) Indicates the virtual height value of this component.
| AbstractComponent | |
![]() | id : *
Returns the id of this object.
| CoreSprite | |
| index : Number
A number value to indicated the index of this IButton.
| AbstractButton | ||
![]() | isConfigurable : Boolean
Indicates if the display is configurable.
| CoreSprite | |
| isReleaseOutside : Boolean = true
Indicates if the button notify a releaseOutside event.
| AbstractButton | ||
| label : String
Returns the text label for a button instance.
| AbstractButton | ||
![]() | maxHeight : Number
This property defined the maximum height of this component.
| AbstractComponent | |
![]() | maxWidth : Number
This property defined the maximum width of this component.
| AbstractComponent | |
![]() | minHeight : Number
This property defined the mimimun height of this component.
| AbstractComponent | |
![]() | minWidth : Number
This property defined the mimimun width of this component.
| AbstractComponent | |
| mouseEnabled : Boolean
Specifies whether this object receives mouse messages.
| AbstractButton | ||
| selected : Boolean
A flag that indicates whether this control is selected.
| AbstractButton | ||
![]() | style : IStyle
Returns the style of this component.
| AbstractComponent | |
| toggle : Boolean
Indicates a boolean value indicating whether the button behaves as a toggle switch (true) or not (false).
| AbstractButton | ||
| useHandCursor : Boolean
A Boolean value that, when set to true, indicates whether Flash Player displays the hand cursor when the mouse rolls over a button.
| AbstractButton | ||
![]() | w : Number
(read-only) Indicates the virtual width value of this component.
| AbstractComponent | |
| Property | Defined by | ||
|---|---|---|---|
![]() | _h : Number = 0
The protected virtual height value of the component.
| AbstractComponent | |
| _scope : Sprite
The scope of the active display of this button component.
| AbstractButton | ||
![]() | _w : Number = 0
The protected virtual width value of the component.
| AbstractComponent | |
| Method | Defined by | ||
|---|---|---|---|
|
AbstractButton(id:* = null, isConfigurable:Boolean = false, name:String = null)
Creates a new AbstractButton instance.
| AbstractButton | ||
![]() |
doLater():void
Launch an event with a delayed interval.
| AbstractComponent | |
![]() |
draw(... arguments):void
Draw the view of the component.
| AbstractComponent | |
![]() |
getBuilderRenderer():Class
Returns the
IBuilder constructor use to initialize this component. | AbstractComponent | |
![]() |
Returns the internal
ILogger reference of this ILogable object. | CoreSprite | |
![]() |
getStyleRenderer():Class
Returns the
IStyle constructor use to initialize this component. | AbstractComponent | |
|
groupPolicyChanged():void
Invoked when the group property or the groupName property changed.
| AbstractButton | ||
![]() |
hashCode():uint
Returns a hashcode value for the object.
| CoreSprite | |
![]() |
hide():void
Hides the component.
| AbstractComponent | |
![]() |
initialize():void
Initialize the component.
| AbstractComponent | |
![]() |
isLocked():Boolean
Returns
true if the object is locked. | CoreSprite | |
![]() |
isVisible():Boolean
Returns
true if the component is visible. | AbstractComponent | |
![]() |
lock():void
Locks the object.
| CoreSprite | |
![]() |
move(x:Number, y:Number):void
Moves the component.
| AbstractComponent | |
![]() |
notifyChanged():void
Notify a change in this component.
| AbstractComponent | |
![]() |
notifyEnabled():void
Notify an event when the enabled property is changed.
| AbstractComponent | |
![]() |
notifyResized():void
Notify an event when you resize the component.
| AbstractComponent | |
![]() |
refresh(init:*):void
Refresh the component with an object of initialization.
| AbstractComponent | |
|
registerView(scope:Sprite = null):void
Register the view in argument.
| AbstractButton | ||
![]() |
resetLock():void
Reset the lock security of the display.
| CoreSprite | |
|
scope():Sprite
Returns the scope reference of this IButton.
| AbstractButton | ||
![]() |
Sets the internal
ILogger reference of this ILogable object. | CoreSprite | |
|
setSelected(b:Boolean, flag:Boolean = false):void
Sets a boolean value indicating whether the button is selected (true) or not (false).
| AbstractButton | ||
![]() |
setSize(w:Number, h:Number):void
Sets the virtuals width and height of the component.
| AbstractComponent | |
![]() |
setStyle(... args):void
Sets the style property on the style declaration or object.
| AbstractComponent | |
![]() |
setup():void
Setup the IConfigurable object.
| CoreSprite | |
![]() |
show():void
Shows the component.
| AbstractComponent | |
![]() |
toString():String
Returns the
String representation of this object. | CoreSprite | |
![]() |
unlock():void
Unlocks the display.
| CoreSprite | |
|
unregisterView():void
Unregister the view of this button.
| AbstractButton | ||
![]() |
update():void
Updates the component.
| AbstractComponent | |
![]() |
viewChanged():void
Invoked after the draw method and when the IBuilder is updated.
| AbstractComponent | |
![]() |
viewDestroyed(e:Event = null):void
Invoked when the component is destroyed with a removeMovieClip.
| AbstractComponent | |
|
viewEnabled():void
Invoked when the enabled property of the component change.
| AbstractButton | ||
|
viewLabelChanged():void
Invoked when the label property of the component change.
| AbstractButton | ||
![]() |
viewResize():void
Invoked when the component is resized.
| AbstractComponent | |
![]() |
viewStyleChanged(e:Event = null):void
Invoked when the component IStyle changed.
| AbstractComponent | |
| Method | Defined by | ||
|---|---|---|---|
|
_fireButtonEvent(type:String):void
Dispatchs a ButtonEvent with the specified type.
| AbstractButton | ||
![]() |
addedToStage(e:Event = null):void
Invoked when the display is added to the stage.
| CoreSprite | |
![]() |
fireComponentEvent(type:String):void
Dispatchs a ComponentEvent with the specified type.
| AbstractComponent | |
|
removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage.
| AbstractButton | ||
| buttonMode | property |
buttonMode:Boolean [write-only]Specifies whether this object receives mouse messages.
Implementation public function set buttonMode(value:Boolean):void
| data | property |
data:* [read-write]Indicates the data value object of the component.
Implementation public function get data():*
public function set data(value:*):void
| index | property |
public var index:NumberA number value to indicated the index of this IButton.
| isReleaseOutside | property |
public var isReleaseOutside:Boolean = trueIndicates if the button notify a releaseOutside event.
| label | property |
label:String [read-write]Returns the text label for a button instance.
Implementation public function get label():String
public function set label(value:String):void
| mouseEnabled | property |
mouseEnabled:Boolean [read-write]Specifies whether this object receives mouse messages.
Implementation public function get mouseEnabled():Boolean
public function set mouseEnabled(value:Boolean):void
| _scope | property |
protected var _scope:SpriteThe scope of the active display of this button component.
| selected | property |
selected:Boolean [read-write]A flag that indicates whether this control is selected.
Implementation public function get selected():Boolean
public function set selected(value:Boolean):void
| toggle | property |
toggle:Boolean [read-write]Indicates a boolean value indicating whether the button behaves as a toggle switch (true) or not (false).
Implementation public function get toggle():Boolean
public function set toggle(value:Boolean):void
| useHandCursor | property |
useHandCursor:Boolean [read-write]A Boolean value that, when set to true, indicates whether Flash Player displays the hand cursor when the mouse rolls over a button.
Implementation public function get useHandCursor():Boolean
public function set useHandCursor(value:Boolean):void
| AbstractButton | () | constructor |
public function AbstractButton(id:* = null, isConfigurable:Boolean = false, name:String = null)Creates a new AbstractButton instance.
Parametersid:* (default = null) — Indicates the id of the object.
|
|
isConfigurable:Boolean (default = false) — This flag indicates if the IConfigurable object is register in the ConfigCollector.
|
|
name:String (default = null) — Indicates the instance name of the object.
|
| _fireButtonEvent | () | method |
protected function _fireButtonEvent(type:String):voidDispatchs a ButtonEvent with the specified type.
Parameterstype:String |
| groupPolicyChanged | () | method |
public override function groupPolicyChanged():voidInvoked when the group property or the groupName property changed. Overrides this method in concrete class.
| registerView | () | method |
public function registerView(scope:Sprite = null):voidRegister the view in argument.
Parametersscope:Sprite (default = null) |
| removedFromStage | () | method |
protected override function removedFromStage(e:Event = null):voidInvoked when the display is removed from the stage.
Parameterse:Event (default = null) |
| scope | () | method |
public function scope():SpriteReturns the scope reference of this IButton.
ReturnsSprite — the scope reference of this IButton.
|
| setSelected | () | method |
public function setSelected(b:Boolean, flag:Boolean = false):voidSets a boolean value indicating whether the button is selected (true) or not (false). The default value is false.
Parametersb:Boolean |
|
flag:Boolean (default = false) |
| unregisterView | () | method |
public function unregisterView():voidUnregister the view of this button.
| viewEnabled | () | method |
public final override function viewEnabled():voidInvoked when the enabled property of the component change.
| viewLabelChanged | () | method |
public function viewLabelChanged():voidInvoked when the label property of the component change.