| Creating and Extending Flex 2 Components > Creating ActionScript Components > Creating Advanced Visual Components in ActionScript > About creating advanced components > About overriding protected UIComponent methods | |||
All Flex visual components are subclasses of the UIComponent class. Therefore, visual components inherit the methods, properties, events, styles, and effects defined by the UIComponent class.
To create an advanced visual component, you must implement a class constructor. Also, you optionally override one or more of the following protected methods of the UIComponent class:
|
UIComponent method |
Description |
|---|---|
commitProperties()
|
Commits any changes to component properties, either to make the changes occur at the same time, or to ensure that properties are set in a specific order. For more information, see Implementing the commitProperties() method. |
createChildren()
|
Creates any child components of the component. For example, the ComboBox control contains a TextInput control and a Button control as child components. For more information, see Implementing the createChildren() method. |
layoutChrome()
|
Defines the border area around the container for subclasses of the Container class. For more information, see Implementing the layoutChrome() method. |
measure()
|
Sets the default size and default minimum size of the component. For more information, see Implementing the measure() method. |
updateDisplayList()
|
Sizes and positions the children of the component on the screen based on all previous property and style settings, and draws any skins or graphic elements used by the component. The parent container for the component determines the size of the component itself. For more information, see Implementing the updateDisplayList() method. |
Component users do not call these methods directly; Flex calls them as part of the initialization process of creating a component, or when other method calls occur. For more information, see About the component instantiation life cycle.
Flex 2.01
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/201/html/ascomponents_advanced_148_03.html