| Package | lunas.components.buttons |
| Class | public class LabelButton |
| Inheritance | LabelButton BackgroundButton CoreButton CoreComponent Background CoreSprite flash.display.Sprite |
| Subclasses | IconButton |
Example :
import lunas.components.buttons.LabelButton ;
var bt:LabelButton = new LabelButton() ;
bt.x = 25 ;
bt.y = 50 ;
bt.toggle = true ;
bt.label = "hello world" ;
addChild(bt) ;
| Method | Defined By | ||
|---|---|---|---|
LabelButton(w:Number = 120, h:Number = 20)
Creates a new LabelButton instance. | LabelButton | ||
![]() | doLater():void
Launch an event with a delayed interval. | Background | |
![]() | draw(... arguments):void
Draw the display. | Background | |
getBuilderRenderer():Class [override]
Returns the Builder constructor use to initialize this component. | LabelButton | ||
getStyleRenderer():Class [override]
Returns the Style constructor use to initialize this component. | LabelButton | ||
![]() | groupPolicyChanged():void [override]
Invoked when the group property or the groupName property changed. | CoreButton | |
![]() | hide():void
Hides the component. | CoreComponent | |
![]() | initBackgroundPen(graphic:* = null):IPen
Init the pen to draw the background of this display. | Background | |
![]() | initialize():void
Initialize the component. | CoreComponent | |
![]() | isLocked():Boolean
Returns true if the object is locked. | CoreSprite | |
![]() | isVisible():Boolean
Returns true if the component is visible. | CoreComponent | |
![]() | lock():void [override]
Locks the object. | CoreComponent | |
![]() | move(x:Number, y:Number):void
Moves the component. | CoreComponent | |
![]() | notifyChanged():void
Notify a change in this component. | CoreComponent | |
![]() | notifyEnabled():void
Notify an event when the enabled property is changed. | CoreComponent | |
![]() | notifyResized():void
Notify an event when you resize the component. | Background | |
![]() | refresh(init:*):void
Refresh and initialize the display with a generic object and invoke the "update" method. | Background | |
![]() | registerView(scope:DisplayObjectContainer = null):void [override]
Register the view in argument. | CoreButton | |
![]() | resetLock():void
Reset the lock security of the display. | CoreSprite | |
![]() | resize(e:Event = null):void
Resize and update the background. | Background | |
![]() | scope():DisplayObject
Returns the real scope reference of this component. | CoreComponent | |
![]() | setCornerRadius(n:Number):void
Defines all corner radius of the background (upper-left, upper-right, bottom-left and bottom-right). | Background | |
![]() | setSelected(b:Boolean, options:* = null):void
Sets a boolean value indicating whether the button is selected (true) or not (false). | CoreButton | |
![]() | setSize(w:Number, h:Number):void
Sets the virtual width (w) and height (h) values of the component. | Background | |
![]() | setStyle(... args):void
Sets the style property on the style declaration or object. | CoreComponent | |
![]() | show():void
Shows the component. | CoreComponent | |
![]() | unlock():void [override]
Unlocks the display. | CoreComponent | |
![]() | unregisterView():void [override]
Unregister the view of this button. | CoreButton | |
![]() | update():void [override]
Updates the component. | CoreComponent | |
![]() | viewChanged():void
This method is invoked after the draw() method in the update() method. | Background | |
![]() | viewDestroyed(e:Event = null):void
Invoked when the component is removed. | CoreComponent | |
![]() | viewEnabled():void [override]
Invoked when the enabled property of the component change. | CoreButton | |
viewLabelChanged():void [override]
Invoked when the label property of the component change. | LabelButton | ||
![]() | viewResize():void
Invoked when the component is resized. | Background | |
![]() | viewStyleChanged(e:Event = null):void [override]
Invoked when the component Style changed. | BackgroundButton | |
| LabelButton | () | Constructor |
public function LabelButton(w:Number = 120, h:Number = 20)Creates a new LabelButton instance.
Parametersw:Number (default = 120) — The prefered width of the button (default 120 pixels).
| |
h:Number (default = 20) — The prefered height of the button (default 20 pixels).
|
| getBuilderRenderer | () | method |
override public function getBuilderRenderer():Class
Returns the Builder constructor use to initialize this component.
Class — the Builder constructor use to initialize this component.
|
| getStyleRenderer | () | method |
override public function getStyleRenderer():Class
Returns the Style constructor use to initialize this component.
Class — the Style constructor use to initialize this component.
|
| viewLabelChanged | () | method |
override public function viewLabelChanged():voidInvoked when the label property of the component change.