Apache Flex 4.13.0 API Reference
All Packages
|
All Classes
|
Index
|
Frames
No Frames
Label
Properties
|
Methods
|
Events
Package
org.apache.flex.html5
Class
public class Label
Inheritance
Label
Label
UIBase
flash.display.Sprite
Label probably should extend TextField directly, but the player's APIs for TextLine do not allow direct instantiation, and we might want to allow Labels to be declared and have their actual view be swapped out.
Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties
Property
Defined By
$height
: Number
[read-only] Retrieve the low-level bounding box height.
UIBase
$width
: Number
[read-only] Retrieve the low-level bounding box width.
UIBase
beads
: Array
The array property that is used to add additional beads to an MXML tag.
UIBase
className
: String
The classname.
UIBase
element
: Object
[read-only] Each IUIBase has an element that is actually added to the platform's display list DOM.
UIBase
explicitHeight
: Number
The explicitly set width (as opposed to measured width or percentage width).
UIBase
explicitWidth
: Number
The explicitly set width (as opposed to measured width or percentage width).
UIBase
height
: Number
[override] The height of the component.
UIBase
html
: String
The html-formatted text to display in the label.
Label
id
: String
An id property for MXML documents.
UIBase
measurementBead
:
IMeasurementBead
[read-only] A measurement bead, if one exists.
UIBase
model
:
IBeadModel
An IBeadModel that serves as the data model for the component.
UIBase
numElements
: int
[read-only] The number of elements in the parent.
UIBase
percentHeight
: Number
The requested percentage height this component should have in the parent container.
UIBase
percentWidth
: Number
The requested percentage width this component should have in the parent container.
UIBase
text
: String
The text to display in the label.
Label
view
:
IBeadView
An IBeadView that serves as the view for the component.
UIBase
width
: Number
[override] The width of the component.
UIBase
Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods
Method
Defined By
addBead
(bead:
IBead
):void
Add a bead to the strand.
UIBase
addedToParent
():void
The method called when added to a parent.
UIBase
addElement
(c:Object):void
Add a component to the parent.
UIBase
addElementAt
(c:Object, index:int):void
Add a component to the parent.
UIBase
getBeadByType
(classOrInterface:Class):
IBead
Find a bead on the strand.
UIBase
getElementIndex
(c:Object):int
Gets the index of this subcomponent.
UIBase
removeBead
(value:
IBead
):
IBead
Remove a bead from the strand.
UIBase
removeElement
(c:Object):void
Remove a component from the parent.
UIBase
Events
Hide Inherited Events
Show Inherited Events
Event
Summary
Defined By
click
Set a different class for click events so that there aren't dependencies on the flash classes on the JS side.
UIBase
Wed Jul 9 2014, 10:38 PM -07:00