All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.tools.forms.FileField

java.lang.Object
   |
   +----w3c.tools.forms.FormField
           |
           +----w3c.tools.forms.StringField
                   |
                   +----w3c.tools.forms.FileField

public class FileField
extends StringField

Constructor Index

 o FileField(FormManager, String, String)
 o FileField(FormManager, String, String, File)

Method Index

 o getFileValue()
Get this field's value as a File instance.
 o getValue()
Get this field's value in its native type.
 o setValue(File, boolean, boolean)
Set this field's value.
 o setValue(Object, boolean, boolean)
Set this field's value using the native type.

Constructors

 o FileField
 public FileField(FormManager manager,
                  String name,
                  String title,
                  File value)
 o FileField
 public FileField(FormManager manager,
                  String name,
                  String title)

Methods

 o getValue
 public Object getValue()
Get this field's value in its native type.

Returns:
An instance of File, or null.
Overrides:
getValue in class StringField
 o getFileValue
 public File getFileValue()
Get this field's value as a File instance.

Returns:
An instance of FIle, or null.
 o setValue
 public void setValue(Object object,
                      boolean notify,
                      boolean update) throws IllegalFieldValueException
Set this field's value using the native type.

Parameters:
value - The new File value for the field.
update - Should we update the editor's view ?
Throws: IllegalFieldValueException
If the value isn't accepted.
Overrides:
setValue in class StringField
 o setValue
 public void setValue(File value,
                      boolean notify,
                      boolean update) throws IllegalFieldValueException
Set this field's value.

Parameters:
file - The new File value for the field.
update - Update the editor's view ?

All Packages  Class Hierarchy  This Package  Previous  Next  Index