echopoint
Class ClientDatePicker

java.lang.Object
  extended by nextapp.echo.AbstractComponent
      extended by nextapp.echo.text.TextComponent
          extended by nextapp.echo.TextField
              extended by echopoint.TextField
                  extended by echopoint.ClientDatePicker
All Implemented Interfaces:
Borderable, MouseCursorable, ToolTipPopUpSupport, ReflectionSetter, Validateable, java.io.Serializable, Component, ToolTipSupport

public class ClientDatePicker
extends TextField
implements ReflectionSetter

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:

Other Style properties of interest


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"

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface echopoint.positionable.Borderable
Borderable.NestedStyleInfo
 
Nested classes/interfaces inherited from interface echopoint.positionable.MouseCursorable
MouseCursorable.NestedStyleInfo
 
Field Summary
static java.lang.String BOTTOM_LINE_FOREGROUND_PROPERTY
           
static java.lang.String BUTTON_RENDERING_PROPERTY
           
static java.lang.String BUTTON_TEXT_PROPERTY
           
static java.lang.String CALENDAR_FONT_PROPERTY
           
static java.lang.String CURRENT_DATE_BACKGROUND_PROPERTY
           
static java.lang.String CURRENT_DATE_BORDER_FOREGROUND_PROPERTY
           
static java.lang.String CURRENT_DATE_FOREGROUND_PROPERTY
           
static java.lang.String CURRENT_DATE_ROLLOVER_BACKGROUND_PROPERTY
           
static java.lang.String CURRENT_DATE_ROLLOVER_FOREGROUND_PROPERTY
           
static java.lang.String CURRENT_MONTH_DATE_BACKGROUND_PROPERTY
           
static java.lang.String CURRENT_MONTH_DATE_FOREGROUND_PROPERTY
           
static java.lang.String CURRENT_MONTH_DATE_ROLLOVER_BACKGROUND_PROPERTY
           
static java.lang.String CURRENT_MONTH_DATE_ROLLOVER_FOREGROUND_PROPERTY
           
static java.lang.String DATE_FORMAT_PROPERTY
           
static java.lang.String DAY_COLUMN_HEADER_BACKGROUND_PROPERTY
           
static java.lang.String DAY_COLUMN_HEADER_FOREGROUND_PROPERTY
           
static ImageReference DEFAULT_ICON
          the default icon used
static java.lang.String ICON_PROPERTY
           
static java.lang.String INVALID_COLOR_PROPERTY
           
static java.lang.String LOCALE_PROPERTY
           
static java.lang.String MONTH_NAVIGATION_BACKGROUND_PROPERTY
           
static java.lang.String MONTH_NAVIGATION_FOREGROUND_PROPERTY
           
static java.lang.String NAVIGATION_ROLLOVER_BACKGROUND_PROPERTY
           
static java.lang.String NAVIGATION_ROLLOVER_FOREGROUND_PROPERTY
           
static java.lang.String OFFSET_X_PROPERTY
           
static java.lang.String OFFSET_Y_PROPERTY
           
static java.lang.String OTHER_MONTH_DATE_BACKGROUND_PROPERTY
           
static java.lang.String OTHER_MONTH_DATE_FOREGROUND_PROPERTY
           
static java.lang.String OTHER_MONTH_DATE_ROLLOVER_BACKGROUND_PROPERTY
           
static java.lang.String OTHER_MONTH_DATE_ROLLOVER_FOREGROUND_PROPERTY
           
static java.lang.String STYLE_BOTTOM_LINE_FOREGROUND
           
static java.lang.String STYLE_BUTTON_RENDERING
           
static java.lang.String STYLE_BUTTON_TEXT
           
static java.lang.String STYLE_CALENDAR_FONT
           
static java.lang.String STYLE_CURRENT_DATE_BACKGROUND
           
static java.lang.String STYLE_CURRENT_DATE_BORDER_FOREGROUND
           
static java.lang.String STYLE_CURRENT_DATE_FOREGROUND
           
static java.lang.String STYLE_CURRENT_DATE_ROLLOVER_BACKGROUND
           
