All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigsaw.forms.MimeTypeField

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

public class MimeTypeField
extends FormField

Constructor Index

 o MimeTypeField()
 o MimeTypeField(String, String, String, MimeType)

Method Index

 o dump(HtmlGenerator)
Dump this field has a form element.
 o getValue()
Get this field value as an Object.
 o initialize(String, String, String, Object)
 o setValue(MimeType)
Set the fields value, as a MIME type.
 o setValue(String)
Set this field value to the given MIMEType value, provided as a String.

Constructors

 o MimeTypeField
 public MimeTypeField(String name,
                      String title,
                      String url,
                      MimeType tval)
 o MimeTypeField
 public MimeTypeField()

Methods

 o getValue
 public Object getValue()
Get this field value as an Object.

Returns:
An instance of Object.
Overrides:
getValue in class FormField
 o setValue
 public void setValue(MimeType tval)
Set the fields value, as a MIME type. This method doesn't notify the form handler.

Parameters:
value - The MimeType value.
 o setValue
 public boolean setValue(String nval) throws FormFieldException
Set this field value to the given MIMEType value, provided as a String. If the value is changed, than the handler for this field is notified of the change through an appropriate method call.

Parameters:
nval - The new string encoded mime type for this field.
Returns:
A boolean, true indicates that the field value has effectively changed.
Throws: FormFieldException
If the provided value didn't match the expected type for this field.
Overrides:
setValue in class FormField
 o dump
 public void dump(HtmlGenerator into)
Dump this field has a form 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
Overrides:
initialize in class FormField

All Packages  Class Hierarchy  This Package  Previous  Next  Index