Adobe FLEX 2 - CREATING AND EXTENDING COMPONENTS Manual page 62

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

Advertisement

Option
Type
String
arrayType
String
format
String
enumeration
String
inherit
The following example shows the definition of the
[Style(name="textSelectedColor",type="Number",format="Color",inherit="yes")]
The next example shows the definition of the
[Style(name="verticalAlign", type="String",
enumeration="bottom,middle,top", inherit="no")]
For more information on the
Properties," on page
183.
62
Using Metadata Tags in Custom Components
Description
If
is
,
type
Array
arrayType
elements. If the data type is not an ActionScript type such as
Number or Date, use a qualified class name in the form
packageName.className.
Specifies the units of the property. For example, if you specify
as
, you might specify
"Number"
length measured in pixels. Or, if you specify
set
if the style defines an RGB color.
format="Color"
Specifies an enumerated list of possible values for the style property.
Specifies whether the property is inheriting. Valid values are
. This property refers to CSS inheritance, not object-oriented
no
inheritance. All subclasses automatically use object-oriented
inheritance to inherit the style property definitions of their
superclasses.
Some style properties are inherited using CSS inheritance. If you set
an inheritable style property on a parent container, its children inherit
that style property. For example, if you define
for a Panel container, all children of that container will also use Times
for
, unless they override that property.
fontFamily
If you set a noninheritable style, such as
container, only the parent container and not its children use that
style. For more information on inheritable style properties, see
"About style inheritance" in Flex 2 Developer's Guide.
metadata tag, see
[Style]
specifies the data type of the Array
format="Length"
textDecoration
textSelectedColor
style property:
verticalAlign
Chapter 11, "Creating Custom Style
type
if the style defines a
, you might
type="uint"
and
yes
as Times
fontFamily
, on a parent
style property:

Advertisement

Table of Contents
loading

Table of Contents