static java.lang.String STYLE_CURRENT_DATE_ROLLOVER_FOREGROUND
           
static java.lang.String STYLE_CURRENT_MONTH_DATE_BACKGROUND
           
static java.lang.String STYLE_CURRENT_MONTH_DATE_FOREGROUND
           
static java.lang.String STYLE_CURRENT_MONTH_DATE_ROLLOVER_BACKGROUND
           
static java.lang.String STYLE_CURRENT_MONTH_DATE_ROLLOVER_FOREGROUND
           
static java.lang.String STYLE_DAY_COLUMN_HEADER_BACKGROUND
           
static java.lang.String STYLE_DAY_COLUMN_HEADER_FOREGROUND
           
static java.lang.String STYLE_ICON
           
static java.lang.String STYLE_INVALID_COLOR
           
static java.lang.String STYLE_MONTH_NAVIGATION_BACKGROUND
           
static java.lang.String STYLE_MONTH_NAVIGATION_FOREGROUND
           
static java.lang.String STYLE_NAVIGATION_ROLLOVER_BACKGROUND
           
static java.lang.String STYLE_NAVIGATION_ROLLOVER_FOREGROUND
           
static java.lang.String STYLE_OTHER_MONTH_DATE_BACKGROUND
           
static java.lang.String STYLE_OTHER_MONTH_DATE_FOREGROUND
           
static java.lang.String STYLE_OTHER_MONTH_DATE_ROLLOVER_BACKGROUND
           
static java.lang.String STYLE_OTHER_MONTH_DATE_ROLLOVER_FOREGROUND
           
static java.lang.String STYLE_TODAY_TEXT_BACKGROUND
           
static java.lang.String STYLE_TODAY_TEXT_FOREGROUND
           
static java.lang.String STYLE_TOP_LINE_FOREGROUND
           
static java.lang.String STYLE_YEAR_NAVIGATION_BACKGROUND
           
static java.lang.String STYLE_YEAR_NAVIGATION_FOREGROUND
           
static java.lang.String TODAY_TEXT_BACKGROUND_PROPERTY
           
static java.lang.String TODAY_TEXT_FOREGROUND_PROPERTY
           
static java.lang.String TOP_LINE_FOREGROUND_PROPERTY
           
static java.lang.String YEAR_NAVIGATION_BACKGROUND_PROPERTY
           
static java.lang.String YEAR_NAVIGATION_FOREGROUND_PROPERTY
           
 
Fields inherited from class nextapp.echo.TextField
ACTION_COMMAND_CHANGED_PROPERTY, COLUMN_UNITS_CHANGED_PROPERTY, COLUMNS_CHANGED_PROPERTY, KEY_ACTION_COMMAND_CHANGED_PROPERTY, MAXIMUM_LENGTH_CHANGED_PROPERTY, RETURN_KEY_ACTION_COMMAND_CHANGED_PROPERTY, STYLE_MAXIMUM_LENGTH
 
Fields inherited from class nextapp.echo.text.TextComponent
BORDER_COLOR_CHANGED_PROPERTY, BORDER_DEFAULT, BORDER_INSET, BORDER_NONE, BORDER_OUTSET, BORDER_SIZE_CHANGED_PROPERTY, BORDER_SOLID, BORDER_STYLE_CHANGED_PROPERTY, CHARACTER_UNITS, CSS_CLASS_CHANGED_PROPERTY, DOCUMENT_CHANGED_PROPERTY, EDITABLE_CHANGED_PROPERTY, HORIZONTAL_ALIGNMENT_CHANGED_PROPERTY, PERCENT_UNITS, PIXEL_UNITS, STYLE_BORDER_COLOR, STYLE_BORDER_SIZE, STYLE_BORDER_STYLE, STYLE_COLUMNS, STYLE_HORIZONTAL_ALIGNMENT, STYLE_LINE_WRAP, STYLE_ROWS, TEXT_CHANGED_PROPERTY
 
