Packagelunas.display.text
Classpublic class VisualTextInput
InheritanceVisualTextInput Inheritance AbstractTextInput Inheritance AbstractComponent Inheritance CoreSprite Inheritance flash.display.Sprite

This class provides a basic implementation of the ITextInput interface, this class is a proxy who use a skin sprite who contains a background and a dynamic textfield reference.



Public Properties
 PropertyDefined by
  background : Sprite
The internal background of this TextInput.
VisualTextInput
  backgroundName : String
The internal background name of this TextInput.
VisualTextInput
 Inheritedborder : EdgeMetrics
Indicates the thickness, in pixels, of the four edge regions around a visual component.
AbstractComponent
 Inheritedbubbles : Boolean = true
Indicates if the events use bubbling when are dispatched.
AbstractComponent
 Inheritedbuilder : IBuilder
Indicates the IBuilder reference of this instance.
AbstractComponent
 InheritedcomponentInspectorSetting : Boolean
Initialize when the Flash component settings are initialized (only in Flash with a compiled component).
AbstractComponent
 InheritedcondenseWhite : Boolean
Specifies whether extra white space (spaces, line breaks, and so on) should be removed in a TextInput control with HTML text.
AbstractTextInput
 Inheriteddata : *
Indicates the data value object of the component.
AbstractTextInput
 InheriteddisplayAsPassword : Boolean
Indicates whether this control is used for entering passwords.
AbstractTextInput
 Inheritededitable : Boolean
Indicates whether the user is allowed to edit the text in this control.
AbstractTextInput
 Inheritedenabled : Boolean
Indicates the enabled state of the component.
AbstractComponent
  fieldName : String
The internal textfield name of this TextInput.
VisualTextInput
 Inheritedgroup : Boolean
Indicates with a boolean if this object is grouped.
AbstractComponent
 InheritedgroupName : String
Indicates the name of the group of this object.
AbstractComponent
 Inheritedh : Number
(read-only) Indicates the virtual height value of this component.
AbstractComponent
 InheritedhorizontalScrollPosition : Number
Horizontal scroll position.
AbstractTextInput
 InheritedhtmlText : String
Specifies the text displayed by the TextInput component, including HTML markup that expresses the styles of that text.
AbstractTextInput
 Inheritedid : *
Returns the id of this object.
CoreSprite
 InheritedisConfigurable : Boolean
Indicates if the display is configurable.
CoreSprite
 InheritedmaxChars : int
Maximum number of characters that users can enter in the text field.
AbstractTextInput
 InheritedmaxHeight : Number
This property defined the maximum height of this component.
AbstractComponent
 InheritedmaxWidth : Number
This property defined the maximum width of this component.
AbstractComponent
 InheritedminHeight : Number
This property defined the mimimun height of this component.
AbstractComponent
 InheritedminWidth : Number
This property defined the mimimun width of this component.
AbstractComponent
 Inheritedmultiline : Boolean
Indicates whether the text field is a multiline text field.
AbstractTextInput
 Inheritedrestrict : String
Indicates the set of characters that a user can enter into the control.
AbstractTextInput
 Inheritedselected : Boolean
A flag that indicates whether this control is selected.
AbstractTextInput
  skin : Sprite
Indicates the skin view of this visual textinput component.
VisualTextInput
 Inheritedstyle : IStyle
Returns the style of this component.
AbstractComponent
 InheritedtabIndex : int
Specifies the tab ordering of objects in a SWF file.
AbstractTextInput
 InheritedtabManager : TabManager
The tab manager of this component.
AbstractTextInput
 Inheritedtext : String
Plain text that appears in the component.
AbstractTextInput
 InheritedtextField : TextField
The internal TextField that renders the text of this TextInput.
AbstractTextInput
 Inheritedw : Number
(read-only) Indicates the virtual width value of this component.
AbstractComponent
 InheritedwordWrap : Boolean
A Boolean value that indicates whether the text field has word wrap.
AbstractTextInput
Protected Properties
 PropertyDefined by
 Inherited_h : Number = 0
The protected virtual height value of the component.
AbstractComponent
 Inherited_w : Number = 0
The protected virtual width value of the component.
AbstractComponent
Public Methods
 MethodDefined by
  
VisualTextInput(id:* = null, skin:Sprite = null, isConfigurable:Boolean = false, name:String = null)
Creates a new VisualTextInput instance.
VisualTextInput
 Inherited
doLater():void
Launch an event with a delayed interval.
AbstractComponent
 Inherited
draw(... arguments):void
Draw the view of the component.
AbstractComponent
 Inherited
Returns the IBuilder constructor use to initialize this component.
AbstractComponent
 Inherited
Returns the internal ILogger reference of this ILogable object.
CoreSprite
  
Invoked when the style of the component is changed.
VisualTextInput
 Inherited
Invoked when the group property or the groupName property changed.
AbstractTextInput
 Inherited
hashCode():uint
Returns a hashcode value for the object.
CoreSprite
 Inherited
