org.w3c.tools.forms
Class FileField
java.lang.Object
org.w3c.tools.forms.FormField
org.w3c.tools.forms.StringField
org.w3c.tools.forms.FileField
public class FileField
- extends StringField
Method Summary |
java.io.File |
getFileValue()
Get this field's value as a File instance. |
java.lang.Object |
getValue()
Get this field's value in its native type. |
void |
setValue(java.io.File value,
boolean notify,
boolean update)
Set this field's value. |
void |
setValue(java.lang.Object object,
boolean notify,
boolean update)
Set this field's value using the native type. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileField
public FileField(FormManager manager,
java.lang.String name,
java.lang.String title,
java.io.File value)
FileField
public FileField(FormManager manager,
java.lang.String name,
java.lang.String title)
getValue
public java.lang.Object getValue()
- Get this field's value in its native type.
- Overrides:
getValue
in class StringField
- Returns:
- An instance of File, or null.
getFileValue
public java.io.File getFileValue()
- Get this field's value as a File instance.
- Returns:
- An instance of FIle, or null.
setValue
public void setValue(java.lang.Object object,
boolean notify,
boolean update)
throws IllegalFieldValueException
- Set this field's value using the native type.
- Overrides:
setValue
in class StringField
- 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.
setValue
public void setValue(java.io.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 ?
- Throws:
IllegalFieldValueException
- If the value isn't accepted.