Class fvaswing.components.forms.FvComboField

Description

Combobox form field.

Choices must be added to field before adding field into a form object.

Example

   var combo : FvComboField = new FvComboField( "Your primary pccupation", true );
   combo.addChoice( "basket-ball" );
   combo.addChoice( "football" );
   combo.addChoice( "actionscript" );   combo.addChoice( "nothing...too tired" );
 

Method Index

new FvComboField()
addChoice(), clear(), getValue(), setValue()

Inherited from FvFormField

Constructor Detail

FvComboField

public function FvComboField(label:String, required:Boolean)

Constructor.

Parameters

labelField's caption

Method Detail

setValue

public function setValue(o:Object):Void

Sets selected field value.

getValue

public function getValue():Object

Returns selected value.

addChoice

public function addChoice(o:Object):Void

Adds new choice to combobox.

Choices must be added to field before adding field into a form object.

Parameters

clear

public function clear():Void

Clears field value.