Fields inherited from interface echopoint.positionable.Borderable
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, STYLE_BOTTOM_BORDER_COLOR, STYLE_BOTTOM_BORDER_SIZE, STYLE_BOTTOM_BORDER_STYLE, STYLE_LEFT_BORDER_COLOR, STYLE_LEFT_BORDER_SIZE, STYLE_LEFT_BORDER_STYLE, STYLE_RIGHT_BORDER_COLOR, STYLE_RIGHT_BORDER_SIZE, STYLE_RIGHT_BORDER_STYLE, STYLE_TOP_BORDER_COLOR, STYLE_TOP_BORDER_SIZE, STYLE_TOP_BORDER_STYLE
 
Fields inherited from interface echopoint.positionable.MouseCursorable
borderStyleSymbolics, CURSOR_AUTO, CURSOR_CROSSHAIR, CURSOR_CUSTOM_URI, CURSOR_DEFAULT, CURSOR_E_RESIZE, CURSOR_HELP, CURSOR_MOVE, CURSOR_N_RESIZE, CURSOR_NE_RESIZE, CURSOR_NW_RESIZE, CURSOR_POINTER, CURSOR_S_RESIZE, CURSOR_SE_RESIZE, CURSOR_SW_RESIZE, CURSOR_TEXT, CURSOR_W_RESIZE, CURSOR_WAIT, STYLE_MOUSE_CURSOR, STYLE_MOUSE_CURSOR_URI
 
Fields inherited from interface nextapp.echo.ToolTipSupport
TOOL_TIP_TEXT_CHANGED_PROPERTY
 
Fields inherited from interface nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, SELECTABLE_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_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.
 
Method Summary
 void applyStyle(Style style)
          Sets stylistic properties of this component based on a Style object.
 Color getBottomLineForeground()
           
 java.lang.String getButtonText()
           
 Font getCalendarFont()
           
 Color getCurrentDateBackground()
           
 Color getCurrentDateBorderForeground()
           
 Color getCurrentDateForeground()
           
 Color getCurrentDateRolloverBackground()
           
 Color getCurrentDateRolloverForeground()
           
 Color getCurrentMonthDateBackground()
           
 Color getCurrentMonthDateForeground()
           
 Color getCurrentMonthDateRolloverBackground()
           
 Color getCurrentMonthDateRolloverForeground()
           
 java.text.SimpleDateFormat getDateFormat()
           
 Color getDayColumnHeaderBackground()
           
 Color getDayColumnHeaderForeground()
           
 ImageReference getIcon()
           
 Color getInvalidColor()
           
 java.util.Locale getLocale()
          Returns the locale of the component.
 Color getMonthNavigationBackground()
           
 Color getMonthNavigationForeground()
           
 Color getNavigationRolloverBackground()
           
 Color getNavigationRolloverForeground()
           
 int getOffsetX()
           
 int getOffsetY()
           
 Color getOtherMonthDateBackground()
           
 Color getOtherMonthDateForeground()
           
 Color getOtherMonthDateRolloverBackground()
           
 Color getOtherMonthDateRolloverForeground()
           
 java.util.Calendar getSelectedDate()
           
 Color getTodayTextBackground()
           
 Color getTodayTextForeground()
           
 Color getTopLineForeground()
           
 Color getYearNavigationBackground()
           
 Color getYearNavigationForeground()
           
 boolean isButtonRendering()
           
 boolean isValid()
          This method returns TRUE if the text of the ClientDatePicker can be parsed into a valid Date with the current DateFormat.
protected  void set(java.lang.Class clazz, java.lang.String propertyName, java.lang.Object arg)
          Sets a property and fires the corresponding property change event.
 java.lang.Object set(java.lang.reflect.Field field, java.lang.Object newValue)
          Called to save the old value of a field, set in a new value and return the old value of a field.
 void setBottomLineForeground(Color bottomLineForeground)
           
 void setButtonRendering(boolean buttonRendering)
          Setting this to false causes the button text and/or icon to be rendered as a plain button instead of a push button.
 void setButtonText(java.lang.String buttonText)
           
 void setCalendarFont(Font calendarFont)
           
 void setCurrentDateBackground(Color currentDateBackground)
           
 void setCurrentDateBorderForeground(Color currentDateBorderForeground)
           
 void setCurrentDateForeground(Color currentDateForeground)
           
 void setCurrentDateRolloverBackground(Color currentDateRolloverBackground)
           
 void setCurrentDateRolloverForeground(Color currentDateRolloverForeground)
           
 void setCurrentMonthDateBackground(Color currentMonthDateBackground)
           
 void setCurrentMonthDateForeground(Color currentMonthDateForeground)
           
 void setCurrentMonthDateRolloverBackground(Color currentMonthDateRolloverBackground)
           
 void setCurrentMonthDateRolloverForeground(Color currentMonthDateRolloverForeground)
           
 void setDateFormat(java.text.SimpleDateFormat format)
          Sets the format String for the date picker.
 void setDayColumnHeaderBackground(Color dayColumnHeaderBackground)
           
 void setDayColumnHeaderForeground(Color dayColumnHeaderForeground)
           
 void setIcon(ImageReference icon)
           
 void setInvalidColor(Color invalidColor)
           
 void setLocale(java.util.Locale locale)
          Sets the locale of the component.
 void setMonthNavigationBackground(Color monthNavigationBackground)
           
 void setMonthNavigationForeground(Color monthNavigationForeground)
           
 void setNavigationRolloverBackground(Color navigationRolloverBackground)
           
 void setNavigationRolloverForeground(Color navigationRolloverForeground)
           
 void setOffsetX(int offsetX)
           
 void setOffsetY(int offsetY)
           
 void setOtherMonthDateBackground(Color otherMonthDateBackground)
           
 void setOtherMonthDateForeground(Color otherMonthDateForeground)
           
 void setOtherMonthDateRolloverBackground(Color otherMonthDateRolloverBackground)
           
 void setOtherMonthDateRolloverForeground(Color otherMonthDateRolloverForeground)
           
 void setSelectedDate(java.util.Calendar date)
           
 void setTodayTextBackground(Color todayTextBackground)
           
 void setTodayTextForeground(Color todayTextForeground)
           
 void setTopLineForeground(Color topLineForeground)
           
 void setYearNavigationBackground(Color yearNavigationBackground)
           
 void setYearNavigationForeground(Color yearNavigationForeground)
           
 
Methods inherited from class echopoint.TextField
getBorderColor, getBorderSize, getBorderStyle, getBottomBorderColor, getBottomBorderSize, getBottomBorderStyle, getLeftBorderColor, getLeftBorderSize, getLeftBorderStyle, getMouseCursor, getMouseCursorURI, getRightBorderColor, getRightBorderSize, getRightBorderStyle, getRuleSet, getToolTipPopUp, getToolTipText, getTopBorderColor, getTopBorderSize, getTopBorderStyle, setBorderColor, setBorderSize, setBorderStyle, setBottomBorderColor, setBottomBorderSize, setBottomBorderStyle, setLeftBorderColor, setLeftBorderSize, setLeftBorderStyle, setMouseCursor, setMouseCursorURI, setRightBorderColor, setRightBorderSize, setRightBorderStyle, setRuleSet, setToolTipText, setTopBorderColor, setTopBorderSize, setTopBorderStyle, validate
 
Methods inherited from class nextapp.echo.TextField
addActionListener, addKeyActionListener, addReturnActionListener, fireActionEvent, fireKeyActionEvent, fireReturnActionEvent, getActionCommand, getColumns, getColumnUnits, getKeyActionCommand, getMaximumLength, getReturnActionCommand, hasActionListeners, hasKeyActionListeners, hasReturnActionListeners, isAsync, isConvertToLowerCase, isConvertToUpperCase, removeActionListener, removeKeyActionListener, removeReturnActionListener, setActionCommand, setAsync, setColumns, setColumnUnits, setConvertToLowerCase, setConvertToUpperCase, setKeyActionCommand, setMaximumLength, setReturnActionCommand
 
