Packagelunas.display.text
Classpublic class VisualTextInputStyle
InheritanceVisualTextInputStyle Inheritance AbstractStyle Inheritance ConfigurableObject Inheritance CoreEventDispatcher Inheritance CoreObject

The IStyle class of the VisualTextInput component.



Public Properties
 PropertyDefined by
 Inheritedchannel : String
Indicates the channel of this dispatcher if this instance is global.
CoreEventDispatcher
  color : uint = 0x0B333C
Color of text in the component.
VisualTextInputStyle
  defaultTextFormat : TextFormat
The default TextFormat of the text input.
VisualTextInputStyle
  disabledColor : uint = 0xAAB3B3
Color of text in the component if it is disabled.
VisualTextInputStyle
 Inheritedid : *
Returns the id of this object.
ConfigurableObject
 InheritedisConfigurable : Boolean
(read-write) Returns true if the object is configurable and receive the notification of the ConfigCollector in the setup() method.
ConfigurableObject
 InheritedisGlobal : Boolean
(read-only) Returns the value of the isGlobal flag of this model.
CoreEventDispatcher
 InheritedstyleSheet : StyleSheet
Indicates the style sheet reference of this object.
AbstractStyle
Public Methods
 MethodDefined by
  
VisualTextInputStyle(id:* = null, init:Boolean = null, bGlobal:String = "false", sChannel:* = null)
Creates a new VisualTextInputStyle instance.
VisualTextInputStyle
 Inherited
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
 Inherited
dispatchEvent(event:Event):Boolean
Dispatches an event into the event flow.
CoreEventDispatcher
 Inherited
Returns the internal EventDispatcher reference.
CoreEventDispatcher
 Inherited
getIsGlobal():Boolean
Returns the value of the isGlobal flag of this model.
CoreEventDispatcher
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
getStyle(prop:String):*
Returns the value of the specified property if it's exist in the object, else returns null.
AbstractStyle
 Inherited
hasEventListener(type:String):Boolean
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
CoreEventDispatcher
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreObject
 Inherited
Creates and returns the internal EventDispatcher reference (this method is invoked in the constructor).
CoreEventDispatcher
 Inherited
initialize():void
Invoked in the constructor of the IStyle instance.
AbstractStyle
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreEventDispatcher
 Inherited
lock():void
Locks the object.
CoreEventDispatcher
 Inherited
Invoked when the style is changed.
AbstractStyle
 Inherited
registerEventListener(type:String, listener:Boolean, useCapture:int = false, priority:Boolean = 0, useWeakReference:* = false):void
Allows the registration of event listeners on the event target (Function or EventListener).
CoreEventDispatcher
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Removes a listener from the EventDispatcher object.
CoreEventDispatcher
 Inherited
Sets the internal EventDispatcher reference.
CoreEventDispatcher
 Inherited
setGlobal(flag:Boolean = false, channel:String = null):void
Sets if the instance use a global EventDispatcher to dispatch this events, if the flag value is false the instance use a local EventDispatcher.
CoreEventDispatcher
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreObject
 Inherited
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.
AbstractStyle
 Inherited
setup():void
Invoked when this object when the ConfigCollector is run.
AbstractStyle
 Inherited
styleChanged():void
Invoked when a style property of this IStyle change.
AbstractStyle
 Inherited
Invoked when the styleSheet value of this IStyle change.
AbstractStyle
 Inherited
toSource(indent:int = 0):String
Returns the string representation the source code of the object.
CoreEventDispatcher
 Inherited
toString():String
Returns the String representation of this object.
AbstractStyle
 Inherited
unlock():void
Unlocks the display.
CoreEventDispatcher
 Inherited
unregisterEventListener(type:String, listener:Boolean, useCapture:* = false):void
Removes a listener (Function or EventListener object) from the EventDispatcher object.
CoreEventDispatcher
 Inherited
update():void
Update the display.
ConfigurableObject
 Inherited
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
Protected Methods
 MethodDefined by
 Inherited
_setID(id:*):void
Sets the id of the object and register it in the StyleCollector if it's possible.
AbstractStyle
Property detail
colorproperty
public var color:uint = 0x0B333C

Color of text in the component.

defaultTextFormatproperty 
public var defaultTextFormat:TextFormat

The default TextFormat of the text input.

disabledColorproperty 
public var disabledColor:uint = 0xAAB3B3

Color of text in the component if it is disabled. The default value is 0xAAB3B3.

Constructor detail
VisualTextInputStyle()constructor
public function VisualTextInputStyle(id:* = null, init:Boolean = null, bGlobal:String = "false", sChannel:* = null)

Creates a new VisualTextInputStyle instance.

Parameters
id:* (default = null) — The id of the object.
 
init:Boolean (default = null) — An object that contains properties with which to populate the newly IStyle object. If initObject is not an object, it is ignored.
 
bGlobal:String (default = "false") — the flag to use a global event flow or a local event flow.
 
sChannel:* (default = null) — the name of the global event flow if the bGlobal argument is true.