|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.Component nextapp.echo.text.TextComponent nextapp.echo.TextField echopoint.TextField echopoint.ClientDatePicker
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.
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 |
Nested Class Summary |
Nested classes inherited from class echopoint.positionable.Borderable |
Borderable.NestedStyleInfo |
Nested classes inherited from class echopoint.positionable.MouseCursorable |
MouseCursorable.NestedStyleInfo |
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.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 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 |
public static final java.lang.String INVALID_COLOR_PROPERTY
public static final java.lang.String BOTTOM_LINE_FOREGROUND_PROPERTY
public static final java.lang.String TOP_LINE_FOREGROUND_PROPERTY
public static final java.lang.String TODAY_TEXT_FOREGROUND_PROPERTY
public static final java.lang.String TODAY_TEXT_BACKGROUND_PROPERTY
public static final java.lang.String OTHER_MONTH_DATE_FOREGROUND_PROPERTY
public static final java.lang.String OTHER_MONTH_DATE_BACKGROUND_PROPERTY
public static final java.lang.String DAY_COLUMN_HEADER_FOREGROUND_PROPERTY
public static final java.lang.String DAY_COLUMN_HEADER_BACKGROUND_PROPERTY
public static final java.lang.String CURRENT_MONTH_DATE_FOREGROUND_PROPERTY
public static final java.lang.String CURRENT_MONTH_DATE_BACKGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_FOREGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_BACKGROUND_PROPERTY
public static final java.lang.String CALENDAR_FONT_PROPERTY
public static final java.lang.String YEAR_NAVIGATION_FOREGROUND_PROPERTY
public static final java.lang.String YEAR_NAVIGATION_BACKGROUND_PROPERTY
public static final java.lang.String MONTH_NAVIGATION_FOREGROUND_PROPERTY
public static final java.lang.String MONTH_NAVIGATION_BACKGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_BORDER_FOREGROUND_PROPERTY
public static final java.lang.String OTHER_MONTH_DATE_ROLLOVER_FOREGROUND_PROPERTY
public static final java.lang.String OTHER_MONTH_DATE_ROLLOVER_BACKGROUND_PROPERTY
public static final java.lang.String CURRENT_MONTH_DATE_ROLLOVER_FOREGROUND_PROPERTY
public static final java.lang.String CURRENT_MONTH_DATE_ROLLOVER_BACKGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_ROLLOVER_FOREGROUND_PROPERTY
public static final java.lang.String CURRENT_DATE_ROLLOVER_BACKGROUND_PROPERTY
public static final java.lang.String NAVIGATION_ROLLOVER_FOREGROUND_PROPERTY
public static final java.lang.String NAVIGATION_ROLLOVER_BACKGROUND_PROPERTY
public static final java.lang.String ICON_PROPERTY
public static final java.lang.String BUTTON_TEXT_PROPERTY
public static final java.lang.String BUTTON_RENDERING_PROPERTY
public static final java.lang.String DATE_FORMAT_PROPERTY
public static final java.lang.String OFFSET_Y_PROPERTY
public static final java.lang.String OFFSET_X_PROPERTY
public static final java.lang.String LOCALE_PROPERTY
public static final java.lang.String STYLE_INVALID_COLOR
public static final java.lang.String STYLE_BOTTOM_LINE_FOREGROUND
public static final java.lang.String STYLE_TOP_LINE_FOREGROUND
public static final java.lang.String STYLE_TODAY_TEXT_FOREGROUND
public static final java.lang.String STYLE_TODAY_TEXT_BACKGROUND
public static final java.lang.String STYLE_OTHER_MONTH_DATE_FOREGROUND
public static final java.lang.String STYLE_OTHER_MONTH_DATE_BACKGROUND
public static final java.lang.String STYLE_DAY_COLUMN_HEADER_FOREGROUND
public static final java.lang.String STYLE_DAY_COLUMN_HEADER_BACKGROUND
public static final java.lang.String STYLE_CURRENT_MONTH_DATE_FOREGROUND
public static final java.lang.String STYLE_CURRENT_MONTH_DATE_BACKGROUND
public static final java.lang.String STYLE_CURRENT_DATE_FOREGROUND
public static final java.lang.String STYLE_CURRENT_DATE_BACKGROUND
public static final java.lang.String STYLE_CALENDAR_FONT
public static final java.lang.String STYLE_YEAR_NAVIGATION_FOREGROUND
public static final java.lang.String STYLE_YEAR_NAVIGATION_BACKGROUND
public static final java.lang.String STYLE_MONTH_NAVIGATION_FOREGROUND
public static final java.lang.String STYLE_MONTH_NAVIGATION_BACKGROUND
public static final java.lang.String STYLE_CURRENT_DATE_BORDER_FOREGROUND
public static final java.lang.String STYLE_OTHER_MONTH_DATE_ROLLOVER_FOREGROUND
public static final java.lang.String STYLE_OTHER_MONTH_DATE_ROLLOVER_BACKGROUND
public static final java.lang.String STYLE_CURRENT_MONTH_DATE_ROLLOVER_FOREGROUND
public static final java.lang.String STYLE_CURRENT_MONTH_DATE_ROLLOVER_BACKGROUND
public static final java.lang.String STYLE_CURRENT_DATE_ROLLOVER_FOREGROUND
public static final java.lang.String STYLE_CURRENT_DATE_ROLLOVER_BACKGROUND
public static final java.lang.String STYLE_NAVIGATION_ROLLOVER_FOREGROUND
public static final java.lang.String STYLE_NAVIGATION_ROLLOVER_BACKGROUND
public static final java.lang.String STYLE_ICON
public static final java.lang.String STYLE_BUTTON_TEXT
public static final java.lang.String STYLE_BUTTON_RENDERING
public static final nextapp.echo.ImageReference DEFAULT_ICON
Constructor Detail |
public ClientDatePicker()
ClientDatePicker
public ClientDatePicker(int columns)
ClientDatePicker
that is columns wide.
public ClientDatePicker(java.util.Calendar date)
ClientDatePicker
with number
as the initial
Date value.
public ClientDatePicker(java.util.Calendar date, int columns)
ClientDatePicker
with number
as the initial
value and a given column size.
public ClientDatePicker(java.lang.String text)
ClientDatePicker
with text
as the initial
value.
public ClientDatePicker(java.lang.String text, int columns)
ClientDatePicker
with text
as the initial
value and that is columns
wide.
Method Detail |
public nextapp.echo.Color getNavigationRolloverBackground()
public void setNavigationRolloverBackground(nextapp.echo.Color navigationRolloverBackground)
navigationRolloverBackground
- public nextapp.echo.Color getNavigationRolloverForeground()
public void setNavigationRolloverForeground(nextapp.echo.Color navigationRolloverForeground)
navigationRolloverForeground
- public java.lang.String getButtonText()
public void setButtonText(java.lang.String buttonText)
buttonText
- public nextapp.echo.ImageReference getIcon()
public void setIcon(nextapp.echo.ImageReference icon)
icon
- public int getOffsetX()
public void setOffsetX(int offsetX)
offsetX
- public int getOffsetY()
public void setOffsetY(int offsetY)
offsetY
- public nextapp.echo.Color getCurrentDateRolloverBackground()
public void setCurrentDateRolloverBackground(nextapp.echo.Color currentDateRolloverBackground)
currentDateRolloverBackground
- public nextapp.echo.Color getCurrentDateRolloverForeground()
public void setCurrentDateRolloverForeground(nextapp.echo.Color currentDateRolloverForeground)
currentDateRolloverForeground
- public nextapp.echo.Color getCurrentMonthDateRolloverBackground()
public void setCurrentMonthDateRolloverBackground(nextapp.echo.Color currentMonthDateRolloverBackground)
currentMonthDateRolloverBackground
- public nextapp.echo.Color getCurrentMonthDateRolloverForeground()
public void setCurrentMonthDateRolloverForeground(nextapp.echo.Color currentMonthDateRolloverForeground)
currentMonthDateRolloverForeground
- public nextapp.echo.Color getOtherMonthDateRolloverBackground()
public void setOtherMonthDateRolloverBackground(nextapp.echo.Color otherMonthDateRolloverBackground)
otherMonthDateRolloverBackground
- public nextapp.echo.Color getOtherMonthDateRolloverForeground()
public void setOtherMonthDateRolloverForeground(nextapp.echo.Color otherMonthDateRolloverForeground)
otherMonthDateRolloverForeground
- public nextapp.echo.Color getCurrentDateBorderForeground()
public void setCurrentDateBorderForeground(nextapp.echo.Color currentDateBorderForeground)
currentDateBorderForeground
- public nextapp.echo.Color getMonthNavigationBackground()
public void setMonthNavigationBackground(nextapp.echo.Color monthNavigationBackground)
monthNavigationBackground
- public nextapp.echo.Color getMonthNavigationForeground()
public void setMonthNavigationForeground(nextapp.echo.Color monthNavigationForeground)
monthNavigationForeground
- public nextapp.echo.Color getYearNavigationBackground()
public void setYearNavigationBackground(nextapp.echo.Color yearNavigationBackground)
yearNavigationBackground
- public nextapp.echo.Color getYearNavigationForeground()
public void setYearNavigationForeground(nextapp.echo.Color yearNavigationForeground)
yearNavigationForeground
- public nextapp.echo.Font getCalendarFont()
public void setCalendarFont(nextapp.echo.Font calendarFont)
public nextapp.echo.Color getCurrentDateBackground()
public void setCurrentDateBackground(nextapp.echo.Color currentDateBackground)
public nextapp.echo.Color getCurrentDateForeground()
public void setCurrentDateForeground(nextapp.echo.Color currentDateForeground)
currentDateForeground
- public nextapp.echo.Color getCurrentMonthDateBackground()
public void setCurrentMonthDateBackground(nextapp.echo.Color currentMonthDateBackground)
currentMonthDateBackground
- public nextapp.echo.Color getCurrentMonthDateForeground()
public void setCurrentMonthDateForeground(nextapp.echo.Color currentMonthDateForeground)
currentMonthDateForeground
- public nextapp.echo.Color getDayColumnHeaderBackground()
public void setDayColumnHeaderBackground(nextapp.echo.Color dayColumnHeaderBackground)
dayColumnHeaderBackground
- public nextapp.echo.Color getDayColumnHeaderForeground()
public void setDayColumnHeaderForeground(nextapp.echo.Color dayColumnHeaderForeground)
dayColumnHeaderForeground
- public nextapp.echo.Color getOtherMonthDateBackground()
public void setOtherMonthDateBackground(nextapp.echo.Color otherMonthDateBackground)
otherMonthDateBackground
- public nextapp.echo.Color getOtherMonthDateForeground()
public void setOtherMonthDateForeground(nextapp.echo.Color otherMonthDateForeground)
otherMonthDateForeground
- public nextapp.echo.Color getTodayTextBackground()
public void setTodayTextBackground(nextapp.echo.Color todayTextBackground)
todayTextBackground
- public nextapp.echo.Color getTodayTextForeground()
public void setTodayTextForeground(nextapp.echo.Color todayTextForeground)
todayTextForeground
- public nextapp.echo.Color getTopLineForeground()
public void setTopLineForeground(nextapp.echo.Color topLineForeground)
topLineForeground
- public nextapp.echo.Color getBottomLineForeground()
public void setBottomLineForeground(nextapp.echo.Color bottomLineForeground)
bottomLineForeground
- public void setInvalidColor(nextapp.echo.Color invalidColor)
public nextapp.echo.Color getInvalidColor()
public java.util.Calendar getSelectedDate()
public void setSelectedDate(java.util.Calendar date)
date
- public void setDateFormat(java.text.SimpleDateFormat format)
format
- public java.text.SimpleDateFormat getDateFormat()
public boolean isValid()
public void applyStyle(nextapp.echo.Style style)
Borderable
applyStyle
in interface Borderable
applyStyle
in class TextField
TextField.applyStyle(nextapp.echo.Style)
public java.util.Locale getLocale()
Validateable
getLocale
in interface Validateable
public void setLocale(java.util.Locale locale)
public boolean isButtonRendering()
public void setButtonRendering(boolean buttonRendering)
protected void set(java.lang.Class clazz, java.lang.String propertyName, java.lang.Object arg)
public java.lang.Object set(java.lang.reflect.Field field, java.lang.Object newValue) throws java.lang.Exception
ReflectionSetter
public Object set(Field f, Object newValue) throws Exception { Object oldValue = f.get(this); f.set(this,newValue); return oldValue; }
set
in interface ReflectionSetter
set
in class TextField
java.lang.Exception
ReflectionSetter.set(Field, Object)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |