Implementing the component
155
The following table lists the main interfaces implemented by Flex components:
Implementing the component
When you create a custom component in ActionScript, you have to override the methods of
the UIComponent class. This section describes how to implement the following methods:
Interface
Use
IChildList
Indicates the number of children in a container.
IDeferredInstantiationUIComponent
Indicates that a component or object can effect
deferred instantiation.
IFlexDisplayObject
Specifies the interface for skin elements.
IFocusManagerComponent
Indicates that a component or object is focusable,
which means that the components can receive focus
from the FocusManager.
The UIComponent class does not implement
IFocusable because some components are not
intended to receive focus.
IInvalidating
Indicates that a component or object can use the
invalidation mechanism to perform delayed, rather than
immediate, property commitment, measurement, and
drawing or layout.
ILayoutManagerClient
Indicates that a component or object can participate in
the LayoutManager's commit, measure, and update
sequence.
IPropertyChangeNotifier
Indicates that a component supports a specialized form
of event propagation.
IRepeaterClient
Indicates that a component or object can be used with
the Repeater class.
IStyleClient
Indicates that the component can inherit styles from
another object, and supports the
setStyle()
and
getStyle()
methods.
IToolTipManagerClient
Indicates that a component has a
toolTip
property,
and, therefore, is monitored by the ToolTipManager.
IUIComponent
Defines the basic set of APIs that you must implement
in order to be a child of layout containers and lists.
IValidatorListener
Indicates that a component can listen for validation
events, and, therefore, show a validation state, such as
a red border and error tooltips.
Содержание FLEX 2 - CREATING AND EXTENDING COMPONENTS
Страница 1: ...Creating and Extending Flex 2 Components Adobe Flex 2...
Страница 6: ...6 Contents...
Страница 10: ...10 About Flex Documentation...
Страница 12: ......
Страница 24: ...24 Creating Flex Components...
Страница 74: ...74 Compiling Components...
Страница 76: ......
Страница 118: ...118 Creating Advanced MXML Components...
Страница 120: ......
Страница 182: ...182 Creating Advanced Visual Components in ActionScript...
Страница 194: ...194 Creating Custom Style Properties...
Страница 204: ...204 Creating Template Components...
Страница 206: ......
Страница 216: ...216 Creating Custom Formatters...
Страница 254: ...254 Index...