Packageview.primeFaces.surfaceComponents.components
Classpublic class Button
InheritanceButton Inheritance spark.components.Button
Implements view.interfaces.IGetChildrenSurfaceComponent, view.interfaces.IHistorySurfaceComponent

Representation of PrimeFaces button component

Visual Editor XML:
     <Button
	 Attributes
	 width="100"
	 height="30"
	 disabled="false"
	 value="Button"
	 title=""/>
     
PrimeFaces output:
     <p:button
	 Attributes
	 style="width:100px;height:30px;"
	 disabled="false"
	 value="Button"
	 title=""/>
     

Default MXML Propertylabel



Public Properties
 PropertyDefined By
  enabled : Boolean
[override] PrimeFaces: disabled
Button
  height : Number
[override] [read-only] PrimeFaces: style
Button
  label : String
[override] PrimeFaces: value
Button
  percentHeight : Number
[override] [read-only] PrimeFaces: style
Button
  percentWidth : Number
[override] [read-only] PrimeFaces: style
Button
  toolTip : String
[override] [write-only] PrimeFaces: title
Button
  width : Number
[override] [read-only] PrimeFaces: style
Button
Public Methods
 MethodDefined By
  
Button
  
toRora():XML
Button
  
Button
Public Constants
 ConstantDefined By
  ELEMENT_NAME : String = Button
[static]
Button
  PRIME_FACES_XML_ELEMENT_NAME : String = button
[static]
Button
Property Detail
enabledproperty
enabled:Boolean[override]

PrimeFaces: disabled

The default value is "false".

This property can be used as the source for data binding.


Implementation
    public function get enabled():Boolean
    public function set enabled(value:Boolean):void

Example
Visual Editor XML:
<Button disabled="false"/>
PrimeFaces:
<p:button disabled="false"/>
heightproperty 
height:Number  [read-only] [override]

PrimeFaces: style

The default value is "30".

This property can be used as the source for data binding.


Implementation
    public function get height():Number

Example
Visual Editor XML:
<Button height="30"/>
PrimeFaces:
<p:button style="width:100px;height:30px;"/>
labelproperty 
label:String[override]

PrimeFaces: value

The default value is "Button".

This property can be used as the source for data binding.


Implementation
    public function get label():String
    public function set label(value:String):void

Example
Visual Editor:
<Button value="Button"/>
PrimeFaces:
<p:button value="Button"/>
percentHeightproperty 
percentHeight:Number  [read-only] [override]

PrimeFaces: style

This property can be used as the source for data binding.


Implementation
    public function get percentHeight():Number

Example
Visual Editor XML:
<Button percentHeight="80"/>
PrimeFaces:
<p:button style="height:80%;"/>
percentWidthproperty 
percentWidth:Number  [read-only] [override]

PrimeFaces: style

This property can be used as the source for data binding.


Implementation
    public function get percentWidth():Number

Example
Visual Editor XML:
<Button percentWidth="80"/>
PrimeFaces:
<p:button style="width:80%;"/>
toolTipproperty 
toolTip:String  [write-only] [override]

PrimeFaces: title

This property can be used as the source for data binding.


Implementation
    public function set toolTip(value:String):void

Example
Visual Editor:
<Button title=""/>
PrimeFaces:
<p:button title=""/>
widthproperty 
width:Number  [read-only] [override]

PrimeFaces: style

The default value is "100".

This property can be used as the source for data binding.


Implementation
    public function get width():Number

Example
Visual Editor XML:
<Button width="100"/>
PrimeFaces:
<p:button style="width:100px;height:30px;"/>
Constructor Detail
Button()Constructor
public function Button()



Method Detail
toRora()method
public function toRora():XML

Returns
XML
toRoyaleConvertCode()method 
public function toRoyaleConvertCode():XML

Returns
XML
Constant Detail
ELEMENT_NAMEConstant
public static const ELEMENT_NAME:String = Button

PRIME_FACES_XML_ELEMENT_NAMEConstant 
public static const PRIME_FACES_XML_ELEMENT_NAME:String = button