Package | com.ghostwire.ui.controls |
Class | public class uiPushButton |
Inheritance | uiPushButton ![]() ![]() ![]() ![]() |
uiPushButton
is intended to be used as the defaultButton
in
uiForm
containers. It is the same as uiLabelButton
but implements an
"emphasized" state.
Note: if you are creating toggle buttons, consider using uiLabelButton
class instead.
"skin" Property
The default value is "PushButton"
and the asset(s) used are:
PushButton.png
~ This class is available in Aspire UI Components Lite Edition ~
See also
Method | Defined by | ||
---|---|---|---|
uiPushButton(text:String = null, image:String = null, textPosition:int = 0)
Constructor - creates a new
uiPushButton instance. | uiPushButton | ||
![]() |
activate(noEvent:Boolean = false):void
Activates and gives focus to the button as if the button has been clicked on (a
MouseEvent.CLICK event will be dispatched). | uiButton | |
![]() |
invalidate(type:String):void
Invalidates this component's "size", "display", "layout" or "textstyle".
| uiComponent | |
![]() |
move(x:Number, y:Number, noEvent:Boolean = false):void
Moves the component to the specified position, disregarding its allocation.
| uiComponent | |
![]() |
removeAllChildren(all:Boolean = false):void
Removes all children from this component.
| uiComponent | |
![]() |
setFocus(flag:Boolean = true):void
Gives this component instance the focus; the component must be on the display list and has its
tabEnabled property set to true , otherwise this method will fail
silently. | uiComponent | |
![]() |
setSize(width:Number, height:Number, noEvent:Boolean = false):void
Sets this component's size to the specified
width and height . | uiComponent | |
![]() |
setVisible(value:Boolean, noEvent:Boolean = false):void
Sets the visibility of this component instance, dispatching a "show" or "hide" event accordingly.
| uiComponent | |
![]() |
validateNow():void
Validates and render the component instance, and any component instances with
depth higher than itself in the validation queue, immediately. | uiComponent |
uiPushButton | () | constructor |
public function uiPushButton(text:String = null, image:String = null, textPosition:int = 0)
Constructor - creates a new uiPushButton
instance.
text:String (default = null ) — A String value indicating the text to be displayed inside the button.
|
|
image:String (default = null ) — A String value indicating the source to the image/icon to be displayed inside the
button.
|
|
textPosition:int (default = 0 ) — A String value indicating the position of the text vis-a-vis
the image. Qualified values are POSITION.LEFT , POSITION.RIGHT ,
POSITION.TOP or POSITION.BOTTOM . By default, the text is positioned to
the right of the image.
|