Flex Gumbo中如何通过arrowKeysWrapFocus属性遍历ButtonBar按钮的例子
By Minidxer | August 20, 2009
接下来的例子演示了Flex Gumbo中如何通过arrowKeysWrapFocus属性,遍历ButtonBar按钮。
下面是完整代码(或点击这里察看):
下面是main.mxml:
- <?xml version="1.0" encoding="utf-8"?>
- <s:Application name="Spark_NumericStepper_arrowKeysWrapFocus_test"
- xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns:mx="library://ns.adobe.com/flex/halo">
- <mx:Form>
- <mx:FormItem label="arrowKeysWrapFocus:">
- <s:CheckBox id="checkBox" />
- </mx:FormItem>
- </mx:Form>
- <s:ButtonBar id="btnBar"
- arrowKeysWrapFocus="{checkBox.selected}"
- horizontalCenter="0"
- verticalCenter="0">
- <s:dataProvider>
- <s:ArrayList source="[Red,Orange,Yellow,Green,Blue]" />
- </s:dataProvider>
- </s:ButtonBar>
- </s:Application>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
ButtonBar, Gumbo |
No Comments » |
Tags: arrowKeysWrapFocus, Gumbo