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:

Summary


Constructor
Instance properties
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

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.

hasFocus

function hasFocus (
) : Boolean

IFocus implementation: Triggered by input field

setEnabled

function setEnabled (
inValue:Boolean) : Void

Sets the enabled state of the InputField

setFocus

function setFocus (
) : Void

IFocus implementation: Triggered by input field

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:

onUnload

function onUnload (
) : Void