public class DefaultDateField extends AbstractField
Modifier and Type | Field and Description |
---|---|
protected java.util.Date |
date
The date stored in the field.
|
name
Constructor and Description |
---|
DefaultDateField()
Creates a new, empty
DefaultDateField . |
DefaultDateField(java.lang.String name,
java.util.Date date)
Creates a new
DefaultDateField . |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDate()
Gets the date stored in the field.
|
java.lang.String |
getText()
Gets the full text of the field.
|
void |
setDate(java.util.Date date)
Sets the date stored in the field.
|
readText, toString
clone, getName, setName
public DefaultDateField()
DefaultDateField
.public DefaultDateField(java.lang.String name, java.util.Date date)
DefaultDateField
.name
- The name of the field.date
- The date to store in the field.public java.lang.String getText()
Field
public java.util.Date getDate()
public void setDate(java.util.Date date)
date
- The date stored in the field.