TextInput
| Kind of class: | class |
|---|---|
| Inherits from: | UIComponent < UIObject < MovieClip |
| Classpath: | mx.controls.TextInput |
| File last modified: | Tuesday, 18 December 2007, 15:44:37 |
Component metadata:
| Event | "change" |
|---|
Summary
Constructor
Class properties
- symbolName : String
- symbolOwner : Object
- version : String
- mergedClipParameters : Boolean
Class properties inherited from UIComponent
Class properties inherited from UIObject
Instance properties
- className : String
- name of this class
- initializing : Boolean
- clipParameters : Object
- _maxWidth : Number
- enterListener : Object
- tfx : Number
- tfy : Number
- tfw : Number
- tfh : Number
- updateModel : Function
- enterHandler : Function
- changeHandler : Function
- borderStyle : String
- __editable : Boolean
- bind : Boolean
- owner : MovieClip
- initText : String
- border_mc : RectBorder
- label : TextField
- html : Boolean
- true if text is supplied as html
- text : String
- the text in the component
- maxChars : Number
- maximum number of characters that can be input into this component
- length : Number
- current length of text in component
- restrict : String
- list of characters to accept or deny
- hPosition : Number
- pixel offset when scrolled horizontally
- maxHPosition : Number
- maximum allowed setting for hPosition
- editable : Boolean
- true if the component is editable
- password : Boolean
- true to use '*' instead of the actual characters
- tabIndex : Number
- tab order when using tab key to navigate
- _accProps (val:Object)
- accessibility data
Instance properties inherited from UIComponent
Instance properties inherited from UIObject
__height __onUnload __width _color _endInit _id _maxHeight _maxWidth _minHeight _minWidth _preferredHeight _preferredWidth _tf _topmost addEventListener bottom buildDepthTable changeColorStyleInChildren changeTextStyleInChildren childrenCreated className clipParameters color createAccessibilityImplementation createChildAtDepth createClassChildAtDepth createEvent dispatchEvent embedFonts findNextAvailableDepth fontFamily fontSize fontStyle fontWeight handleEvent height idNames ignoreClassStyleDeclaration initProperties invalidateFlag left lineColor lineWidth marginLeft marginRight methodTable minHeight minWidth notifyStyleChangeInChildren removeEventListener right scaleX scaleY setStyle stylecache styleName tabEnabled textAlign textDecoration textIndent tfList top validateNow visible width x y
Class methods
Class methods inherited from UIObject
Instance methods
- addEventListener (event:String, handler) : Void
- enterOnKeyDown : Void
- addEnterEvents : Void
- init (Void) : Void
- setFocus : Void
- Sets the focus to this object.
- createChildren (Void) : Void
- getHtml : Boolean
- setHtml (value:Boolean) : Void
- getText : String
- setText (t:String) : Void
- size (Void) : Void
- setEnabled (enable:Boolean) : Void
- setColor (col:Number) : Void
- draw (Void) : Void
- setEditable (s:Boolean) : Void
Instance methods inherited from UIObject__getTextFormat _createChildren _getTextFormat cancelAllDoLaters constructObject createChildren createClassObject createEmptyObject createLabel createObject createSkin destroyObject doLater doLaterDispatcher draw drawRect getClassStyleDeclaration getMinHeight getMinWidth getSkinIDName getStyle getStyleName init initFromClipParameters invalidate invalidateStyle move redraw setColor setMinHeight setMinWidth setSize setSkin setVisible sizeEvent handlers- onLabelChanged (Void) : Void
- onKillFocus (newFocus:Object) : Void
- onSetFocus (oldFocus:Object) : Void
Event handlers inherited from UIComponent
Constructor
TextInput
function TextInput (
)
Class properties
mergedClipParameters
static mergedClipParameters:Boolean = UIObject.mergeClipParameters(TextInput.prototype.clipParameters, UIComponent.prototype.clipParameters)
(read)
symbolName
static symbolName:String = "TextInput"
(read)
symbolOwner
static symbolOwner:Object = mx.controls.TextInput
(read)
version
static version:String = "2.0.2.127"
(read)
Instance properties
__editable
__editable:Boolean = true
(read)
_accProps
_accProps
(read,write)
accessibility data
_maxWidth
_maxWidth:Number = mx.core.UIComponent.kStretch
(read)
bind
bind:Boolean
(read)
border_mc
borderStyle
borderStyle:String
(read)
changeHandler
changeHandler:Function
(read)
className
className:String = "TextInput"
(read)
name of this class
clipParameters
clipParameters:Object = { text: 1, editable: 1, password: 1, maxChars: 1, restrict: 1}
(read)
editable
editable:Boolean
(read,write)
true if the component is editable
Component metadata:
| Inspectable | defaultValue: true |
|---|
enterHandler
enterHandler:Function
(read)
enterListener
enterListener:Object
(read)
hPosition
hPosition:Number
(read,write)
pixel offset when scrolled horizontally
html
html:Boolean
(read,write)
true if text is supplied as html
*tiptext Whether the text field contains text or html.
*helpid 3189
*tiptext Whether the text field contains text or html.
*helpid 3189
initializing
initializing:Boolean = true
(read)
initText
initText:String = ""
(read)
label
label:TextField
(read)
length
length:Number
(read)
current length of text in component
maxChars
maxChars:Number
(read,write)
maximum number of characters that can be input into this component
Component metadata:
| Inspectable | category: "Limits" defaultValue: null, verbose: 1, |
|---|
maxHPosition
maxHPosition:Number
(read)
maximum allowed setting for hPosition
owner
owner:MovieClip
(read)
password
password:Boolean
(read,write)
true to use '*' instead of the actual characters
Component metadata:
| Inspectable | defaultValue: false |
|---|
restrict
restrict:String
(read,write)
list of characters to accept or deny
Component metadata:
| Inspectable | category: "Limits" defaultValue: "", verbose: 1, |
|---|
tabIndex
tabIndex:Number
(read,write)
tab order when using tab key to navigate
text
text:String
(read,write)
the text in the component
Component metadata:
| Bindable | |
|---|---|
| ChangeEvent | "focusOut","enter" |
| Inspectable | defaultValue: "" |
tfh
tfh:Number
(read)
tfw
tfw:Number
(read)
tfx
tfx:Number
(read)
tfy
tfy:Number
(read)
updateModel
updateModel:Function
(read)
Instance methods
addEnterEvents
function addEnterEvents (
) : Void
addEventListener
function addEventListener (
event:String,
handler) : Void
enterOnKeyDown
function enterOnKeyDown (
) : Void
getHtml
function getHtml (
) : Boolean
getText
function getText (
) : String
setColor
function setColor (
col:Number) : Void
setEditable
function setEditable (
s:Boolean) : Void
setEnabled
function setEnabled (
enable:Boolean) : Void
setHtml
function setHtml (
value:Boolean) : Void
setText
function setText (
t:String) : Void
Event handlers
onLabelChanged
function onLabelChanged (
Void) : Void