EchoPoint
1.0

echopoint
Class ClientDatePicker

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

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"

Author:
Jason Dalton (jdalton@asset.com) and Chris Bozic (cbozic@asset.com)
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class echopoint.positionable.Borderable
Borderable.NestedStyleInfo
 
Nested classes inherited from class 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 nextapp.echo.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, MAXIMUM_LENGTH_CHANGED_PROPERTY, STYLE_MAXIMUM_LENGTH
 
Fields inherited from class nextapp.echo.text.TextComponent
BORDER_COLOR_CHANGED_PROPERTY, BORDER_DEFAULT, BORDER_INSET, BORDER_NONE, BORDER_SIZE_CHANGED_PROPERTY, BORDER_SOLID, BORDER_STYLE_CHANGED_PROPERTY, CHARACTER_UNITS, 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 class nextapp.echo.Component
BACKGROUND_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FONT_CHANGED_PROPERTY, FOREGROUND_CHANGED_PROPERTY, IDENTIFIER_CHANGED_PROPERTY, listenerList, LOCALE_CHANGED_PROPERTY, MODEL_CHANGED_PROPERTY, STYLE_BACKGROUND, STYLE_FONT, STYLE_FOREGROUND, UPDATE_PROPERTY, VISIBLE_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
 
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(nextapp.echo.Style style)
          This will apply the borderColor, borderWidth and borderStyle properties first followed by the left, top, right and bottom borer properties.
 nextapp.echo.Color getBottomLineForeground()
           
 java.lang.String getButtonText()
           
 nextapp.echo.Font getCalendarFont()
           
 nextapp.echo.Color getCurrentDateBackground()
           
 nextapp.echo.Color getCurrentDateBorderForeground()
           
 nextapp.echo.Color getCurrentDateForeground()
           
 nextapp.echo.Color getCurrentDateRolloverBackground()
           
 nextapp.echo.Color getCurrentDateRolloverForeground()
           
 nextapp.echo.Color getCurrentMonthDateBackground()
           
 nextapp.echo.Color getCurrentMonthDateForeground()
           
 nextapp.echo.Color getCurrentMonthDateRolloverBackground()
           
 nextapp.echo.Color getCurrentMonthDateRolloverForeground()
           
 java.text.SimpleDateFormat getDateFormat()
           
 nextapp.echo.Color getDayColumnHeaderBackground()
           
 nextapp.echo.Color getDayColumnHeaderForeground()
           
 nextapp.echo.ImageReference getIcon()
           
 nextapp.echo.Color getInvalidColor()
           
 java.util.Locale getLocale()
          Returns the locale to use with this Validateable.
 nextapp.echo.Color getMonthNavigationBackground()
           
 nextapp.echo.Color getMonthNavigationForeground()
           
 nextapp.echo.Color getNavigationRolloverBackground()
           
 nextapp.echo.Color getNavigationRolloverForeground()
           
 int getOffsetX()
           
 int getOffsetY()
           
 nextapp.echo.Color getOtherMonthDateBackground()
           
 nextapp.echo.Color getOtherMonthDateForeground()
           
 nextapp.echo.Color getOtherMonthDateRolloverBackground()
           
 nextapp.echo.Color getOtherMonthDateRolloverForeground()
           
 java.util.Calendar getSelectedDate()
           
 nextapp.echo.Color getTodayTextBackground()
           
 nextapp.echo.Color getTodayTextForeground()
           
 nextapp.echo.Color getTopLineForeground()
           
 nextapp.echo.Color getYearNavigationBackground()
           
 nextapp.echo.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(nextapp.echo.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(nextapp.echo.Font calendarFont)
           
 void setCurrentDateBackground(nextapp.echo.Color currentDateBackground)
           
 void setCurrentDateBorderForeground(nextapp.echo.Color currentDateBorderForeground)
           
 void setCurrentDateForeground(nextapp.echo.Color currentDateForeground)
           
 void setCurrentDateRolloverBackground(nextapp.echo.Color currentDateRolloverBackground)
           
 void setCurrentDateRolloverForeground(nextapp.echo.Color currentDateRolloverForeground)
           
 void setCurrentMonthDateBackground(nextapp.echo.Color currentMonthDateBackground)
           
 void setCurrentMonthDateForeground(nextapp.echo.Color currentMonthDateForeground)
           
 void setCurrentMonthDateRolloverBackground(nextapp.echo.Color currentMonthDateRolloverBackground)
           
 void setCurrentMonthDateRolloverForeground(nextapp.echo.Color currentMonthDateRolloverForeground)
           
 void setDateFormat(java.text.SimpleDateFormat format)
          Sets the format String for the date picker.
 void setDayColumnHeaderBackground(nextapp.echo.Color dayColumnHeaderBackground)
           
 void setDayColumnHeaderForeground(nextapp.echo.Color dayColumnHeaderForeground)
           
 void setIcon(nextapp.echo.ImageReference icon)
           
 void setInvalidColor(nextapp.echo.Color invalidColor)
           
 void setLocale(java.util.Locale locale)
           
 void setMonthNavigationBackground(nextapp.echo.Color monthNavigationBackground)
           
 void setMonthNavigationForeground(nextapp.echo.Color monthNavigationForeground)
           
 void setNavigationRolloverBackground(nextapp.echo.Color navigationRolloverBackground)
           
 void setNavigationRolloverForeground(nextapp.echo.Color navigationRolloverForeground)
           
 void setOffsetX(int offsetX)
           
 void setOffsetY(int offsetY)
           
 void setOtherMonthDateBackground(nextapp.echo.Color otherMonthDateBackground)
           
 void setOtherMonthDateForeground(nextapp.echo.Color otherMonthDateForeground)
           
 void setOtherMonthDateRolloverBackground(nextapp.echo.Color otherMonthDateRolloverBackground)
           
 void setOtherMonthDateRolloverForeground(nextapp.echo.Color otherMonthDateRolloverForeground)
           
 void setSelectedDate(java.util.Calendar date)
           
 void setTodayTextBackground(nextapp.echo.Color todayTextBackground)
           
 void setTodayTextForeground(nextapp.echo.Color todayTextForeground)
           
 void setTopLineForeground(nextapp.echo.Color topLineForeground)
           
 void setYearNavigationBackground(nextapp.echo.Color yearNavigationBackground)
           
 void setYearNavigationForeground(nextapp.echo.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, 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 nextapp.echo.Component
add, add, addHierarchyListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getComponent, getComponentCount, getComponents, getEchoInstance, getFont, getForeground, getIdentifier, getParent, indexOf, init, isAncestorOf, isEnabled, isRegistered, isShowing, isVisible, remove, remove, removeAll, removeHierarchyListener, removePropertyChangeListener, setBackground, setEnabled, setFont, setForeground, setIdentifier, 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 nextapp.echo.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 nextapp.echo.Color getNavigationRolloverBackground()

setNavigationRolloverBackground

public void setNavigationRolloverBackground(nextapp.echo.Color navigationRolloverBackground)
Parameters:
navigationRolloverBackground -

getNavigationRolloverForeground

public nextapp.echo.Color getNavigationRolloverForeground()

setNavigationRolloverForeground

public void setNavigationRolloverForeground(nextapp.echo.Color navigationRolloverForeground)
Parameters:
navigationRolloverForeground -

getButtonText

public java.lang.String getButtonText()

setButtonText

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

getIcon

public nextapp.echo.ImageReference getIcon()

setIcon

public void setIcon(nextapp.echo.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 nextapp.echo.Color getCurrentDateRolloverBackground()

setCurrentDateRolloverBackground

public void setCurrentDateRolloverBackground(nextapp.echo.Color currentDateRolloverBackground)
Parameters:
currentDateRolloverBackground -

getCurrentDateRolloverForeground

public nextapp.echo.Color getCurrentDateRolloverForeground()

setCurrentDateRolloverForeground

public void setCurrentDateRolloverForeground(nextapp.echo.Color currentDateRolloverForeground)
Parameters:
currentDateRolloverForeground -

getCurrentMonthDateRolloverBackground

public nextapp.echo.Color getCurrentMonthDateRolloverBackground()

setCurrentMonthDateRolloverBackground

public void setCurrentMonthDateRolloverBackground(nextapp.echo.Color currentMonthDateRolloverBackground)
Parameters:
currentMonthDateRolloverBackground -

getCurrentMonthDateRolloverForeground

public nextapp.echo.Color getCurrentMonthDateRolloverForeground()

setCurrentMonthDateRolloverForeground

public void setCurrentMonthDateRolloverForeground(nextapp.echo.Color currentMonthDateRolloverForeground)
Parameters:
currentMonthDateRolloverForeground -

getOtherMonthDateRolloverBackground

public nextapp.echo.Color getOtherMonthDateRolloverBackground()

setOtherMonthDateRolloverBackground

public void setOtherMonthDateRolloverBackground(nextapp.echo.Color otherMonthDateRolloverBackground)
Parameters:
otherMonthDateRolloverBackground -

getOtherMonthDateRolloverForeground

public nextapp.echo.Color getOtherMonthDateRolloverForeground()

setOtherMonthDateRolloverForeground

public void setOtherMonthDateRolloverForeground(nextapp.echo.Color otherMonthDateRolloverForeground)
Parameters:
otherMonthDateRolloverForeground -

getCurrentDateBorderForeground

public nextapp.echo.Color getCurrentDateBorderForeground()

setCurrentDateBorderForeground

public void setCurrentDateBorderForeground(nextapp.echo.Color currentDateBorderForeground)
Parameters:
currentDateBorderForeground -

getMonthNavigationBackground

public nextapp.echo.Color getMonthNavigationBackground()

setMonthNavigationBackground

public void setMonthNavigationBackground(nextapp.echo.Color monthNavigationBackground)
Parameters:
monthNavigationBackground -

getMonthNavigationForeground

public nextapp.echo.Color getMonthNavigationForeground()

setMonthNavigationForeground

public void setMonthNavigationForeground(nextapp.echo.Color monthNavigationForeground)
Parameters:
monthNavigationForeground -

getYearNavigationBackground

public nextapp.echo.Color getYearNavigationBackground()

setYearNavigationBackground

public void setYearNavigationBackground(nextapp.echo.Color yearNavigationBackground)
Parameters:
yearNavigationBackground -

getYearNavigationForeground

public nextapp.echo.Color getYearNavigationForeground()

setYearNavigationForeground

public void setYearNavigationForeground(nextapp.echo.Color yearNavigationForeground)
Parameters:
yearNavigationForeground -

getCalendarFont

public nextapp.echo.Font getCalendarFont()

setCalendarFont

public void setCalendarFont(nextapp.echo.Font calendarFont)

getCurrentDateBackground

public nextapp.echo.Color getCurrentDateBackground()

setCurrentDateBackground

public void setCurrentDateBackground(nextapp.echo.Color currentDateBackground)

getCurrentDateForeground

public nextapp.echo.Color getCurrentDateForeground()

setCurrentDateForeground

public void setCurrentDateForeground(nextapp.echo.Color currentDateForeground)
Parameters:
currentDateForeground -

getCurrentMonthDateBackground

public nextapp.echo.Color getCurrentMonthDateBackground()

setCurrentMonthDateBackground

public void setCurrentMonthDateBackground(nextapp.echo.Color currentMonthDateBackground)
Parameters:
currentMonthDateBackground -

getCurrentMonthDateForeground

public nextapp.echo.Color getCurrentMonthDateForeground()

setCurrentMonthDateForeground

public void setCurrentMonthDateForeground(nextapp.echo.Color currentMonthDateForeground)
Parameters:
currentMonthDateForeground -

getDayColumnHeaderBackground

public nextapp.echo.Color getDayColumnHeaderBackground()

setDayColumnHeaderBackground

public void setDayColumnHeaderBackground(nextapp.echo.Color dayColumnHeaderBackground)
Parameters:
dayColumnHeaderBackground -

getDayColumnHeaderForeground

public nextapp.echo.Color getDayColumnHeaderForeground()

setDayColumnHeaderForeground

public void setDayColumnHeaderForeground(nextapp.echo.Color dayColumnHeaderForeground)
Parameters:
dayColumnHeaderForeground -

getOtherMonthDateBackground

public nextapp.echo.Color getOtherMonthDateBackground()

setOtherMonthDateBackground

public void setOtherMonthDateBackground(nextapp.echo.Color otherMonthDateBackground)
Parameters:
otherMonthDateBackground -

getOtherMonthDateForeground

public nextapp.echo.Color getOtherMonthDateForeground()

setOtherMonthDateForeground

public void setOtherMonthDateForeground(nextapp.echo.Color otherMonthDateForeground)
Parameters:
otherMonthDateForeground -

getTodayTextBackground

public nextapp.echo.Color getTodayTextBackground()

setTodayTextBackground

public void setTodayTextBackground(nextapp.echo.Color todayTextBackground)
Parameters:
todayTextBackground -

getTodayTextForeground

public nextapp.echo.Color getTodayTextForeground()

setTodayTextForeground

public void setTodayTextForeground(nextapp.echo.Color todayTextForeground)
Parameters:
todayTextForeground -

getTopLineForeground

public nextapp.echo.Color getTopLineForeground()

setTopLineForeground

public void setTopLineForeground(nextapp.echo.Color topLineForeground)
Parameters:
topLineForeground -

getBottomLineForeground

public nextapp.echo.Color getBottomLineForeground()

setBottomLineForeground

public void setBottomLineForeground(nextapp.echo.Color bottomLineForeground)
Parameters:
bottomLineForeground -

setInvalidColor

public void setInvalidColor(nextapp.echo.Color invalidColor)

getInvalidColor

public nextapp.echo.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(nextapp.echo.Style style)
Description copied from interface: Borderable
This will apply the borderColor, borderWidth and borderStyle properties first followed by the left, top, right and bottom borer properties.

Specified by:
applyStyle in interface Borderable
Overrides:
applyStyle in class TextField
See Also:
TextField.applyStyle(nextapp.echo.Style)

getLocale

public java.util.Locale getLocale()
Description copied from interface: Validateable
Returns the locale to use with this Validateable.

Specified by:
getLocale in interface Validateable

setLocale

public void setLocale(java.util.Locale locale)

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
Throws:
java.lang.Exception
See Also:
ReflectionSetter.set(Field, Object)

EchoPoint
1.0