UIComponent 类是所有可视组件(交互式和非交互式)的基类。 交互式组件被定义为接收用户输入(例如键盘或鼠标活动)的组件。 非交互式组件用于显示数据;它们对用户交互不做响应。 ProgressBar 和 UILoader 组件是非交互式组件的示例。 Tab 和箭头键可以用来将焦点移到交互式组件上以及将焦点从交互式组件上移开;交互式组件可以接受低级别事件,例如鼠标和键盘设备的输入。 也可以禁用交互式组件,以便它无法接收鼠标和键盘输入。
Then extend from the base class UIComponent, and override the updateDisplayList() method to draw the custom vector drawing.
然后从基类 UIComponent 扩展,并覆盖 updateDisplayList() 方法来绘制这个定制矢量图。
This is also the point at which half of the testing frameworks fail, because they don't actually allow you to add UIComponent to the display list for testing.
这里也是一半测试框架做不到的地方,因为它们实际上不允许把UIComponent增加到显示列表进行测试。
Flex components that extend the Flex UIComponent base class allow you to set common styles as properties inline-in other words, within the MXML component declaration tag (see Listing 1).
扩展了Flex UIComponent基类的Flex组件允许作为内联属性设置常见样式—换言之,即在MXML组件声明标签内(参见清单1)。
UIComponent 类是所有可视组件(交互式和非交互式)的基类。 交互式组件被定义为接收用户输入(例如键盘或鼠标活动)的组件。 非交互式组件用于显示数据;它们对用户交互不做响应。 ProgressBar 和 UILoader 组件是非交互式组件的示例。 Tab 和箭头键可以用来将焦点移到交互式组件上以及将焦点从交互式组件上移开;交互式组件可以接受低级别事件,例如鼠标和键盘设备的输入。 也可以禁用交互式组件,以便它无法接收鼠标和键盘输入。
应用推荐