    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Interface w3c.jigsaw.forms.FormFieldInterface

public interface FormFieldInterface
extends Object

##

dump(HtmlGenerator)
  Dump this field into a suitable HTML form element.
getName()
  Get this field name.
getValue()
  Get this field value.
initialize(String, String, String, Object)
  Form field may be automatically instanciated, initialize such a field.
setValue(String)
  Set this field value.

##

getName

      public abstract String getName()

  Get this field name.

getValue

      public abstract Object getValue()

  Get this field value.

setValue

      public abstract boolean setValue(String nval) throws FormFieldException

  Set this field value.
  Parameters:
    nval - The new value for this field, as a string.
  Returns:
    A boolean, truefalse otherwise.

dump

      public abstract void dump(HtmlGenerator into)

  Dump this field into a suitable HTML form element.
  Parameters:
    into - The HtmlGenerator to dump this field into.

initialize

      public abstract void initialize(String name,
                                      String title,
                                      String url,
                                      Object val) throws FormFieldException

  Form field may be automatically instanciated, initialize such a field. As form field may be created through the FormFieldRegistry (or someday through the AppletFieldRegistry), they have to be dynamically instanciated and initialized.

  This method provides support for the initialization stage.

  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.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index