Class fvaswing.components.input.FvTextFieldInput

Implemented Interfaces

FvInputComponent

Description

Use a JTextField as input component.

See Also

Field Index

invalidColor

Method Index

new FvTextFieldInput()
create(), getContainer(), getRestrict(), getValidator(), getValue(), isValid(), setRestrict(), setValidator(), setValue(), toString()

Constructor Detail

FvTextFieldInput

public function FvTextFieldInput()

Constructor.

Field Detail

invalidColor

static public invalidColor:ASColor
Invalid textfield background.

Method Detail

create

static public function create(textfield:JTextField):FvTextFieldInput

Creates and returns a FvTextFieldInput with passed-in textfield component.

setValidator

public function setValidator(validator:StringValidator):Void

Sets validation process for texfied content.

getValidator

public function getValidator():StringValidator

Returns string validator.

setRestrict

public function setRestrict(c:String):Void

Sets characters restriction for textfield.

getRestrict

public function getRestrict():String

Returns characters restriction.

getContainer

public function getContainer():Component

Returns a JTextField component to add onto a FvInputComponentDialog dialog.

Specified By

getContainer() in fvaswing.components.input.FvInputComponent

setValue

public function setValue(str:String):Void

Sets text for textfield.

getValue

public function getValue()

Returns textfield content.

Specified By

getValue() in fvaswing.components.input.FvInputComponent

isValid

public function isValid():Boolean

Returns true if input is valid.

Specified By

isValid() in fvaswing.components.input.FvInputComponent

toString

public function toString():String

Returns string representation.