All Packages Class Hierarchy This Package Previous Next Index
Class w3c.jigsaw.forms.DateField
java.lang.Object
|
+----w3c.jigsaw.forms.FormField
|
+----w3c.jigsaw.forms.DateField
- public class DateField
- extends FormField
The date field.
Returns a Long value, not a Date object, since this is how date should be
manipulated.
The returned long object will give the current time in milliseconds since
the epoch (00:00:00 UTC, January 1, 1970).
- See Also:
- Date
-
DateField()
-
-
DateField(String, String, String, Long)
-
-
dump(HtmlGenerator)
- Dump this field into the HTML form.
-
getValue()
- Get this field value.
-
initialize(String, String, String, Object)
-
-
setValue(long)
- Set the date value, without notifying the form handler.
-
setValue(Long)
- Set the date value, without notifying the form handler.
-
setValue(String)
- Set this date field value to the given String value.
DateField
public DateField(String name,
String title,
String url,
Long dval)
DateField
public DateField()
getValue
public Object getValue()
- Get this field value.
- Overrides:
- getValue in class FormField
setValue
public void setValue(long d)
- Set the date value, without notifying the form handler.
- Parameters:
- d - The new date value, as a long.
setValue
public void setValue(Long d)
- Set the date value, without notifying the form handler.
- Parameters:
- d - The new date value, as a Long.
setValue
public boolean setValue(String nval) throws FormFieldException
- Set this date field value to the given String value.
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 value 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
dump
public void dump(HtmlGenerator into)
- Dump this field into the HTML form.
- Parameters:
- into - The HTML generator to dump to.
- Overrides:
- dump in class FormField
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