| Flex 2 Developer's Guide >
Building User Interfaces for Flex Applications > Using Flex Visual Components > Using the UIComponent class > Commonly used UIComponent properties |
|||
The following table lists only the most commonly used properties of components that extend the UIComponent class:
|
Property |
Type |
Description |
|---|---|---|
doubleClickEnabled
|
Boolean |
Setting to |
enabled
|
Boolean |
Setting to If you set |
height
|
Number |
The height of the component, in pixels. In MXML tags, but not in ActionScript, you can set this property as a percentage of available space by specifying a value such as 70%; in ActionScript, you must use the The property always returns a number of pixels. In ActionScript, you use the |
id
|
String |
Specifies the component identifier. This value identifies the specific instance of the object and should not contain any white space or special characters. Each component in a Flex document must have a unique |
percentHeight
|
Number |
The height of the component as a percentage of its parent container, or for |
percentWidth
|
Number |
The width of the component as a percentage of its parent container, or for |
styleName
|
String |
Specifies the style class selector to apply to the component. |
toolTip
|
String |
Specifies the text string displayed when the mouse pointer hovers over that component. |
visible
|
Boolean |
Specifies whether the container is visible or invisible. The default value is |
width
|
Number |
The width of the component, in pixels. In MXML tags, but not in ActionScript, you can set this property as a percentage of available space by specifying a value such as 70%; in ActionScript, you must use the The property always returns a number of pixels. |
x
|
Number |
The component's |
y
|
Number |
The component's |
Flex 2.01