5/16/2023 0 Comments Flex buttonbar![]() New methods implementing IList that mirror DisplayObjectContainer APIs (addChild/removeChild) are added to ViewStack.Ģ) ViewStack also implements ISelectableList that indicates that the dataProvider has a selectedIndex property.ģ) ButtonBar checks when its selectedIndex changes and if the dataProvider implements ISelectableList, sets the selectedIndex on the dataProvider, and watches for the ViewStack's selectedIndex to change and updates its selectedIndex if needed. This feature is implemented in three steps:ġ) ViewStack implements IList. He wants to use Spark ButtonBar, but he can't assign the ViewStack as the dataProvider of a Spark ButtonBar Detailed Description Because he wants to use custom skins for everything, he doesn't want to use a different skinning model for Halo ButtonBar vs the various Spark skins in the ViewStack pages. He needs a component that will allow the user to select which ViewStack page is displayed. In a separate but related feature, Spark Containers can now be placed in a ViewStack and that will increase the odds that someone will want to control that ViewStack using Spark ButtonBar instead of a Halo ButtonBar Usage ScenariosĬasper uses the new capabilities of ViewStack to create a stack of Spark-based containers that represent different views of a data model. The typical use for a button bar is for grouping a set of related buttons together, which gives them a common look and navigation, and handling the logic for the change event in a single place. In Spark, the dataProvider properly is strongly-typed as IList to simplify and reduce code. The ButtonBar control defines a horizontal group of logically related buttons with a common look and navigation. Halo ButtonBar could take all kinds of things as a dataProvider such as XMLList, Array or even a ViewStack. IList - The interface that describes a modifiable array that dispatches change notifications Summary and Background Kari White (QA) Functional and Design Specification ![]() ![]() Halo ViewStack and Spark ButtonBar Specification ![]()
0 Comments
Leave a Reply. |