User Guide

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.