Methods inherited from class nextapp.echo.text.TextComponent
getCssClass, getDocument, getHorizontalAlignment, getText, isEditable, setCssClass, setDocument, setEditable, setHorizontalAlignment, setText
 
Methods inherited from class nextapp.echo.AbstractComponent
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getClientId, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getListenerList, getParent, indexOf, init, isAncestorOf, isDifferent, isEnabled, isFocused, isRecursivelyVisible, isRegistered, isSelectableForScriptRecorder, isShowing, isVisible, processHierarchyEvent, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setClientId, setEnabled, setFocused, setFont, setForeground, setIdentifier, setParent, setRegistered, setSelectableForScriptRecorder, setVisible, update
 
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

STYLE_CURRENT_DATE_ROLLOVER_BACKGROUND

public static final java.lang.String STYLE_CURRENT_DATE_ROLLOVER_BACKGROUND
See Also:
Constant Field Values

STYLE_NAVIGATION_ROLLOVER_FOREGROUND

public static final java.lang.String STYLE_NAVIGATION_ROLLOVER_FOREGROUND
See Also:
Constant Field Values

STYLE_NAVIGATION_ROLLOVER_BACKGROUND

public static final java.lang.String STYLE_NAVIGATION_ROLLOVER_BACKGROUND
See Also:
Constant Field Values

STYLE_ICON

public static final java.lang.String STYLE_ICON
See Also:
Constant Field Values

STYLE_BUTTON_TEXT

public static final java.lang.String STYLE_BUTTON_TEXT
See Also:
Constant Field Values

STYLE_BUTTON_RENDERING

public static final java.lang.String STYLE_BUTTON_RENDERING
See Also:
Constant Field Values

DEFAULT_ICON

public static final ImageReference DEFAULT_ICON
the default icon used

Constructor Detail

ClientDatePicker

public ClientDatePicker()
Creates a default ClientDatePicker


ClientDatePicker

public ClientDatePicker(int columns)
Creates a ClientDatePicker that is columns wide.


ClientDatePicker

public ClientDatePicker(java.util.Calendar date)
Creates a ClientDatePicker with number as the initial Date value.


ClientDatePicker

public ClientDatePicker(java.util.Calendar date,
                        int columns)
Creates a ClientDatePicker with number as the initial value and a given column size.


ClientDatePicker

public ClientDatePicker(java.lang.String text)
Creates a ClientDatePicker with text as the initial value.


ClientDatePicker

public ClientDatePicker(java.lang.String text,
                        int columns)
Creates a ClientDatePicker with text as the initial value and that is columns wide.

Method Detail

getNavigationRolloverBackground

public Color getNavigationRolloverBackground()

setNavigationRolloverBackground

public void setNavigationRolloverBackground(Color navigationRolloverBackground)
Parameters:
navigationRolloverBackground -

getNavigationRolloverForeground

public Color getNavigationRolloverForeground()

setNavigationRolloverForeground

public void setNavigationRolloverForeground(Color navigationRolloverForeground)
Parameters:
navigationRolloverForeground -

getButtonText

public java.lang.String getButtonText()

setButtonText

public void setButtonText(java.lang.String buttonText)
Parameters:
buttonText -

getIcon

public ImageReference getIcon()

setIcon

public void setIcon(ImageReference icon)
Parameters:
icon -

getOffsetX

public int getOffsetX()

setOffsetX

public void setOffsetX(int offsetX)
Parameters:
offsetX -

getOffsetY

public int getOffsetY()

setOffsetY

public void setOffsetY(int offsetY)
Parameters:
offsetY -

getCurrentDateRolloverBackground

public Color getCurrentDateRolloverBackground()

setCurrentDateRolloverBackground

public void setCurrentDateRolloverBackground(Color currentDateRolloverBackground)
Parameters:
currentDateRolloverBackground -

getCurrentDateRolloverForeground

public Color getCurrentDateRolloverForeground()

setCurrentDateRolloverForeground

public void setCurrentDateRolloverForeground(Color currentDateRolloverForeground)
Parameters:
currentDateRolloverForeground -

