Flex Gumbo中如何使用Repeater类的例子

By Minidxer | July 25, 2009

接下来的例子演示了Flex Gumbo中如何使用Repeater类。

让我们先来看一下Demo可以点击这里察看源代码):


下面是完整代码(或点击这里察看):

Download: main.mxml
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FxApplication xmlns="http://ns.adobe.com/mxml/2009">
  3.     <layout>
  4.         <VerticalLayout />
  5.     </layout>
  6.  
  7.     <Declarations>
  8.         <ArrayList id="arrList"
  9.                 source="[The,Quick,Brown,Fox,Jumps,Over,The,Lazy,Dog]"/>
  10.     </Declarations>
  11.  
  12.     <Label text="-- Start" />
  13.  
  14.     <VBox>
  15.         <Repeater id="r" dataProvider="{arrList}">
  16.             <FxButton left="20" top="335" label="{r.currentItem}" />
  17.         </Repeater>
  18.     </VBox>
  19.  
  20.     <Label text="Finish --" />
  21.  
  22. </FxApplication>
代码:Peter deHaan 翻译/整理/编译:中文Flex例子

Topics: Gumbo, Other | No Comments » | Tags: ,

Search Posts