- 論壇徽章:
- 0
|
Application繼承關系
UIComponent->Container->LayoutContainer->Application
ApplicationControlBar繼承關系
UIcomponent->Container->Box->ControlBar->ApplicationControlBar
其主要用于全局導航,其是ControlBar的子類,后者用于Panel及itleWindow
Canvas繼承關系
UIcomponent->Container->Canvas
其只有absolute布局
Box,HBox,VBox繼承關系
UIcomponent->Container->Box,然后HBox,VBox是Box的子類,實際上Box有個屬性direction,可以使其顯示為HBox或HBox
DividedBox,HDividedBox,VDividedBox繼承關系
UIcomponent->Container->Box->DividedBox ,然后HDividedBox,VDividedBox是其子類,三者之間的關系同Box與HBox,Vbox的關系一樣
Panel繼承關系
UIcomponent->Container->Panel
Panel可以在下部包含一個ControlBar
Panel的布局方式為absolute時,相當于Canvas
為vertical時,相當于VBox
為horizontal時,相當于HBox
TitleWindow繼承關系
UIcomponent->Container->Panel->TitleWindow,其與Panel基本一樣,
它可以在右上角顯示一個關閉按鈕,其一般當做彈出窗口使用,當做彈出窗口時,用PopUpManager類來管理
在Flex自帶的幫助TitleWindow layout container中有大量的例子及教程,關于用PopUpManager來操作TitleWindow的
Form繼承關系
UIcomponent->Container->Form
Form內(nèi)部可以有
UIComponent->FormHeading
UIcomponent->Container->FormItem
這里看下Flex自帶的幫助中的Form, FormHeading, and FormItem layout containers,里邊有如何設置
各部分的間隔等教程
Title繼承關系
UIcomponent->Container->Title
Grid繼承關系UIcomponent->Container->Box->Grid
其內(nèi)部可以有
UIcomponent->Container->Box->HBox->GridRow
UIcomponent->Container->Box->HBox->GridItem
Accordion繼承關系
UIcomponent->Container->Accordion
ViewStack繼承關系
UIcomponent->Container->ViewStack
ViewStack沒有內(nèi)建的切換內(nèi)部容器的機制,其必須和一組按鈕或
LinkBar,ButtonBar,ToggleButtonBar,TabBar配合使用,這些都是NavBar的子類或子子類
TabNavigator繼承關系
UIcomponent->Container->ViewStack->TabNavigator
TabNavigato是ViewStack加TabBar的效果
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>常規(guī)組件
Alert繼承關系
UIcomponent->Container->Panel->Alert
ColorPicker繼承關系
UIcomponent->ComboBase->ColorPicker
其有個dataProvider屬性,可以指定提供哪些顏色供選擇
ComboBox繼承關系
UIcomponent->ComboBase->ComboBox
HorizontalList繼承關系
UIcomponent->ScrollControlBase->ListBase->TileBase->HorizontalList
TileList繼承關系
UIcomponent->ScrollControlBase->ListBase->TileBase->TitleList
List繼承關系
UIcomponent->ScrollControlBase->ListBase->List
Tree繼承關系
UIcomponent->ScrollControlBase->ListBase->List->Tree
DataGrid繼承關系
UIComponent->ScrollControlBase->ListBase->DataGridBase->DataGrid
TabBar繼承關系
UIcomponent->Container->Box->NavBar->ButtonBar->ToggleButtonBar->TabBar
ButtonBar與ToggleButtonBar類似,后者放開鼠標后能顯示按下的狀態(tài),TabBar也是顯示按下狀態(tài),但外觀不一樣
LinkBar繼承關系
UIcomponent->Container->Box->NavBar->LinkBar
其在內(nèi)部根據(jù)數(shù)據(jù)源產(chǎn)生LinkButton
幾個簡單的組件:
UIcomponent->ProgressBar進度條
UIcomponent->Spacer 空生空白的空間
UIComponent->HRule及VRule 創(chuàng)建水平或堅直的線
UIComponent->NumericStepper 提供數(shù)據(jù)供選擇,類似于ComboBox,但不產(chǎn)生下拉列表
UIComponent->Slider->HSlider及VSlider 通過拖到選擇數(shù)據(jù)
UIComponent->ScrollBar->HScrollBar及VScrollBar,通常不單獨使用,空間不夠時自動產(chǎn)生
UIComponent->Button
UIComponent->Button->CheckBox
UIComponent->Button->RadioButton
Object->EventDispatcher->RadioButtonGroup 這個比較特別
UIComponent->Button->LinkButton
UIComponent->Button->PopUpButton 彈出一個菜單
UIComponent->Button->PopUpButton->PopUpMenuButton 數(shù)據(jù)源自動轉成一個菜單
PopUpButton比Button多了一個pop-up button可以彈出Menu或List,通過屬性Popup指定
UIComponent->DateChooser
UIcomponent->ComboBase->DateField
UIComponent->MenuBar 橫向菜單
UIComponent->Label->Text Lable顯示單行字,Text可以顯示多行
UIComponent->ScrollControlBase->TextArea
UIComponent->TextInput
UIcomponent->Container->Panel-> RichTextEditor 這個控件的外觀不是固定的,可以添加刪除其它組件,具體看下幫助
補充:
一:集合
ArrayCollection,XMLListCollection 繼承了
mx.collections.ListCollectionView ,其實現(xiàn)了mx.collections.ICollectionView 和mx.collections.IList接口. 這兩個接口提供了查看和
修改數(shù)據(jù)的基本方法,ArrayCollection用一個數(shù)組做數(shù)據(jù)源. XMLListCollection用XMLLIST做數(shù)據(jù)源對象
總的來說集特征如下:當數(shù)據(jù)源發(fā)生改變生,組件即時更新顯示,可以查看,修改,排序源數(shù)據(jù)
有兩種數(shù)據(jù)源類型
線性的
層級的,一般用于Tree,Menu,MenuBar,PopUpMenuButton
定義數(shù)據(jù)源的方法
用標簽
在AS中定義
二:層級數(shù)據(jù)對象
可以是XML相關格式或Objects
三:使用條目逞現(xiàn)器和編輯器,用于ListBase下相關的控件
四:Menu,這個只能通過AS來創(chuàng)建
本文來自ChinaUnix博客,如果查看原文請點:http://blog.chinaunix.net/u2/65993/showart_2165278.html |
|