|
|||||||||
| Home >> All >> [ echopoint overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
echopoint
Class ClientDatePicker

java.lang.Objectnextapp.echo.Component
nextapp.echo.text.TextComponent
nextapp.echo.TextField
echopoint.TextField
echopoint.ClientDatePicker
- All Implemented Interfaces:
- echopoint.positionable.Borderable, echopoint.util.reflect.ReflectionSetter, java.io.Serializable, ToolTipPopUpSupport, nextapp.echo.ToolTipSupport, echopoint.validation.Validateable
- public class ClientDatePicker
- extends TextField
- implements echopoint.util.reflect.ReflectionSetter
- extends TextField
A ClientDatePicker allows the user to select a date
without requiring a trip back to the server. The formatted date
is placed into the content of the TextField.
Styles overview:
The Calendar's colors (background and foreground) are broken out into the following:
- DayColumnHeader: The "S M T W Th F S" header section
- CurrentMonthDate: A Date that is within the currently selected month
- OtherMonthDate: A Date that is in the month before or after the currently selected month
- CurrentDate: The currently selected date
- TodayText: The text at the bottom of the calendar to select today's date
- YearNavigation: The year selector
- MonthNavigation: The month selector
- TopLine: horizontal rule at the top of the calendar
- BottomLine: horizontal rule at the bottom of the calendar
- CurrentDateBorder: The border around the currently selected date
- CurrentMonthDateRollover: Mouseover color for CurrentMonthDate
- OtherMonthDateRollover: Mouseover color for OtherMonthDate
- CurrentDateRollover: Mouseover color for CurrentDate
Other Style properties of interest
- OffsetX / OffsetY : Relative positioning. This will accept negative numbers
- CalendarFont : Global calendar font.
- Icon : An optional image that may be used as the popup control
- ButtonText: The text to display on the button used as the popup control (set to null or "" to disable)
Date Format Strings
The
ClientDatePicker uses the following date format strings :
Field | Full Form | Short Form
-------------+--------------------+-----------------------
Year | yyyy (4 digits) | yy (2 digits), y (2 or 4 digits)
Month | MMM (name or abbr.)| MM (2 digits), M (1 or 2 digits)
| NNN (abbr.) |
Day of Month | dd (2 digits) | d (1 or 2 digits)
Day of Week | EE (name) | E (abbr)
Hour (1-12) | hh (2 digits) | h (1 or 2 digits)
Hour (0-23) | HH (2 digits) | H (1 or 2 digits)
Hour (0-11) | KK (2 digits) | K (1 or 2 digits)
Hour (1-24) | kk (2 digits) | k (1 or 2 digits)
Minute | mm (2 digits) | m (1 or 2 digits)
Second | ss (2 digits) | s (1 or 2 digits)
AM/PM | a |
NOTE THE DIFFERENCE BETWEEN MM and mm! Month=MM, not mm!
Examples:
"MMM d, y" matches: January 01, 2000
Dec 1, 1900
Nov 20, 00
"M/d/yy" matches: 01/20/00
9/2/00
"MMM dd, yyyy hh:mm:ssa" matches: "January 01, 2000 12:30:45AM"
| Nested Class Summary |
| Nested classes inherited from class nextapp.echo.text.TextComponent |
|
| Nested classes inherited from class echopoint.positionable.Borderable |
echopoint.positionable.Borderable.NestedStyleInfo |
| Fields inherited from class echopoint.TextField |
|
| Fields inherited from class nextapp.echo.TextField |
ACTION_COMMAND_CHANGED_PROPERTY, COLUMN_UNITS_CHANGED_PROPERTY, COLUMNS_CHANGED_PROPERTY, MAXIMUM_LENGTH_CHANGED_PROPERTY, STYLE_MAXIMUM_LENGTH |
| Fields inherited from interface echopoint.positionable.Borderable |
BORDER_CHANGED_PROPERTY, BORDER_DASHED, BORDER_DOTTED, BORDER_DOUBLE, BORDER_GROOVE, BORDER_INSET, BORDER_NONE, BORDER_OUTSET, BORDER_RIDGE, BORDER_SOLID, borderStyleSymbolics, STYLE_BORDER_COLOR, STYLE_BORDER_SIZE, STYLE_BORDER_STYLE |
| Fields inherited from interface nextapp.echo.ToolTipSupport |
TOOL_TIP_TEXT_CHANGED_PROPERTY |
| Constructor Summary | |
ClientDatePicker()
Creates a default ClientDatePicker |
|
ClientDatePicker(java.util.Calendar date)
Creates a ClientDatePicker with number as the initial
Date value. |
|
ClientDatePicker(java.util.Calendar date,
int columns)
Creates a ClientDatePicker with number as the initial
value and a given column size. |
|
ClientDatePicker(int columns)
Creates a ClientDatePicker that is columns wide. |
|
ClientDatePicker(java.lang.String text)
Creates a ClientDatePicker with text as the initial
value. |
|
ClientDatePicker(java.lang.String text,
int columns)
Creates a ClientDatePicker with text as the initial
value and that is columns wide. |
|
| Methods inherited from class echopoint.TextField |
getBorderColor, getBorderSize, getBorderStyle, getRuleSet, getToolTipPopUp, getToolTipText, setBorderColor, setBorderSize, setBorderStyle, setRuleSet, setToolTipText, validate |
| Methods inherited from class nextapp.echo.TextField |
addActionListener, fireActionEvent, getActionCommand, getColumns, getColumnUnits, getMaximumLength, hasActionListeners, removeActionListener, setActionCommand, setColumns, setColumnUnits, setMaximumLength |
| Methods inherited from class nextapp.echo.text.TextComponent |
getDocument, getHorizontalAlignment, getText, isEditable, setDocument, setEditable, setHorizontalAlignment, setText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface echopoint.validation.Validateable |
getIdentifier, getText |
| Field Detail |
INVALID_COLOR_PROPERTY
public static final java.lang.String INVALID_COLOR_PROPERTY
- See Also:
- Constant Field Values
BOTTOM_LINE_FOREGROUND_PROPERTY
public static final java.lang.String BOTTOM_LINE_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
TOP_LINE_FOREGROUND_PROPERTY
public static final java.lang.String TOP_LINE_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
TODAY_TEXT_FOREGROUND_PROPERTY
public static final java.lang.String TODAY_TEXT_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
TODAY_TEXT_BACKGROUND_PROPERTY
public static final java.lang.String TODAY_TEXT_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
OTHER_MONTH_DATE_FOREGROUND_PROPERTY
public static final java.lang.String OTHER_MONTH_DATE_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
OTHER_MONTH_DATE_BACKGROUND_PROPERTY
public static final java.lang.String OTHER_MONTH_DATE_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
DAY_COLUMN_HEADER_FOREGROUND_PROPERTY
public static final java.lang.String DAY_COLUMN_HEADER_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
DAY_COLUMN_HEADER_BACKGROUND_PROPERTY
public static final java.lang.String DAY_COLUMN_HEADER_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
CURRENT_MONTH_DATE_FOREGROUND_PROPERTY
public static final java.lang.String CURRENT_MONTH_DATE_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
CURRENT_MONTH_DATE_BACKGROUND_PROPERTY
public static final java.lang.String CURRENT_MONTH_DATE_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
CURRENT_DATE_FOREGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
CURRENT_DATE_BACKGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
CALENDAR_FONT_PROPERTY
public static final java.lang.String CALENDAR_FONT_PROPERTY
- See Also:
- Constant Field Values
YEAR_NAVIGATION_FOREGROUND_PROPERTY
public static final java.lang.String YEAR_NAVIGATION_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
YEAR_NAVIGATION_BACKGROUND_PROPERTY
public static final java.lang.String YEAR_NAVIGATION_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
MONTH_NAVIGATION_FOREGROUND_PROPERTY
public static final java.lang.String MONTH_NAVIGATION_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
MONTH_NAVIGATION_BACKGROUND_PROPERTY
public static final java.lang.String MONTH_NAVIGATION_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
CURRENT_DATE_BORDER_FOREGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_BORDER_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
OTHER_MONTH_DATE_ROLLOVER_FOREGROUND_PROPERTY
public static final java.lang.String OTHER_MONTH_DATE_ROLLOVER_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
OTHER_MONTH_DATE_ROLLOVER_BACKGROUND_PROPERTY
public static final java.lang.String OTHER_MONTH_DATE_ROLLOVER_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
CURRENT_MONTH_DATE_ROLLOVER_FOREGROUND_PROPERTY
public static final java.lang.String CURRENT_MONTH_DATE_ROLLOVER_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
CURRENT_MONTH_DATE_ROLLOVER_BACKGROUND_PROPERTY
public static final java.lang.String CURRENT_MONTH_DATE_ROLLOVER_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
CURRENT_DATE_ROLLOVER_FOREGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_ROLLOVER_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
CURRENT_DATE_ROLLOVER_BACKGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_ROLLOVER_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
NAVIGATION_ROLLOVER_FOREGROUND_PROPERTY
public static final java.lang.String NAVIGATION_ROLLOVER_FOREGROUND_PROPERTY
- See Also:
- Constant Field Values
NAVIGATION_ROLLOVER_BACKGROUND_PROPERTY
public static final java.lang.String NAVIGATION_ROLLOVER_BACKGROUND_PROPERTY
- See Also:
- Constant Field Values
ICON_PROPERTY
public static final java.lang.String ICON_PROPERTY
- See Also:
- Constant Field Values
BUTTON_TEXT_PROPERTY
public static final java.lang.String BUTTON_TEXT_PROPERTY
- See Also:
- Constant Field Values
BUTTON_RENDERING_PROPERTY
public static final java.lang.String BUTTON_RENDERING_PROPERTY
- See Also:
- Constant Field Values
DATE_FORMAT_PROPERTY
public static final java.lang.String DATE_FORMAT_PROPERTY
- See Also:
- Constant Field Values
OFFSET_Y_PROPERTY
public static final java.lang.String OFFSET_Y_PROPERTY
- See Also:
- Constant Field Values
OFFSET_X_PROPERTY
public static final java.lang.String OFFSET_X_PROPERTY
- See Also:
- Constant Field Values
LOCALE_PROPERTY
public static final java.lang.String LOCALE_PROPERTY
- See Also:
- Constant Field Values
STYLE_INVALID_COLOR
public static final java.lang.String STYLE_INVALID_COLOR
- See Also:
- Constant Field Values
STYLE_BOTTOM_LINE_FOREGROUND
public static final java.lang.String STYLE_BOTTOM_LINE_FOREGROUND
- See Also:
- Constant Field Values
STYLE_TOP_LINE_FOREGROUND
public static final java.lang.String STYLE_TOP_LINE_FOREGROUND
- See Also:
- Constant Field Values
STYLE_TODAY_TEXT_FOREGROUND
public static final java.lang.String STYLE_TODAY_TEXT_FOREGROUND
- See Also:
- Constant Field Values
STYLE_TODAY_TEXT_BACKGROUND
public static final java.lang.String STYLE_TODAY_TEXT_BACKGROUND
- See Also:
- Constant Field Values
STYLE_OTHER_MONTH_DATE_FOREGROUND
public static final java.lang.String STYLE_OTHER_MONTH_DATE_FOREGROUND
- See Also:
- Constant Field Values
STYLE_OTHER_MONTH_DATE_BACKGROUND
public static final java.lang.String STYLE_OTHER_MONTH_DATE_BACKGROUND
- See Also:
- Constant Field Values
STYLE_DAY_COLUMN_HEADER_FOREGROUND
public static final java.lang.String STYLE_DAY_COLUMN_HEADER_FOREGROUND
- See Also:
- Constant Field Values
STYLE_DAY_COLUMN_HEADER_BACKGROUND
public static final java.lang.String STYLE_DAY_COLUMN_HEADER_BACKGROUND
- See Also:
- Constant Field Values
STYLE_CURRENT_MONTH_DATE_FOREGROUND
public static final java.lang.String STYLE_CURRENT_MONTH_DATE_FOREGROUND
- See Also:
- Constant Field Values
STYLE_CURRENT_MONTH_DATE_BACKGROUND
public static final java.lang.String STYLE_CURRENT_MONTH_DATE_BACKGROUND
- See Also:
- Constant Field Values
STYLE_CURRENT_DATE_FOREGROUND
public static final java.lang.String STYLE_CURRENT_DATE_FOREGROUND
- See Also:
- Constant Field Values
STYLE_CURRENT_DATE_BACKGROUND
public static final java.lang.String STYLE_CURRENT_DATE_BACKGROUND
- See Also:
- Constant Field Values
STYLE_CALENDAR_FONT
public static final java.lang.String STYLE_CALENDAR_FONT
- See Also:
- Constant Field Values
STYLE_YEAR_NAVIGATION_FOREGROUND
public static final java.lang.String STYLE_YEAR_NAVIGATION_FOREGROUND
- See Also:
- Constant Field Values
STYLE_YEAR_NAVIGATION_BACKGROUND
public static final java.lang.String STYLE_YEAR_NAVIGATION_BACKGROUND
- See Also:
- Constant Field Values
STYLE_MONTH_NAVIGATION_FOREGROUND
public static final java.lang.String STYLE_MONTH_NAVIGATION_FOREGROUND
- See Also:
- Constant Field Values
STYLE_MONTH_NAVIGATION_BACKGROUND
public static final java.lang.String STYLE_MONTH_NAVIGATION_BACKGROUND
- See Also:
- Constant Field Values
STYLE_CURRENT_DATE_BORDER_FOREGROUND
public static final java.lang.String STYLE_CURRENT_DATE_BORDER_FOREGROUND
- See Also:
- Constant Field Values
STYLE_OTHER_MONTH_DATE_ROLLOVER_FOREGROUND
public static final java.lang.String STYLE_OTHER_MONTH_DATE_ROLLOVER_FOREGROUND
- See Also:
- Constant Field Values
STYLE_OTHER_MONTH_DATE_ROLLOVER_BACKGROUND
public static final java.lang.String STYLE_OTHER_MONTH_DATE_ROLLOVER_BACKGROUND
- See Also:
- Constant Field Values
STYLE_CURRENT_MONTH_DATE_ROLLOVER_FOREGROUND
public static final java.lang.String STYLE_CURRENT_MONTH_DATE_ROLLOVER_FOREGROUND
- See Also:
- Constant Field Values
STYLE_CURRENT_MONTH_DATE_ROLLOVER_BACKGROUND
public static final java.lang.String STYLE_CURRENT_MONTH_DATE_ROLLOVER_BACKGROUND
- See Also:
- Constant Field Values
STYLE_CURRENT_DATE_ROLLOVER_FOREGROUND
public static final java.lang.String STYLE_CURRENT_DATE_ROLLOVER_FOREGROUND
- See Also:
- Constant Field Values
JAVADOC