InputField
| Kind of class: | class |
|---|---|
| Inherits from: | EventMovieClip < MovieClip |
| Implements: | |
| Known subclasses: | |
| Author: | Martijn de Visser |
| Classpath: | org.asapframework.ui.input.InputField |
| File last modified: | Monday, 06 November 2006, 22:06:17 |
Class to create an input field with. Class assumes there's a texfield named 'input_txt' present in MovieClip to read/write values
Events broadcasted to listeners:
- InputEvent with type:
ON_CHANGED- (null)
Summary
Constructor
Instance properties
- mHasFocus : Boolean
- mEnabled : Boolean
- mMc : MovieClip
- mInput : TextField
- mMaxChars : Number
- mRestrict : String
- mTextFormat : TextFormat
- text (inText:String)
- Sets / gets the text of the InputField
- field : TextField
- The actual input text field.
- textFormat (inFormat:TextFormat)
- The TextFormat of the text-input state.
- maxChars (inChars:Number)
- Same as TextField.maxChars
- restrict (inChars:String)
- Same as TextField.restrict.
Instance properties inherited from EventMovieClip
Instance methods
- setFocus : Void
- IFocus implementation: Triggered by input field
- hasFocus : Boolean
- IFocus implementation: Triggered by input field
- getValue : Object
- IValidate implementation: Returns the contents of the text field.
- getEnabled : Boolean
- Gets the enabled state of the InputField
- setEnabled (inValue:Boolean) : Void
- Sets the enabled state of the InputField
Event handlers
- onLoad : Void
- onUnload : Void
- onChangeTextFocus (inFocus:Boolean) : Void
- Triggered by input field
- onTextChange (inText:String) : Void
- Triggered by input field
Constructor
InputField
function InputField (
)
Instance properties
field
field:TextField
(read)
The actual input text field.
maxChars
maxChars
(write)
Same as TextField.maxChars
mEnabled
private mEnabled:Boolean
(read)
mHasFocus
private mHasFocus:Boolean
(read)
mInput
private mInput:TextField
(read)
mMaxChars
private mMaxChars:Number
(read)
mMc
private mMc:MovieClip
(read)
mRestrict
private mRestrict:String
(read)
mTextFormat
private mTextFormat:TextFormat
(read)
restrict
restrict
(write)
Same as TextField.restrict.
text
text
(read,write)
Sets / gets the text of the InputField
textFormat
textFormat
(write)
The TextFormat of the text-input state.
Instance methods
getEnabled
function getEnabled (
) : Boolean
Gets the enabled state of the InputField
getValue
function getValue (
) : Object
IValidate implementation: Returns the contents of the text field.
Specified by:
hasFocus
function hasFocus (
) : Boolean
IFocus implementation: Triggered by input field
Specified by:
setEnabled
function setEnabled (
inValue:Boolean) : Void
Sets the enabled state of the InputField
setFocus
function setFocus (
) : Void
IFocus implementation: Triggered by input field
Specified by:
Event handlers
onChangeTextFocus
function onChangeTextFocus (
inFocus:Boolean) : Void
Triggered by input field
onLoad
function onLoad (
) : Void
onTextChange
function onTextChange (
inText:String) : Void
Triggered by input field
Events broadcasted to listeners:
- InputEvent with type:
ON_CHANGED- (null)
onUnload
function onUnload (
) : Void