Flex Gumbo中如何使用Repeater类的例子
By Minidxer | July 25, 2009
接下来的例子演示了Flex Gumbo中如何使用Repeater类。
下面是完整代码(或点击这里察看):
Download: main.mxml
- <?xml version="1.0" encoding="utf-8"?>
- <FxApplication xmlns="http://ns.adobe.com/mxml/2009">
- <layout>
- <VerticalLayout />
- </layout>
- <Declarations>
- <ArrayList id="arrList"
- source="[The,Quick,Brown,Fox,Jumps,Over,The,Lazy,Dog]"/>
- </Declarations>
- <Label text="-- Start" />
- <VBox>
- <Repeater id="r" dataProvider="{arrList}">
- <FxButton left="20" top="335" label="{r.currentItem}" />
- </Repeater>
- </VBox>
- <Label text="Finish --" />
- </FxApplication>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子
Topics:
Gumbo, Other |
No Comments » |
Tags: Gumbo, Repeater