getCurrentMonthDateRolloverBackground

public Color getCurrentMonthDateRolloverBackground()

setCurrentMonthDateRolloverBackground

public void setCurrentMonthDateRolloverBackground(Color currentMonthDateRolloverBackground)
Parameters:
currentMonthDateRolloverBackground -

getCurrentMonthDateRolloverForeground

public Color getCurrentMonthDateRolloverForeground()

setCurrentMonthDateRolloverForeground

public void setCurrentMonthDateRolloverForeground(Color currentMonthDateRolloverForeground)
Parameters:
currentMonthDateRolloverForeground -

getOtherMonthDateRolloverBackground

public Color getOtherMonthDateRolloverBackground()

setOtherMonthDateRolloverBackground

public void setOtherMonthDateRolloverBackground(Color otherMonthDateRolloverBackground)
Parameters:
otherMonthDateRolloverBackground -

getOtherMonthDateRolloverForeground

public Color getOtherMonthDateRolloverForeground()

setOtherMonthDateRolloverForeground

public void setOtherMonthDateRolloverForeground(Color otherMonthDateRolloverForeground)
Parameters:
otherMonthDateRolloverForeground -

getCurrentDateBorderForeground

public Color getCurrentDateBorderForeground()

setCurrentDateBorderForeground

public void setCurrentDateBorderForeground(Color currentDateBorderForeground)
Parameters:
currentDateBorderForeground -

getMonthNavigationBackground

public Color getMonthNavigationBackground()

setMonthNavigationBackground

public void setMonthNavigationBackground(Color monthNavigationBackground)
Parameters:
monthNavigationBackground -

getMonthNavigationForeground

public Color getMonthNavigationForeground()

setMonthNavigationForeground

public void setMonthNavigationForeground(Color monthNavigationForeground)
Parameters:
monthNavigationForeground -

getYearNavigationBackground

public Color getYearNavigationBackground()

setYearNavigationBackground

public void setYearNavigationBackground(Color yearNavigationBackground)
Parameters:
yearNavigationBackground -

getYearNavigationForeground

public Color getYearNavigationForeground()

setYearNavigationForeground

public void setYearNavigationForeground(Color yearNavigationForeground)
Parameters:
yearNavigationForeground -

getCalendarFont

public Font getCalendarFont()

setCalendarFont

public void setCalendarFont(Font calendarFont)

getCurrentDateBackground

public Color getCurrentDateBackground()

setCurrentDateBackground

public void setCurrentDateBackground(Color currentDateBackground)

getCurrentDateForeground

public Color getCurrentDateForeground()

setCurrentDateForeground

public void setCurrentDateForeground(Color currentDateForeground)
Parameters:
currentDateForeground -

getCurrentMonthDateBackground

public Color getCurrentMonthDateBackground()

setCurrentMonthDateBackground

public void setCurrentMonthDateBackground(Color currentMonthDateBackground)
Parameters:
currentMonthDateBackground -

getCurrentMonthDateForeground

public Color getCurrentMonthDateForeground()

setCurrentMonthDateForeground

public void setCurrentMonthDateForeground(Color currentMonthDateForeground)
Parameters:
currentMonthDateForeground -

getDayColumnHeaderBackground

public Color getDayColumnHeaderBackground()

setDayColumnHeaderBackground

public void setDayColumnHeaderBackground(Color dayColumnHeaderBackground)
Parameters:
dayColumnHeaderBackground -

getDayColumnHeaderForeground

public Color getDayColumnHeaderForeground()

setDayColumnHeaderForeground

public void setDayColumnHeaderForeground(Color dayColumnHeaderForeground)
Parameters:
dayColumnHeaderForeground -

getOtherMonthDateBackground

public Color getOtherMonthDateBackground()

setOtherMonthDateBackground

public void setOtherMonthDateBackground(Color otherMonthDateBackground)
Parameters:
otherMonthDateBackground -

getOtherMonthDateForeground

public Color getOtherMonthDateForeground()

setOtherMonthDateForeground

