All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface w3c.jigsaw.forms.FormFieldInterface

public interface FormFieldInterface

Method Index

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

Methods

 o getName
 public abstract String getName()
Get this field name.

 o getValue
 public abstract Object getValue()
Get this field value.

 o 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.
 o 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.
 o 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