Tree
階層データを展開可能なツリー形式で表示できるコンポーネントである。
まずは簡単なMXMLからの利用例を記述しておく。
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="220" height="220">
<mx:Tree labelField="@label" width="200" height="200" x="10" y="10">
<mx:dataProvider>
<mx:XMLList>
<TreeItem label="インターネット">
<Item label="ブラウザ">
<SubItem label="IE" />
<SubItem label="Firefox" />
</Item>
<Item label="メール" />
</TreeItem>
<TreeItem label="プログラミング">
<Item label="AIR" />
<Item label="JAVA" />
</TreeItem>
</mx:XMLList>
</mx:dataProvider>
</mx:Tree>
</mx:Application>
索引
- Button
- CheckBox
- ColorPicker
- DateChooser
- DataField
- HSlider
- HorizontalList
- Image
- Label
- LinkButton
- List
- NumericStepper
- PopUpButton
- PopUpMenuButton
- ProgressBar
- RadioButton
- RadioButtonGroup
- RichTextEditor
- SWFLoader
- Text
- TextArea
- TextInput
- TileList
- Tree
- VSlider
- VideoDisplay
- HBox
- VBox
- HDividedBox
- VDividedBox
- Grid
- TabNavigator
- Accordion
- MenuBar

