Implementing The Component - Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual

Creating and extending flex 2 components
Hide thumbs Also See for FLEX 2 - CREATING AND EXTENDING COMPONENTS:
Table of Contents

Advertisement

The following table lists the main interfaces implemented by Flex components:
Interface
IChildList
IDeferredInstantiationUIComponent
IFlexDisplayObject
IFocusManagerComponent
IInvalidating
ILayoutManagerClient
IPropertyChangeNotifier
IRepeaterClient
IStyleClient
IToolTipManagerClient
IUIComponent
IValidatorListener

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:
Use
Indicates the number of children in a container.
Indicates that a component or object can effect
deferred instantiation.
Specifies the interface for skin elements.
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.
Indicates that a component or object can use the
invalidation mechanism to perform delayed, rather than
immediate, property commitment, measurement, and
drawing or layout.
Indicates that a component or object can participate in
the LayoutManager's commit, measure, and update
sequence.
Indicates that a component supports a specialized form
of event propagation.
Indicates that a component or object can be used with
the Repeater class.
Indicates that the component can inherit styles from
another object, and supports the
methods.
getStyle()
Indicates that a component has a
and, therefore, is monitored by the ToolTipManager.
Defines the basic set of APIs that you must implement
in order to be a child of layout containers and lists.
Indicates that a component can listen for validation
events, and, therefore, show a validation state, such as
a red border and error tooltips.
setStyle()
property,
toolTip

Implementing the component

and
155

Advertisement

Table of Contents
loading

Table of Contents