Packagelunas.core
Classpublic class AbstractTextInput
InheritanceAbstractTextInput Inheritance AbstractComponent Inheritance CoreSprite Inheritance flash.display.Sprite
ImplementsITextInput
SubclassesSimpleTextInput, VisualTextInput

This class provides a skeletal implementation of the ITextInput interface, to minimize the effort required to implement this interface.



Public Properties
 PropertyDefined by
 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
  condenseWhite : Boolean
Specifies whether extra white space (spaces, line breaks, and so on) should be removed in a TextInput control with HTML text.
AbstractTextInput
  data : *
Indicates the data value object of the component.
AbstractTextInput
  displayAsPassword : Boolean
Indicates whether this control is used for entering passwords.
AbstractTextInput
  editable : 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
 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
  horizontalScrollPosition : Number
Horizontal scroll position.
AbstractTextInput
  htmlText : 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
  maxChars : 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
  multiline : Boolean
Indicates whether the text field is a multiline text field.
AbstractTextInput
  restrict : String
Indicates the set of characters that a user can enter into the control.
AbstractTextInput
  selected : Boolean
A flag that indicates whether this control is selected.
AbstractTextInput
 Inheritedstyle : IStyle
Returns the style of this component.
AbstractComponent
  tabIndex : int
Specifies the tab ordering of objects in a SWF file.
AbstractTextInput
  tabManager : TabManager
The tab manager of this component.
AbstractTextInput
  text : String
Plain text that appears in the component.
AbstractTextInput
  textField : 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
  wordWrap : 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
  
AbstractTextInput(id:* = null, isConfigurable:Boolean = false, name:String = null)
Creates a new AbstractTextInput instance.
AbstractTextInput
 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
 Inherited
Returns the IStyle constructor use to initialize this component.
AbstractComponent
  
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
  
[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
 Inherited
viewChanged():void
Invoked after the draw method and when the IBuilder is updated.
AbstractComponent
 Inherited
viewDestroyed(e:Event = null):void
Invoked when the component is destroyed with a removeMovieClip.
AbstractComponent
 Inherited
viewEnabled():void
Invoked when the enabled property of the component change.
AbstractComponent
 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
  
focusIn(e:FocusEvent):void
Invoked when the focus is in in the component textfield.
AbstractTextInput
  
focusOut(e:FocusEvent):void
Invoked when the focus is out in the component textfield.
AbstractTextInput
  
keyDown(e:KeyboardEvent):void
Invoked when the component is focused and when a key is down.
AbstractTextInput
  
removedFromStage(e:Event = null):void
Invoked when the display is removed from the stage.
AbstractTextInput
  
Called when the editable attributes are invoked.
AbstractTextInput
  
Called when the htmlText attributes are invoked.
AbstractTextInput
  
Called when the text attributes are invoked.
AbstractTextInput
Property detail
condenseWhiteproperty
condenseWhite:Boolean  [read-write]

Specifies whether extra white space (spaces, line breaks, and so on) should be removed in a TextInput control with HTML text.

Implementation
    public function get condenseWhite():Boolean
    public function set condenseWhite(value:Boolean):void
dataproperty 
data:*  [read-write]

Indicates the data value object of the component.

Implementation
    public function get data():*
    public function set data(value:*):void
displayAsPasswordproperty 
displayAsPassword:Boolean  [read-write]

Indicates whether this control is used for entering passwords.

Implementation
    public function get displayAsPassword():Boolean
    public function set displayAsPassword(value:Boolean):void
editableproperty 
editable:Boolean  [read-write]

Indicates whether the user is allowed to edit the text in this control.

Implementation
    public function get editable():Boolean
    public function set editable(value:Boolean):void
horizontalScrollPositionproperty 
horizontalScrollPosition:Number  [read-write]

Horizontal scroll position.

Implementation
    public function get horizontalScrollPosition():Number
    public function set horizontalScrollPosition(value:Number):void
htmlTextproperty 
htmlText:String  [read-write]

Specifies the text displayed by the TextInput component, including HTML markup that expresses the styles of that text.

Implementation
    public function get htmlText():String
    public function set htmlText(value:String):void
maxCharsproperty 
maxChars:int  [read-write]

Maximum number of characters that users can enter in the text field.

Implementation
    public function get maxChars():int
    public function set maxChars(value:int):void
multilineproperty 
multiline:Boolean  [read-write]

Indicates whether the text field is a multiline text field. If the value is true, the text field is multiline; if the value is false, the text field is a single-line text field.

Implementation
    public function get multiline():Boolean
    public function set multiline(value:Boolean):void
restrictproperty 
restrict:String  [read-write]

Indicates the set of characters that a user can enter into the control.

If the value of the restrict property is null, you can enter any character.

If the value of the restrict property is an empty string, you cannot enter any character.

This property only restricts user interaction; a script can put any text into the text field.

If the value of the restrict property is a string of characters, you may enter only characters in that string into the text field.

The default value is null.

Implementation
    public function get restrict():String
    public function set restrict(value:String):void

See also

property
selectedproperty 
selected:Boolean  [read-write]

A flag that indicates whether this control is selected.

Implementation
    public function get selected():Boolean
    public function set selected(value:Boolean):void
tabIndexproperty 
tabIndex:int  [read-write]

Specifies the tab ordering of objects in a SWF file.

Implementation
    public function get tabIndex():int
    public function set tabIndex(value:int):void
tabManagerproperty 
public var tabManager:TabManager

The tab manager of this component.

textproperty 
text:String  [read-write]

Plain text that appears in the component.

Implementation
    public function get text():String
    public function set text(value:String):void
textFieldproperty 
textField:TextField  [read-write]

The internal TextField that renders the text of this TextInput. Warning, if you use the setter of this virtual attribute the component is cleaned.

Implementation
    public function get textField():TextField
    public function set textField(value:TextField):void
wordWrapproperty 
wordWrap:Boolean  [read-write]

A Boolean value that indicates whether the text field has word wrap. If the value of wordWrap is true, the text field has word wrap; if the value is false, the text field does not have word wrap. The default value is false.

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

Creates a new AbstractTextInput instance.

Parameters
id:* (default = null) — Indicates the id of the object.
 
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
focusIn()method
protected function focusIn(e:FocusEvent):void

Invoked when the focus is in in the component textfield.

Parameters
e:FocusEvent
focusOut()method 
protected function focusOut(e:FocusEvent):void

Invoked when the focus is out in the component textfield.

Parameters
e:FocusEvent
groupPolicyChanged()method 
public override function groupPolicyChanged():void

Invoked when the group property or the groupName property changed. Overrides this method in concrete class.

keyDown()method 
protected function keyDown(e:KeyboardEvent):void

Invoked when the component is focused and when a key is down.

Parameters
e:KeyboardEvent
maxHorizontalScrollPosition()method 
public function maxHorizontalScrollPosition():Number

[read-only] Maximum value of horizontalScrollPosition.

Returns
Number
removedFromStage()method 
protected override function removedFromStage(e:Event = null):void

Invoked when the display is removed from the stage.

Parameters
e:Event (default = null)
viewEditableChanged()method 
protected function viewEditableChanged():void

Called when the editable attributes are invoked.

viewHTMLTextChanged()method 
protected function viewHTMLTextChanged():void

Called when the htmlText attributes are invoked.

viewTextChanged()method 
protected function viewTextChanged():void

Called when the text attributes are invoked.