Packageardisia.components.buttonBar.layouts
Classpublic class ButtonBarLayout
InheritanceButtonBarLayout Inheritance spark.layouts.supportClasses.LayoutBase

Layout specifically designed for the Ardisia ButtonBar class. The layout lays out the buttons horizontally, left to right.

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.



Public Properties
 PropertyDefined 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
Property Detail
gapproperty
gap:int

The gap between buttons (assuming more than 1 button).

The default value is 0.


Implementation
    public function get gap():int
    public function set gap(value:int):void
maxButtonWidthproperty 
maxButtonWidth:Number

The maximum allowed width for a button. If NaN, this property will be ignored.

The default value is NaN.


Implementation
    public function get maxButtonWidth():Number
    public function set maxButtonWidth(value:Number):void
usePreferredWidthproperty 
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.


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