Package | ardisia.components.buttonBar.layouts |
Class | public class ButtonBarLayout |
Inheritance | ButtonBarLayout spark.layouts.supportClasses.LayoutBase |
Similar to the spark horizontal button bar layout but allows setting a max button width.
All children are set to the height of the parent.
Property | Defined By | ||
---|---|---|---|
gap : int
The gap between buttons (assuming more than 1 button). | ButtonBarLayout | ||
maxButtonWidth : Number
The maximum allowed width for a button. | ButtonBarLayout | ||
usePreferredWidth : Boolean
True to lay out the elements with their preferred width. | ButtonBarLayout |
gap | property |
gap:int
The gap between buttons (assuming more than 1 button).
The default value is 0
.
public function get gap():int
public function set gap(value:int):void
maxButtonWidth | property |
maxButtonWidth:Number
The maximum allowed width for a button. If NaN, this property will be ignored.
The default value is NaN
.
public function get maxButtonWidth():Number
public function set maxButtonWidth(value:Number):void
usePreferredWidth | property |
usePreferredWidth:Boolean
True to lay out the elements with their preferred width. False to layout the elements with the same width to fill the available space.
If the elements can not fit within the allotted space, the elements will be proportionally shrunk until they fit.
Button width will respect the "maxButtonWidth" property whether this property is true or false.
The default value is true
.
public function get usePreferredWidth():Boolean
public function set usePreferredWidth(value:Boolean):void