Method Summary |
|
public void | close() Closes the calendar if it was dropped down. |
protected Object | coerceFromString(String value) |
protected String | coerceToString(Object value) |
protected DateFormat | getDateFormat(String fmt) Returns the date format of the specified format
Default: it uses SimpleDateFormat to format the date. |
protected String | getDefaultFormat() Returns the default format, which is used when contructing
a datebox.
The default format (
Datebox.getFormat ) depends on JVM's setting
and the current user's locale. |
public String | getImage() Returns the URI of the button image. |
public String | getInnerAttrs() |
public String | getOuterAttrs() |
protected int | getRealStyleFlags() Returns RS_NO_WIDTH|RS_NO_HEIGHT. |
public TimeZone | getTimeZone() Returns the time zone that this date box belongs to, or null if
the default time zone is used. |
public Date | getValue() Returns the value (in Date), might be null unless
a constraint stops it. |
public boolean | isButtonVisible() Returns whether the button (on the right of the textbox) is visible. |
public boolean | isCompact() Returns whether to use a compact layout. |
public boolean | isLenient() Returns whether or not date/time parsing is to be lenient. |
public void | open() Drops down the calendar to select a date. |
public void | setButtonVisible(boolean visible) Sets whether the button (on the right of the textbox) is visible. |
public void | setCompact(boolean compact) Sets whether to use a compact layout. |
public void | setConstraint(String constr) |
public void | setFormat(String format) |
public void | setImage(String img) Sets the URI of the button image.
Parameters: img - the URI of the button image. |
public void | setLenient(boolean lenient) Returns whether or not date/time parsing is to be lenient. |
public void | setOpen(boolean open) Drops down or closes the calendar to select a date. |
public void | setTimeZone(TimeZone tzone) Sets the time zone that this date box belongs to, or null if
the default time zone is used. |
public void | setValue(Date value) Sets the value (in Date). |