Package | ardisia.components.viewStack |
Class | public class ViewStack |
Inheritance | ViewStack spark.components.SkinnableContainer |
Subclasses | Accordion, TabPaneNavigator |
Direct child elements must implement IDeferredContentOwner (SkinnableContainer).
The ViewStack's measured dimensions are the same as the selected child's.
View the technical documentation on the Ardisia Labs website for more information.
Default MXML PropertymxmlContentFactory
Property | Defined By | ||
---|---|---|---|
selectedChild : IVisualElement
The selected child element in the ViewStack. | ViewStack | ||
selectedIndex : int
The zero-based index of the currently visible child element. | ViewStack |
Method | Defined By | ||
---|---|---|---|
commitSelectedIndex(removeFromLayout:Boolean = true):void
Commit the selected index, update the visible element and update the
bindings. | ViewStack | ||
eventHandler(event:Event):void
Handles events on the class. | ViewStack | ||
selectElement(element:IVisualElement):void
Select the following element and initialize if necessary. | ViewStack | ||
setupDeferredContent():void
Setup the deferred content. | ViewStack |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the selectedChild changes. | ViewStack | |||
Dispatched when the selectedChild is about to change. | ViewStack |
selectedChild | property |
selectedChild:IVisualElement
The selected child element in the ViewStack.
A value of null indicates no selection.
The default value is null
.
This property can be used as the source for data binding.
public function get selectedChild():IVisualElement
public function set selectedChild(value:IVisualElement):void
selectedIndex | property |
selectedIndex:int
The zero-based index of the currently visible child element.
a value of -1 indicates no selection.
Is bindable. Bound to "change" events.
The default value is -1
.
This property can be used as the source for data binding.
public function get selectedIndex():int
public function set selectedIndex(value:int):void
commitSelectedIndex | () | method |
protected function commitSelectedIndex(removeFromLayout:Boolean = true):void
Commit the selected index, update the visible element and update the bindings.
Parameters
removeFromLayout:Boolean (default = true ) — true to remove elements from layout
|
eventHandler | () | method |
protected function eventHandler(event:Event):void
Handles events on the class.
Parameters
event:Event — the Event that triggered the handler
|
selectElement | () | method |
protected function selectElement(element:IVisualElement):void
Select the following element and initialize if necessary.
Parameters
element:IVisualElement — the IVisualElement to display
|
setupDeferredContent | () | method |
protected function setupDeferredContent():void
Setup the deferred content.
change | Event |
spark.events.IndexChangeEvent
spark.events.IndexChangeEvent
Dispatched when the selectedChild changes.
changing | Event |
spark.events.IndexChangeEvent
spark.events.IndexChangeEvent
Dispatched when the selectedChild is about to change. Can be cancelled.