Packagelunas.components.textinputs
Classpublic class VisualTextInput
InheritanceVisualTextInput Inheritance CoreTextInput Inheritance CoreComponent Inheritance Background Inheritance CoreSprite Inheritance flash.display.Sprite
Subclasses VisualComboTextInput

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
 Inheritedalign : uint
The alignement of the background.
Background
 InheritedautoSize : Boolean
Indicates if the background is resizing when the stage resize event is invoked.
Background
  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.
CoreComponent
 InheritedbottomLeftRadius : Number
The radius of the bottom-left corner, in pixels.
Background
 InheritedbottomRightRadius : Number
The radius of the bottom-right corner, in pixels.
Background
 Inheritedbubbles : Boolean = true
Indicates if the events use bubbling when are dispatched.
CoreComponent
 Inheritedbuilder : Builder
Indicates the Builder reference of this instance.
CoreComponent
 InheritedcomponentInspectorSetting : Boolean
Initialize when the Flash component settings are initialized (only in Flash with a compiled component).
CoreComponent
 InheritedcondenseWhite : Boolean
Specifies whether extra white space (spaces, line breaks, and so on) should be removed in a TextInput control with HTML text.
CoreTextInput
 Inheriteddata : *
Indicates the data value object of the component.
CoreTextInput
 InheriteddefaultTextFormat : TextFormat
Specifies the format applied to newly inserted text, such as text entered by a user or text inserted with the replaceSelectedText() method.
CoreTextInput
 Inheriteddirection : String
Indicates the direction value of the background when the display is in this "full" mode (default value is null).
Background
 InheriteddisplayAsPassword : Boolean
Indicates whether this control is used for entering passwords.
CoreTextInput
 Inheritededitable : Boolean
Indicates whether the user is allowed to edit the text in this control.
CoreTextInput
 InheritedembedFonts : Boolean
Specifies whether to render by using embedded font outlines.
CoreTextInput
 Inheritedenabled : Boolean
Indicates the enabled state of the component.
CoreComponent
  fieldName : String
The internal textfield name of this TextInput.
VisualTextInput
 Inheritedfill : IFillStyle
Determinates the IFillStyle reference of this display.
Background
 InheritedgradientMatrix : Matrix
The matrix value to draw the gradient fill.
Background
 InheritedgradientRotation : Number = 0
The rotation value to draw the gradient fill.
Background
 InheritedgradientTranslation : Point
The translation vector to draw the gradient fill.
Background
 Inheritedgroup : Boolean
Indicates with a boolean if this object is grouped.
CoreComponent
 InheritedgroupName : String
Indicates the name of the group of this object.
CoreComponent
 Inheritedh : Number
Determinates the virtual height value of this component.
Background
 InheritedhorizontalScrollPosition : Number
Horizontal scroll position.
CoreTextInput
 InheritedhtmlText : String
Specifies the text displayed by the TextInput component, including HTML markup that expresses the styles of that text.
CoreTextInput
 InheritedisFull : Boolean
Indicates if the background use full size (use Stage.stageWidth and Stage.stageHeight to resize the background).
Background
 Inheritedlayout : Layout
Determinates the layout of this container.
CoreComponent
 Inheritedline : ILineStyle
Determinates the ILineStyle reference of this display.
Background
 Inheritedlogger : Logger
Determinates the internal ILogger reference of this Logable object.
CoreSprite
 InheritedmaxChars : int
Maximum number of characters that users can enter in the text field.
CoreTextInput
 InheritedmaxHeight : Number
This property defined the maximum height of this display.
Background
 InheritedmaxWidth : Number
Defines the maximum width of this display.
Background
 InheritedminHeight : Number
This property defined the mimimun height of this display (This value is >= 0).
Background
 InheritedminWidth : Number
This property defined the mimimun width of this display (This value is >= 0).
Background
 Inheritedmultiline : Boolean
Indicates whether the text field is a multiline text field.
CoreTextInput
 Inheritedrestrict : String
Indicates the set of characters that a user can enter into the control.
CoreTextInput
 Inheritedselected : Boolean
A flag that indicates whether this control is selected.
CoreTextInput
  skin : Sprite
Indicates the skin view of this visual textinput component.
VisualTextInput
 Inheritedstyle : Style
Returns the style of this component.
CoreComponent
 InheritedtabIndex : int
[override] Specifies the tab ordering of objects in a SWF file.
CoreTextInput
 InheritedtabManager : TabManager
The tab manager of this component.
CoreTextInput
 Inheritedtext : String
Plain text that appears in the component.
CoreTextInput
 InheritedtextField : TextField
The internal TextField that renders the text of this TextInput.
CoreTextInput
 InheritedtopLeftRadius : Number
The radius of the upper-left corner, in pixels.
Background
 InheritedtopRightRadius : Number
The radius of the upper-right corner, in pixels.
Background
 InheriteduseGradientBox : Boolean
Indicates if the IFillStyle of this display use gradient box matrix (only if the IFillStyle is a FillGradientStyle).
Background
 Inheritedw : Number
Determinates the virtual height value of this component.
Background
 InheritedwordWrap : Boolean
A Boolean value that indicates whether the text field has word wrap.
CoreTextInput
Protected Properties
 PropertyDefined By
 Inherited_scope : DisplayObjectContainer
The scope of the active display of this container component.
CoreComponent
Public Methods
 MethodDefined By
  