hide():void
Hides the component.
AbstractComponent
 Inherited
initialize():void
Initialize the component.
AbstractComponent
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreSprite
 Inherited
isVisible():Boolean
Returns true if the component is visible.
AbstractComponent
 Inherited
lock():void
Locks the object.
CoreSprite
 Inherited
[read-only] Maximum value of horizontalScrollPosition.
AbstractTextInput
 Inherited
move(x:Number, y:Number):void
Moves the component.
AbstractComponent
 Inherited
Notify a change in this component.
AbstractComponent
 Inherited
Notify an event when the enabled property is changed.
AbstractComponent
 Inherited
Notify an event when you resize the component.
AbstractComponent
 Inherited
refresh(init:*):void
Refresh the component with an object of initialization.
AbstractComponent
 Inherited
resetLock():void
Reset the lock security of the display.
CoreSprite
 Inherited
setLogger(log:ILogger = null):void
Sets the internal ILogger reference of this ILogable object.
CoreSprite
 Inherited
setSize(w:Number, h:Number):void
Sets the virtuals width and height of the component.
AbstractComponent
 Inherited
setStyle(... args):void
Sets the style property on the style declaration or object.
AbstractComponent
 Inherited
setup():void
Setup the IConfigurable object.
CoreSprite
 Inherited
show():void
Shows the component.
AbstractComponent
 Inherited
toString():String
Returns the String representation of this object.
CoreSprite
 Inherited
unlock():void
Unlocks the display.
CoreSprite
 Inherited
update():void
Updates the component.
AbstractComponent
  
viewChanged():void
Called when the view of the component is changed.
VisualTextInput
 Inherited
viewDestroyed(e:Event = null):void
Invoked when the component is destroyed with a removeMovieClip.
AbstractComponent
  
viewEnabled():void
Invoked when the enabled property of the component change.
VisualTextInput
 Inherited
viewResize():void
Invoked when the component is resized.
AbstractComponent
 Inherited
viewStyleChanged(e:Event = null):void
Invoked when the component IStyle changed.
AbstractComponent
Protected Methods
 MethodDefined by
 Inherited
addedToStage(e:Event = null):void
Invoked when the display is added to the stage.
CoreSprite
 Inherited
fireComponentEvent(type:String):void
Dispatchs a ComponentEvent with the specified type.
AbstractComponent
 Inherited
focusIn(e:FocusEvent):void
Invoked when the focus is in in the component textfield.
AbstractTextInput
 Inherited
focusOut(e:FocusEvent):void
Invoked when the focus is out in the component textfield.
AbstractTextInput
  
initSkin():void
Invoked to initialize the skin.
VisualTextInput
 Inherited
keyDown(e:KeyboardEvent):void
Invoked when the component is focused and when a key is down.
AbstractTextInput
 Inherited
removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage.
AbstractTextInput
  
resolveSkin():void
Invoked to resolve the content of the skin.
VisualTextInput
 Inherited
Called when the editable attributes are invoked.
AbstractTextInput
 Inherited
Called when the htmlText attributes are invoked.
AbstractTextInput
 Inherited
Called when the text attributes are invoked.
AbstractTextInput
Property detail
backgroundproperty
background:Sprite  [read-write]

The internal background of this TextInput.

Implementation
    public function get background():Sprite
    public function set background(value:Sprite):void
backgroundNameproperty 
backgroundName:String  [read-write]

The internal background name of this TextInput.

Implementation
    public function get backgroundName():String
    public function set backgroundName(value:String):void
fieldNameproperty 
fieldName:String  [read-write]

The internal textfield name of this TextInput.

Implementation
    public function get fieldName():String
    public function set fieldName(value:String):void
skinproperty 
skin:Sprite  [read-write]

Indicates the skin view of this visual textinput component. This sprite must contains a sprite with the instance name "background" and a dynamic textfield with the name "field".

Implementation
    public function get skin():Sprite
    public function set skin(value:Sprite):void
Constructor detail
VisualTextInput()constructor
public function VisualTextInput(id:* = null, skin:Sprite = null, isConfigurable:Boolean = false, name:String = null)

Creates a new VisualTextInput instance.

Parameters
id:* (default = null) — Indicates the id of the object.
 
skin:Sprite (default = null) — Indicates the skin view of this visual textinput component.
 
isConfigurable:Boolean (default = false) — This flag indicates if the IConfigurable object is register in the ConfigCollector.
 
name:String (default = null) — Indicates the instance name of the object.
Method detail
getStyleRenderer()method
public override function getStyleRenderer():Class

Invoked when the style of the component is changed.

Returns
Class
initSkin()method 
protected function initSkin():void

Invoked to initialize the skin.

resolveSkin()method 
protected function resolveSkin():void

Invoked to resolve the content of the skin.

viewChanged()method 
public override function viewChanged():void

Called when the view of the component is changed.

viewEnabled()method 
public override function viewEnabled():void

Invoked when the enabled property of the component change.