| Package | lunas.components.labels |
| Class | public class LabelStyle |
| Inheritance | LabelStyle CoreStyle ConfigurableObject CoreEventDispatcher Object |
| Subclasses | IconLabelStyle, PaginationLabelStyle |
| Property | Defined By | ||
|---|---|---|---|
| antiAliasType : String = normal
The antiAliasType value of the label field of the component. | LabelStyle | ||
| autoSize : String = none
Indicates the autosize value of the label field of the component. | LabelStyle | ||
| border : Boolean
Indicates if the border of the field is visible. | LabelStyle | ||
| borderColor : Number
The color of the field border. | LabelStyle | ||
![]() | channel : String [read-only]
Indicates the channel of this dispatcher if this instance is global. | CoreEventDispatcher | |
| color : Number = 0x000000
The default color of the field of the component. | LabelStyle | ||
| embedFonts : Boolean
Indicates the embedFonts value of the label field of the component. | LabelStyle | ||
| gridFitType : String = none
The gridFitType value of the label field of the component. | LabelStyle | ||
| height : Number
Indicates the height value of the label field of the component. | LabelStyle | ||
| html : Boolean = true
Indicates the html value of the label field of the component. | LabelStyle | ||
![]() | id : *
Returns the id of this object. | ConfigurableObject | |
![]() | isConfigurable : Boolean
Indicates if the object is configurable and receive the notification of the ConfigCollector in the setup() method. | ConfigurableObject | |
| margin : EdgeMetrics
The margin values of the component. | LabelStyle | ||
| multiline : Boolean
Indicates if the text in the button is multiline. | LabelStyle | ||
| padding : EdgeMetrics
The padding EdgeMetrics object of the component. | LabelStyle | ||
| selectable : Boolean
Indicates the selectable value of the label field of the component. | LabelStyle | ||
| styleName : String = label
The style name of the label field of the component. | LabelStyle | ||
![]() | styleSheet : StyleSheet
Indicates the style sheet reference of this object. | CoreStyle | |
| textDisabledColor : Number = 0xCCCCCC
The color of the text when is disabled. | LabelStyle | ||
| useTextColor : Boolean = true
Indicates if the component use the style text colors. | LabelStyle | ||
| width : Number
Indicates the width value of the label field of the component. | LabelStyle | ||
| wordWrap : Boolean
The wordwrap value of the fields. | LabelStyle | ||
| Method | Defined By | ||
|---|---|---|---|
LabelStyle(init:* = null, id:* = null)
Creates a new LabelStyle instance. | LabelStyle | ||
![]() | addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0.0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target. | CoreEventDispatcher | |
![]() | dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow. | CoreEventDispatcher | |
![]() |
Returns the internal system.events.EventDispatcher reference. | CoreEventDispatcher | |
![]() | getStyle(prop:String):*
Returns the value of the specified property if it's exist in the object, else returns null. | CoreStyle | |
![]() | hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event. | CoreEventDispatcher | |
initialize():void [override]
Initialize the Style object. | LabelStyle | ||
![]() | isGlobal():Boolean
Indicates if the dispatcher use a global event flow. | CoreEventDispatcher | |
![]() | isLocked():Boolean
Returns true if the object is locked. | CoreEventDispatcher | |
![]() | lock():void
Locks the object. | CoreEventDispatcher | |
![]() | notifyStyleChanged():void
Invoked when the style is changed. | CoreStyle | |
![]() | registerEventListener(type:String, listener:*, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Allows the registration of event listeners on the event target (Function or EventListener). | CoreEventDispatcher | |
![]() | removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object. | CoreEventDispatcher | |
![]() | setEventDispatcher(dispatcher:EventDispatcher):void
Sets the internal EventDispatcher reference. | CoreEventDispatcher | |
![]() | setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global system.events.EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher. | CoreEventDispatcher | |
![]() | setStyle(... args):void
This method is invoked to change a style attribute in this IStyle object with a generic object or a key(String)/value pair of arguments. | CoreStyle | |
![]() | setup():void [override]
Invoked when this object when the ConfigCollector is run. | CoreStyle | |
![]() | styleChanged():void
Invoked when a style property of this IStyle change. | CoreStyle | |
![]() | styleSheetChanged():void
Invoked when the styleSheet value of this IStyle change. | CoreStyle | |
![]() | toString():String
Returns the String representation of this object. | CoreStyle | |
![]() | unlock():void
Unlocks the display. | CoreEventDispatcher | |
![]() | unregisterEventListener(type:String, listener:*, useCapture:Boolean = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object. | CoreEventDispatcher | |
![]() | update():void
Update the display. | ConfigurableObject | |
![]() | willTrigger(type:String):Boolean
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type. | CoreEventDispatcher | |
| antiAliasType | property |
public var antiAliasType:String = normalThe antiAliasType value of the label field of the component.
| autoSize | property |
public var autoSize:String = noneIndicates the autosize value of the label field of the component.
| border | property |
public var border:BooleanIndicates if the border of the field is visible.
| borderColor | property |
public var borderColor:NumberThe color of the field border.
| color | property |
public var color:Number = 0x000000The default color of the field of the component.
| embedFonts | property |
public var embedFonts:BooleanIndicates the embedFonts value of the label field of the component.
| gridFitType | property |
public var gridFitType:String = noneThe gridFitType value of the label field of the component.
| height | property |
public var height:NumberIndicates the height value of the label field of the component.
| html | property |
public var html:Boolean = trueIndicates the html value of the label field of the component.
| margin | property |
public var margin:EdgeMetricsThe margin values of the component.
| multiline | property |
public var multiline:BooleanIndicates if the text in the button is multiline.
| padding | property |
public var padding:EdgeMetricsThe padding EdgeMetrics object of the component.
| selectable | property |
public var selectable:BooleanIndicates the selectable value of the label field of the component.
| styleName | property |
public var styleName:String = labelThe style name of the label field of the component.
| textDisabledColor | property |
public var textDisabledColor:Number = 0xCCCCCCThe color of the text when is disabled.
| useTextColor | property |
public var useTextColor:Boolean = trueIndicates if the component use the style text colors.
| width | property |
public var width:NumberIndicates the width value of the label field of the component.
| wordWrap | property |
public var wordWrap:BooleanThe wordwrap value of the fields.
| LabelStyle | () | Constructor |
public function LabelStyle(init:* = null, id:* = null)Creates a new LabelStyle instance.
Parametersinit:* (default = null) — An object that contains properties with which to populate the newly Style object. If init is not an object, it is ignored.
| |
id:* (default = null) — The id of the object.
|
| initialize | () | method |
override public function initialize():voidInitialize the Style object.