Metadata tags
59
The following table describes the properties of the [
Inspectable]
metadata tag:
Property
Type
Description
category
String
Groups the property into a specific subcategory in the Property
inspector of the Flex Builder user interface. The default category is
"Other"
.
defaultValue
String or
Number
Sets the initial value in the editor that appears in the Property
Inspector when you modify the attribute. The default value is
determined from the property definition.
enumeration
String
Specifies a comma-delimited list of legal values for the property.
Only these values are allowed; for example,
item1
,
item2
,
item3
.
This information appear as code hints and in the Property Inspector.
If you define a Boolean variable, Flex Builder automatically shows
true
and
false
without you having to specifying them using
enumeration
.
environment
String
Specifies which inspectable properties should not be allowed (
none
),
which are used only for Flex Builder (
Flash
), and which are used only
by Flex and not Flex Builder (
MXML
).
format
String
Determines the type of editor that appears in the Property Inspector
when you modify the attribute. You can use this property when the
data type of the attribute is not specific to its function. For example,
for a property of type Number, you can specify
format="Color"
to
cause Flex Builder to open a color editor when you modify the
attribute. Common values for the
format
property include
"Length"
,
"Color"
,
"Time"
,
"EmbeddedFile"
, and
"File"
.
listOffset
Number
Specifies the default index into a List value.
name
String
Specifies the display name for the property; for example,
Font
Width
.
If not specified, use the property’s name, such as
_fontWidth
.
type
String
Specifies the type specifier. If omitted, use the property’s type. The
following values are valid:
•
Array
•
Boolean
•
Color
•
Font Name
•
List
•
Number
•
Object
•
String
If the property is an Array, you must list the valid values for the Array.
Содержание 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...