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

Constructor Index

 o DateField()
 o DateField(String, String, String, Long)

Method Index

 o dump(HtmlGenerator)
Dump this field into the HTML form.
 o getValue()
Get this field value.
 o initialize(String, String, String, Object)
 o setValue(long)
Set the date value, without notifying the form handler.
 o setValue(Long)
Set the date value, without notifying the form handler.
 o setValue(String)
Set this date field value to the given String value.

Constructors

 o DateField
 public DateField(String name,
                  String title,
                  String url,
                  Long dval)
 o DateField
 public DateField()

Methods

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

Overrides:
getValue in class FormField
 o setValue
 public void setValue(long d)
Set the date value, without notifying the form handler.

Parameters:
d - The new date value, as a long.
 o setValue
 public void setValue(Long d)
Set the date value, without notifying the form handler.

Parameters:
d - The new date value, as a Long.
 o 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
 o 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
 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