Packageardisia.components.buttonBar
Classpublic class ButtonBar
InheritanceButtonBar Inheritance ButtonBarBase Inheritance spark.components.supportClasses.ButtonBarBase
Subclasses FloatPaneControlBar

ButtonBar that supports dragging.

Since the selectedIndex can change via dragging, it is better to bind to the selectedItem property of the dataProvider.

View the technical documentation on the Ardisia Labs website for more information.

Default MXML PropertydataProvider



Public Properties
 PropertyDefined By
 InheritedclosableField : String
The field on the data to look for a boolean value if the button can be closed by clicking the close button skin part.
ButtonBarBase
 Inheritedduration : Number = 150
The duration of animations in milliseconds.
ButtonBarBase
 Inheritedeaser : IEaser
The default easer to apply to animations.
ButtonBarBase
 InheritedisAnimating : Boolean
[read-only] True if a animation is running.
ButtonBarBase
 InheritedisDragging : Boolean
[read-only] True if a button is being dragged.
ButtonBarBase
Public Methods
 MethodDefined By
 Inherited
addButton(data:Object, selected:Boolean):void
Use this method to add a button via animation.
ButtonBarBase
 Inherited
End a selected button drag.
ButtonBarBase
 Inherited
removeButton(index:int):void
Use this method to remove a button via animation.
ButtonBarBase
 Inherited
startButtonDrag(initialX:Number):void
Start dragging the selected button.
ButtonBarBase
Protected Methods
 MethodDefined By
 Inherited
Commits the buttonSnapshot to the underlying collection and updates the buttons to reflect the buttonSnapshot.
ButtonBarBase
 Inherited
dragHandler(event:Event):void
Handles the events and logic for user initiated dragging.
ButtonBarBase
 Inherited
effectHandler(event:EffectEvent):void
Handles the events and logic for effects.
ButtonBarBase
 Inherited
eventHandler(event:Event):void
Handles events on the control.
ButtonBarBase
 Inherited
Sets up the final animations after a removeSession is finished.
ButtonBarBase
 Inherited
Creates and returns a Fade effect on the passed data.
ButtonBarBase
 Inherited
Creates and returns a Move animation to move a button to the new position.
ButtonBarBase
 Inherited
Creates and returns a resize effect on the passed data.
ButtonBarBase
 Inherited
rendererHandler(event:Event):void
Handles events on the renderers.
ButtonBarBase
 Inherited
Setup the final animation for a removal session.
ButtonBarBase
 Inherited
Creates a vector of SlidingButtonData objects for each button from left to right.
ButtonBarBase
Events
 Event Summary Defined By
 InheritedDispatched when a button is closed via the close button.ButtonBarBase
 InheritedDispatched when a button is about to be closed via the close button.ButtonBarBase
 InheritedDispatched when a ButtonBarButton's closeButtonPart is clicked.ButtonBarBase
 InheritedDispatched when a drag ends.ButtonBarBase
 InheritedDispatched while a button is dragging.ButtonBarBase
 InheritedDispatched when a button drag starts.ButtonBarBase
 InheritedDispatched immediately before a button is dragged.ButtonBarBase