VisualTextInput(skin:Sprite = null)
Creates a new VisualTextInput instance.
VisualTextInput
 Inherited
doLater():void
Launch an event with a delayed interval.
Background
 Inherited
draw(... arguments):void
Draw the display.
Background
 Inherited
Returns the Builder constructor use to initialize this component.
CoreComponent
  
[override] Invoked when the style of the component is changed.
VisualTextInput
 Inherited
[override] Invoked when the group property or the groupName property changed.
CoreTextInput
 Inherited
hide():void
Hides the component.
CoreComponent
 Inherited
initBackgroundPen(graphic:* = null):IPen
Init the pen to draw the background of this display.
Background
 Inherited
initialize():void
Initialize the component.
CoreComponent
 Inherited
isLocked():Boolean
Returns true if the object is locked.
CoreSprite
 Inherited
isVisible():Boolean
Returns true if the component is visible.
CoreComponent
 Inherited
lock():void
[override] Locks the object.
CoreComponent
 Inherited
Maximum value of horizontalScrollPosition.
CoreTextInput
 Inherited
move(x:Number, y:Number):void
Moves the component.
CoreComponent
 Inherited
Notify a change in this component.
CoreComponent
 Inherited
Notify an event when the enabled property is changed.
CoreComponent
 Inherited
Notify an event when you resize the component.
Background
 Inherited
refresh(init:*):void
Refresh and initialize the display with a generic object and invoke the "update" method.
Background
 Inherited
registerView(scope:DisplayObjectContainer = null):void
Registers the view of this component.
CoreComponent
 Inherited
resetLock():void
Reset the lock security of the display.
CoreSprite
 Inherited
resize(e:Event = null):void
Resize and update the background.
Background
 Inherited
scope():DisplayObject
Returns the real scope reference of this component.
CoreComponent
 Inherited
setCornerRadius(n:Number):void
Defines all corner radius of the background (upper-left, upper-right, bottom-left and bottom-right).
Background
 Inherited
setSize(w:Number, h:Number):void
Sets the virtual width (w) and height (h) values of the component.
Background
 Inherited
setStyle(... args):void
Sets the style property on the style declaration or object.
CoreComponent
 Inherited
show():void
Shows the component.
CoreComponent
 Inherited
unlock():void
[override] Unlocks the display.
CoreComponent
 Inherited
Unregisters the view of this component.
CoreComponent
 Inherited
update():void
[override] Updates the component.
CoreComponent
  
[override] Called when the view of the component is changed.
VisualTextInput
 Inherited
viewDestroyed(e:Event = null):void
Invoked when the component is removed.
CoreComponent
  
[override] Invoked when the enabled property of the component change.
VisualTextInput
 Inherited
viewResize():void
Invoked when the component is resized.
Background
 Inherited
viewStyleChanged(e:Event = null):void
Invoked when the component Style changed.
CoreComponent
Protected Methods
 MethodDefined By
 Inherited
addedToStage(e:Event = null):void
Invoked when the display is added to the stage.
CoreSprite
 Inherited
addedToStageResize(e:Event = null):void
Invoked when the display is removed from the stage to enable the autoSize mode.
Background
 Inherited
fireComponentEvent(type:String):void
Dispatchs a ComponentEvent with the specified type.
CoreComponent
 Inherited
focusIn(e:FocusEvent):void
Invoked when the focus is in in the component textfield.
CoreTextInput
 Inherited
focusOut(e:FocusEvent):void
Invoked when the focus is out in the component textfield.
CoreTextInput
  
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.
CoreTextInput
 Inherited
removedFromStage(e:Event = null):void
[override] Invoked when the display is removed from the stage.
CoreTextInput
 Inherited
removedFromStageResize(e:Event = null):void
Invoked when the display is removed from the stage to disable the autoSize mode.
Background
 Inherited
renderLayout(layout:Layout = null):void
Receives a message when the layout emit when is rendered.
CoreComponent
  
Invoked to resolve the content of the skin.
VisualTextInput
 Inherited
updateLayout(layout:Layout = null):void
Receives a message when the layout emit when is updated.
CoreComponent
 Inherited
Called when the editable attributes are invoked.
CoreTextInput
  
[override] Called when the htmlText attributes are invoked.
VisualTextInput
  
[override] Called when the text attributes are invoked.
VisualTextInput
Property Detail
backgroundproperty
background:Sprite

The internal background of this TextInput.


Implementation
    public function get background():Sprite
    public function set background(value:Sprite):void
backgroundNameproperty 
backgroundName:String

The internal background name of this TextInput.


Implementation
    public function get backgroundName():String
    public function set backgroundName(value:String):void
fieldNameproperty 
fieldName:String

The internal textfield name of this TextInput.


Implementation
    public function get fieldName():String
    public function set fieldName(value:String):void
skinproperty 
skin:Sprite

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(skin:Sprite = null)

Creates a new VisualTextInput instance.

Parameters
skin:Sprite (default = null) — Indicates the skin view of this visual textinput component.
Method Detail
getStyleRenderer()method
override public 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 
override public function viewChanged():void

Called when the view of the component is changed.

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

Invoked when the enabled property of the component change.

viewHTMLTextChanged()method 
override protected function viewHTMLTextChanged():void

Called when the htmlText attributes are invoked.

viewTextChanged()method 
override protected function viewTextChanged():void

Called when the text attributes are invoked.