    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

##

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

##

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

##

RadioBoxField

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

##

getValue

      public Object getValue()

  Get this field's value.
  Returns:
    A string giving the name of the selected option.
  Overrides:
    getValue in class FormField

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

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

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