public void setOtherMonthDateForeground(Color otherMonthDateForeground)
Parameters:
otherMonthDateForeground -

getTodayTextBackground

public Color getTodayTextBackground()

setTodayTextBackground

public void setTodayTextBackground(Color todayTextBackground)
Parameters:
todayTextBackground -

getTodayTextForeground

public Color getTodayTextForeground()

setTodayTextForeground

public void setTodayTextForeground(Color todayTextForeground)
Parameters:
todayTextForeground -

getTopLineForeground

public Color getTopLineForeground()

setTopLineForeground

public void setTopLineForeground(Color topLineForeground)
Parameters:
topLineForeground -

getBottomLineForeground

public Color getBottomLineForeground()

setBottomLineForeground

public void setBottomLineForeground(Color bottomLineForeground)
Parameters:
bottomLineForeground -

setInvalidColor

public void setInvalidColor(Color invalidColor)

getInvalidColor

public Color getInvalidColor()

getSelectedDate

public java.util.Calendar getSelectedDate()

setSelectedDate

public void setSelectedDate(java.util.Calendar date)
Parameters:
date -

setDateFormat

public void setDateFormat(java.text.SimpleDateFormat format)
Sets the format String for the date picker. See class documentation for more information on accepted date formats

Parameters:
format -

getDateFormat

public java.text.SimpleDateFormat getDateFormat()

isValid

public boolean isValid()
This method returns TRUE if the text of the ClientDatePicker can be parsed into a valid Date with the current DateFormat.


applyStyle

public void applyStyle(Style style)
Description copied from interface: Component
Sets stylistic properties of this component based on a Style object. The version of this method in Component will set foreground and background colors and the font from the style if they are present. Components should override this method if they allow more properties to be set from a style object, and should call super.applyStyle() if necessary.

Specified by:
applyStyle in interface Borderable
Specified by:
applyStyle in interface MouseCursorable
Specified by:
applyStyle in interface Component
Overrides:
applyStyle in class TextField
Parameters:
style - The style object from which to retrieve properties for this Component.
See Also:
TextField.applyStyle(nextapp.echo.Style)

getLocale

public java.util.Locale getLocale()
Description copied from interface: Component
Returns the locale of the component. If the component does not have a locale, its ancestors will be queried for a locale. If no ancestors have locales set, the application instance's locale will be returned. If the component is not registered, the active application instance's will be returned.

Specified by:
getLocale in interface Validateable
Specified by:
getLocale in interface Component
Overrides:
getLocale in class AbstractComponent
Returns:
The locale for this component.

setLocale

public void setLocale(java.util.Locale locale)
Description copied from interface: Component
Sets the locale of the component.

Specified by:
setLocale in interface Component
Overrides:
setLocale in class AbstractComponent
Parameters:
locale - The new locale for the component.

isButtonRendering

public boolean isButtonRendering()

setButtonRendering

public void setButtonRendering(boolean buttonRendering)
Setting this to false causes the button text and/or icon to be rendered as a plain button instead of a push button. Default: true


set

protected void set(java.lang.Class clazz,
                   java.lang.String propertyName,
                   java.lang.Object arg)
Sets a property and fires the corresponding property change event. This would be a handy method to have in Component. It could reduce a lot of code.


set

public java.lang.Object set(java.lang.reflect.Field field,
                            java.lang.Object newValue)
                     throws java.lang.Exception
Description copied from interface: ReflectionSetter
Called to save the old value of a field, set in a new value and return the old value of a field. This interface allows a field set operation to be "delegated" back into the class that has permission to perform the field set.

 public Object set(Field f, Object newValue) throws Exception {
      Object oldValue = f.get(this);
      f.set(this,newValue);
      return oldValue;
 }
 

Specified by:
set in interface ReflectionSetter
Overrides:
set in class TextField
Parameters:
field - - the field to be set
newValue - - the new value to be set
Returns:
the oldValue of the field
Throws:
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.NullPointerException
java.lang.Exception
See Also:
ReflectionSetter.set(Field, Object)