Class w3c.jigsaw.forms.RadioBoxField
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.forms.RadioBoxField

java.lang.Object
   |
   +----w3c.jigsaw.forms.FormField
           |
           +----w3c.jigsaw.forms.RadioBoxField

public class RadioBoxField
extends FormField

Constructor Index

 o RadioBoxField(String, String, String, String[], int)

Method Index

 o dump(HtmlGenerator)
Dump this field into a suitable HTML element.
 o getValue()
Get this field's value.
 o initialize(String, String, String, Object)
The RadioBoxField doesn't support the initialize interface.
 o setValue(String)
Set this field's value to the given option.

Constructors

 o RadioBoxField
  public RadioBoxField(String name,
                       String title,
                       String url,
                       String options[],
                       int ival)

Methods

 o getValue
  public Object getValue()
Get this field's value.
Returns:
A string giving the name of the selected option.
Overrides:
getValue in class FormField
 o setValue
  public boolean setValue(String nval) throws FormFieldException
Set this field's value to the given option.
Parameters:
nval - The option name.
Returns:
A boolean, true if the field was set.
Throws: FormFieldException
If the field doesn't have such an option.
Overrides:
setValue in class FormField
 o dump
  public void dump(HtmlGenerator into)
Dump this field into a suitable HTML element.
Parameters:
into - The HtmlGenerator to dump the field to.
Overrides:
dump in class FormField
 o initialize
  public void initialize(String name,
                         String title,
                         String url,
                         Object val) throws FormFieldException
The RadioBoxField doesn't support the initialize interface.
Parameters:
name - The name of the field.
title - Its title.
url - Its url (or null).
value - Its default value.
Throws: FormFieldException
If the provided value doesn't match the expected type.
Overrides:
initialize in class FormField

All Packages  Class Hierarchy  This Package  Previous  Next  Index