A Label component displays one line of plain text. Label components do not have borders.

Variables

dataProvider:ArrayCollection

Gets or sets the plain dataProvider to be displayed by the Label component.

itemRenderer:UIComponent

Use itemRenderer to create specific text formatting for text fields.

selectedIndex:Int

The 0-based index of the selected item, or -1 if no item is selected.

Methods

ensureIndexIsVisible (index:Int):Void

A convenience method that handles scrolling a data item into view.

@index The index of the data item.

Inherited Variables

Defined by UIComponent

read onlycontentHeight:Float

The height of the viewport's content.

read onlycontentWidth:Float

The width of the viewport's content.

enabled:Bool

Gets or sets a value that indicates whether the component can accept user input.

The default value is true

includeInLayout:Bool

Determines if the layout should use this object or ignore it.

The default value is true

isCreated:Bool

Determines if the component has been initialized and validated for the first time.

layout:Dynamic

Controls the way that the group's children are positioned and sized.

maxHeight:Float

The maximum recommended height of the component to be considered by the parent during layout.

maxWidth:Float

The maximum recommended width of the component to be considered by the parent during layout.

minHeight:Float

The minimum recommended height of the component to be considered by the parent during layout.

minWidth:Float

The minimum recommended width of the component to be considered by the parent during layout.

Inherited Methods

Defined by UIComponent

invalidateDisplayList ():Void

Marks a component so that its updateDisplayList() method gets called during a later screen update.

invalidateProperties ():Void

Marks a component so that its commitProperties() method gets called during a later screen update.

invalidateSize ():Void

Marks a component so that its measure() method gets called during a later screen update.

validate ():Void

Validate and update the properties and layout of this object and redraw it, if necessary.