| Package | lunas.core |
| Class | public class AbstractTextInput |
| Inheritance | AbstractTextInput AbstractComponent CoreSprite flash.display.Sprite |
| Implements | ITextInput |
| Subclasses | SimpleTextInput, VisualTextInput |
ITextInput interface, to minimize the effort required to implement this interface.
| Property | Defined by | ||
|---|---|---|---|
![]() | border : EdgeMetrics
Indicates the thickness, in pixels, of the four edge regions around a visual component.
| AbstractComponent | |
![]() | bubbles : Boolean = true
Indicates if the events use bubbling when are dispatched.
| AbstractComponent | |
![]() | builder : IBuilder
Indicates the IBuilder reference of this instance.
| AbstractComponent | |
![]() | componentInspectorSetting : 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 | ||
![]() | enabled : Boolean
Indicates the enabled state of the component.
| AbstractComponent | |
![]() | group : Boolean
Indicates with a boolean if this object is grouped.
| AbstractComponent | |
![]() | groupName : String
Indicates the name of the group of this object.
| AbstractComponent | |
![]() | h : 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 | ||
![]() | id : *
Returns the id of this object.
| CoreSprite | |
![]() | isConfigurable : Boolean
Indicates if the display is configurable.
| CoreSprite | |
| maxChars : int
Maximum number of characters that users can enter in the text field.
| AbstractTextInput | ||
![]() | maxHeight : Number
This property defined the maximum height of this component.
| AbstractComponent | |
![]() | maxWidth : Number
This property defined the maximum width of this component.
| AbstractComponent | |
![]() | minHeight : Number
This property defined the mimimun height of this component.
| AbstractComponent | |
![]() | minWidth : 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 | ||
![]() | style : 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 | ||
![]() | w : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
AbstractTextInput(id:* = null, isConfigurable:Boolean = false, name:String = null)
Creates a new AbstractTextInput instance.
| AbstractTextInput | ||
![]() |
doLater():void
Launch an event with a delayed interval.
| AbstractComponent | |
![]() |
draw(... arguments):void
Draw the view of the component.
| AbstractComponent | |
![]() |
getBuilderRenderer():Class
Returns the
IBuilder constructor use to initialize this component. | AbstractComponent | |
![]() |
Returns the internal
ILogger reference of this ILogable object. | CoreSprite | |
![]() |
getStyleRenderer():Class
Returns the
IStyle constructor use to initialize this component. | AbstractComponent | |
|
groupPolicyChanged():void
Invoked when the group property or the groupName property changed.
| AbstractTextInput | ||
![]() |
hashCode():uint
Returns a hashcode value for the object.
| CoreSprite | |
![]() |
hide():void
Hides the component.
| AbstractComponent | |
![]() |
initialize():void
Initialize the component.
| AbstractComponent | |
![]() |
isLocked():Boolean
Returns
true if the object is locked. | CoreSprite | |
![]() |
isVisible():Boolean
Returns
true if the component is visible. | AbstractComponent | |
![]() |
lock():void
Locks the object.
| CoreSprite | |
|
maxHorizontalScrollPosition():Number
[read-only] Maximum value of horizontalScrollPosition.
| AbstractTextInput | ||
![]() |
move(x:Number, y:Number):void
Moves the component.
| AbstractComponent | |
![]() |
notifyChanged():void
Notify a change in this component.
| AbstractComponent | |
![]() |
notifyEnabled():void
Notify an event when the enabled property is changed.
| AbstractComponent | |
![]() |
notifyResized():void
Notify an event when you resize the component.
| AbstractComponent | |
![]() |
refresh(init:*):void
Refresh the component with an object of initialization.
| AbstractComponent | |
![]() |
resetLock():void
Reset the lock security of the display.
| CoreSprite | |
![]() |
Sets the internal
ILogger reference of this ILogable object. | CoreSprite | |
![]() |
setSize(w:Number, h:Number):void
Sets the virtuals width and height of the component.
| AbstractComponent | |
![]() |
setStyle(... args):void
Sets the style property on the style declaration or object.
| AbstractComponent | |
![]() |
setup():void
Setup the IConfigurable object.
| CoreSprite | |
![]() |
show():void
Shows the component.
| AbstractComponent | |
![]() |
toString():String
Returns the
String representation of this object. | CoreSprite | |
![]() |
unlock():void
Unlocks the display.
| CoreSprite | |
![]() |
update():void
Updates the component.
| AbstractComponent | |
![]() |
viewChanged():void
Invoked after the draw method and when the IBuilder is updated.
| AbstractComponent | |
![]() |
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.
| AbstractComponent | |
![]() |
viewResize():void
Invoked when the component is resized.
| AbstractComponent | |
![]() |
viewStyleChanged(e:Event = null):void
Invoked when the component IStyle changed.
| AbstractComponent | |
| Method | Defined by | ||
|---|---|---|---|
![]() |
addedToStage(e:Event = null):void
Invoked when the display is added to the stage.
| CoreSprite | |
![]() |
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 | ||
|
viewEditableChanged():void
Called when the editable attributes are invoked.
| AbstractTextInput | ||
|
viewHTMLTextChanged():void
Called when the htmlText attributes are invoked.
| AbstractTextInput | ||
|
viewTextChanged():void
Called when the text attributes are invoked.
| AbstractTextInput | ||
| condenseWhite | property |
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
| data | property |
data:* [read-write]Indicates the data value object of the component.
Implementation public function get data():*
public function set data(value:*):void
| displayAsPassword | property |
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
| editable | property |
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
| horizontalScrollPosition | property |
horizontalScrollPosition:Number [read-write]Horizontal scroll position.
Implementation public function get horizontalScrollPosition():Number
public function set horizontalScrollPosition(value:Number):void
| htmlText | property |
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
| maxChars | property |
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
| multiline | property |
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
| restrict | property |
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
| selected | property |
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
| tabIndex | property |
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
| tabManager | property |
public var tabManager:TabManagerThe tab manager of this component.
| text | property |
text:String [read-write]Plain text that appears in the component.
Implementation public function get text():String
public function set text(value:String):void
| textField | property |
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
| wordWrap | property |
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
| AbstractTextInput | () | constructor |
public function AbstractTextInput(id:* = null, isConfigurable:Boolean = false, name:String = null)Creates a new AbstractTextInput instance.
Parametersid:* (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.
|
| focusIn | () | method |
protected function focusIn(e:FocusEvent):voidInvoked when the focus is in in the component textfield.
Parameterse:FocusEvent |
| focusOut | () | method |
protected function focusOut(e:FocusEvent):voidInvoked when the focus is out in the component textfield.
Parameterse:FocusEvent |
| groupPolicyChanged | () | method |
public override function groupPolicyChanged():voidInvoked when the group property or the groupName property changed. Overrides this method in concrete class.
| keyDown | () | method |
protected function keyDown(e:KeyboardEvent):voidInvoked when the component is focused and when a key is down.
Parameterse:KeyboardEvent |
| maxHorizontalScrollPosition | () | method |
public function maxHorizontalScrollPosition():Number[read-only] Maximum value of horizontalScrollPosition.
ReturnsNumber |
| removedFromStage | () | method |
protected override function removedFromStage(e:Event = null):voidInvoked when the display is removed from the stage.
Parameterse:Event (default = null) |
| viewEditableChanged | () | method |
protected function viewEditableChanged():voidCalled when the editable attributes are invoked.
| viewHTMLTextChanged | () | method |
protected function viewHTMLTextChanged():voidCalled when the htmlText attributes are invoked.
| viewTextChanged | () | method |
protected function viewTextChanged():voidCalled when the text attributes are invoked.