Package | ardisia.components.buttonBar |
Class | public class ButtonBarButton |
Inheritance | ButtonBarButton spark.components.ButtonBarButton |
Adds support for a close button that is added directly to the button that triggers the button's removal by the ButtonBar class.
Default MXML Propertylabel
Property | Defined By | ||
---|---|---|---|
canBeClosed : Boolean
If true, can be closed via the close icon. | ButtonBarButton | ||
markedForDeletion : Boolean
If true, this button's data will be deleted by the ButtonBar class in
the future. | ButtonBarButton |
Method | Defined By | ||
---|---|---|---|
ButtonBarButton | |||
setHovered(value:Boolean):void
Update the hovered property. | ButtonBarButton |
Method | Defined By | ||
---|---|---|---|
closeButtonPartHandler(event:MouseEvent):void
Handles events for the close button skin part. | ButtonBarButton |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the closeButtonPart is clicked. | ButtonBarButton |
This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.
Skin Part | Description | Defined By | ||
---|---|---|---|---|
closeButtonPart:mx.core.IVisualElement | Required: false Part Type: Static Optional skin part used to dispatch a "closeButtonDown" event. | ButtonBarButton |
To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.
canBeClosed | property |
canBeClosed:Boolean
If true, can be closed via the close icon.
The default value is true
.
public function get canBeClosed():Boolean
public function set canBeClosed(value:Boolean):void
markedForDeletion | property |
public var markedForDeletion:Boolean
If true, this button's data will be deleted by the ButtonBar class in the future.
The default value is false
.
ButtonBarButton | () | Constructor |
public function ButtonBarButton()
closeButtonPartHandler | () | method |
protected function closeButtonPartHandler(event:MouseEvent):void
Handles events for the close button skin part.
Parameters
event:MouseEvent — the Event that triggered the handler
|
setHovered | () | method |
public function setHovered(value:Boolean):void
Update the hovered property.
Parameters
value:Boolean — Boolean value to set the "hovered" property
|
closeButtonClick | Event |
ardisia.components.buttonBar.events.ButtonBarEvent
ardisia.components.buttonBar.events.ButtonBarEvent
Dispatched when the closeButtonPart is clicked.