Class fvaswing.components.forms.FvRadioPollField

Description

Poll group ( using radiobutton ) as form field.

Allow user to place a group of radiobutton as unique field into form.

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

Example

   var pollRadio : FvRadioPollField = new FvRadioPollField( "Your opinion" );
   pollRadio.addChoice( "bad" );
   pollRadio.addChoice( "bad" );
   pollRadio.addChoice( "execellent" );
 

Method Index

new FvRadioPollField()
addChoice(), clear(), getValue(), setRowAndColumn(), setValue()

Inherited from FvFormField

Constructor Detail

FvRadioPollField

public function FvRadioPollField(label:String)

Constructor.

Parameters

Method Detail

setRowAndColumn

public function setRowAndColumn(rows:Number, columns:Number):Void

Defines row and column value for poll choices representation.

If not defined, uses row == choices list length and column == 1.

setValue

public function setValue(choice:String):Void

Sets selected field value.

getValue

public function getValue():String

Returns selected field value.

addChoice

public function addChoice(caption:String):Void

Adds new choice to poll.

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

Parameters

captionChoice's label

clear

public function clear():Void

Clears field value.