uicomponent
uicomponent
-
Create a class that extends UIComponent
创建一个类,扩展UIComponent
-
However , the real hero in this set of classes is the UIComponent class , which provides the basic framework you need to write custom components .
不过,这个类集合中的主角是UIComponent类,它为您提供编写定制组件所需的基础框架。
-
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增加到显示列表进行测试。