zoukankan      html  css  js  c++  java
  • flex 3 component

    Flex 3

    UI

    CheckBox:可以改变label的放置方位,labelPlacement

    DropDownList:仅可以选择,不能编辑。没有text属性

    ComboBox:可以编辑(editable),可以选择,点右边进行选择。有text属性

    DateField:跟DateChooser用法类似,DateChooser是初始化展开的

    DateChooser:禁用特定日期的选择或限制使用日期范围 disabledRanges="{[ new Date(2006,0,11),{rangeStart:newDate(2006,0,23),rangeEnd:new Date(2006,1,10)]}

    Label是单行的不可编辑的text,Text是多行的不可编辑的text

    NumericStepper:数字单步选择控件

    RadioButton:同一组的groupName属性的值必须一致

    PopUpButton:功能和combobox类似,但PopUpButton点右侧才会popUp。它由button和popUp的menu组成,在creationComplete时设定popUp的初始化。

    ToggleButtonBar:和 buttonBar类似,不过ToggleButtonBar能区分选中和非选中的样式

    LinkBar:和tabBar类似,LinkBar经常和ViewStack还有vbox联用。

    LinkButton:无边线的button,可以看做是label有点击事件。

    List: 默认是纵向的,allowMultipleSelection允许进行多项的选择,它有一个边框和scroll bar

    HorizontalList:有属性columnWidth,columnCount

    TileList:属性:rowHeight 和 columnWidth

    Spacer:占位空间,height和width

    容器

    Canvas:只有在它中,您才能用 x , y 属性明确指定位置,子项可能重叠。绝对定位布局

    HdividedBox:用box来包裹布局,divider可以拖拽

    Tile常和Repeater联用,Repeater接收数据源,并通过repeater的子项构建。

    TabNavigator:LinkBar,tabBar只是按钮,借助ViewStack容器完成切换的。TabNavigator本身就是容器就不需要ViewStack啦,只需要Vbox即可。

    ViewStack:子项由多个Vbox组成,完成tab的作用

     

     

    <mx:Tile direction="horizontal" borderStyle="inset" horizontalGap="10" verticalGap="10" color="0x323232" paddingLeft="10" paddingTop="10" paddingBottom="10" paddingRight="10">

                <mx:Repeater id="rp" dataProvider="{dp}">

                    <mx:Button height="24" width="50"

                        label="{String(rp.currentItem)}"

        click="Alert.show(String(event.currentTarget.getRepeaterItem()) + ' pressed')"/>

                </mx:Repeater>   

                  </mx:Tile>

  • 相关阅读:
    leetcode 86. Partition List
    leetcode 303. Range Sum Query
    leetcode 1310. XOR Queries of a Subarray
    leetcode 1309. Decrypt String from Alphabet to Integer Mapping
    leetcode 215. Kth Largest Element in an Array
    将numpy.ndarray写入excel
    leetcode 1021 Remove Outermost Parentheses
    leetcode 1306. Jump Game III
    leetcode 1305. All Elements in Two Binary Search Trees
    ICCV2019 oral:Wavelet Domain Style Transfer for an Effective Perception-distortion Tradeoff in Single Image Super-Resolution
  • 原文地址:https://www.cnblogs.com/tiandi/p/2319967.html
Copyright © 2011-2022 走看看