|
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.Container echopoint.EchoPointComponent echopoint.DatePicker
The DatePicker class can be used to navigate dates and select a specified date.
The class uses the CalendarSelectionModel
interface to keep
track of the currently selected date. If no calendar is provided on the
the constructor, then todays date is used.
The control consists of three sections, the top level navigation section, the calendar section
and the selection sections. You can use the relevant accessor to set/get properties that
control the apperance of each section.
Nested Class Summary | |
static class |
DatePicker.NestedStyleInfo
Nested public static StyleInfo class. |
Field Summary | |
static java.lang.String |
BORDER_COLOR_CHANGED_PROPERTY
|
static java.lang.String |
BORDER_SIZE_CHANGED_PROPERTY
|
static java.lang.String |
CALENDAR_BACKGROUND_CHANGED_PROPERTY
|
static java.lang.String |
CALENDAR_BACKGROUND_SELECTED_CHANGED_PROPERTY
|
static java.lang.String |
CALENDAR_FONT_CHANGED_PROPERTY
Property Names |
static java.lang.String |
CALENDAR_FONT_SELECTED_CHANGED_PROPERTY
|
static java.lang.String |
CALENDAR_FOREGROUND_CHANGED_PROPERTY
|
static java.lang.String |
CALENDAR_FOREGROUND_SELECTED_CHANGED_PROPERTY
|
static java.lang.String |
CALENDAR_NONMONTH_FOREGROUND_CHANGED_PROPERTY
|
static java.lang.String |
CALENDAR_ROLLOVER_BACKGROUND_CHANGED_PROPERTY
|
static java.lang.String |
CALENDAR_ROLLOVER_FOREGROUND_CHANGED_PROPERTY
|
static int |
CLR_SCHEME_BW
|
static int |
CLR_SCHEME_COLOR
|
static int |
CLR_SCHEME_DEFAULT
|
static java.lang.String |
COLOR_SCHEME_CHANGED_PROPERTY
|
static nextapp.echo.Font |
defaultCalendarFont
|
static nextapp.echo.Font |
defaultNavigationFont
|
static nextapp.echo.Font |
defaultSelectedFont
|
static java.lang.String |
DOW_NAME_LENGTH_PROPERTY_CHANGED
|
static java.lang.String |
LOCALE_CHANGED_PROPERTY
|
static java.lang.String |
MODEL_CHANGED_PROPERTY
|
static java.lang.String |
MONTH_NAME_LENGTH_PROPERTY_CHANGED
|
static java.lang.String |
NAVIGATION_ARROWS_CHANGED_PROPERTY
|
static java.lang.String |
NAVIGATION_BACKGROUND_CHANGED_PROPERTY
|
static java.lang.String |
NAVIGATION_FONT_CHANGED_PROPERTY
|
static java.lang.String |
NAVIGATION_FOREGROUND_CHANGED_PROPERTY
|
static java.lang.String |
NAVIGATION_ROLLOVER_BACKGROUND_CHANGED_PROPERTY
|
static java.lang.String |
NAVIGATION_ROLLOVER_FOREGROUND_CHANGED_PROPERTY
|
static java.lang.String |
SELECTABLE_MONTH_CHANGED_PROPERTY
|
static java.lang.String |
SELECTABLE_YEAR__CHANGED_PROPERTY
|
static java.lang.String |
SELECTED_BACKGROUND_CHANGED_PROPERTY
|
static java.lang.String |
SELECTED_FONT_CHANGED_PROPERTY
|
static java.lang.String |
SELECTED_FOREGROUND_CHANGED_PROPERTY
|
static java.lang.String |
SELECTED_ROLLOVER_BACKGROUND_CHANGED_PROPERTY
|
static java.lang.String |
SELECTED_ROLLOVER_FOREGROUND_CHANGED_PROPERTY
|
static java.lang.String |
SELECTION_DISPLAYBAR_CHANGED_PROPERTY
|
static java.lang.String |
STYLE_BORDER_COLOR
A style constant for the Border Color property. |
static java.lang.String |
STYLE_BORDER_SIZE
A style constant for the Border Size property. |
static java.lang.String |
STYLE_CALENDAR_BACKGROUND
A style constant for the Calendar Background property. |
static java.lang.String |
STYLE_CALENDAR_FONT
A style constant for the Calendar Font property. |
static java.lang.String |
STYLE_CALENDAR_FOREGROUND
A style constant for the Calendar Foreground property. |
static java.lang.String |
STYLE_CALENDAR_NON_MONTH_FOREGROUND
A style constant for the Calendar Non Month Foreground property. |
static java.lang.String |
STYLE_CALENDAR_ROLLOVER_BACKGROUND
A style constant for the Calendar Rollover Background property. |
static java.lang.String |
STYLE_CALENDAR_ROLLOVER_FOREGROUND
A style constant for the Calendar Rollover Foreground property. |
static java.lang.String |
STYLE_CALENDAR_SELECTED_BACKGROUND
A style constant for the Calendar Selected Background property. |
static java.lang.String |
STYLE_CALENDAR_SELECTED_FONT
A style constant for the Calendar Selected Font property. |
static java.lang.String |
STYLE_CALENDAR_SELECTED_FOREGROUND
A style constant for the Calendar Selected Foreground property. |
static java.lang.String |
STYLE_DOW_NAME_LENGTH
A style constant for the Day of the Week Name Length property. |
static java.lang.String |
STYLE_MONTH_NAME_LENGTH
A style constant for the Month Name Length property. |
static java.lang.String |
STYLE_MONTH_SELECTABLE
A style constant for the Month Selectable property. |
static java.lang.String |
STYLE_NAVIGATION_ARROWS
A style constant for the Navigation Arrows property. |
static java.lang.String |
STYLE_NAVIGATION_BACKGROUND
A style constant for the Navigation Background property. |
static java.lang.String |
STYLE_NAVIGATION_FONT
A style constant for the Navigation Font property. |
static java.lang.String |
STYLE_NAVIGATION_FOREGROUND
A style constant for the Navigation Foreground property. |
static java.lang.String |
STYLE_NAVIGATION_ROLLOVER_BACKGROUND
A style constant for the Navigation Rollover Background property. |
static java.lang.String |
STYLE_NAVIGATION_ROLLOVER_FOREGROUND
A style constant for the Navigation Rollover Foreground property. |
static java.lang.String |
STYLE_SELECTED_BACKGROUND
A style constant for the Selected Background property. |
static java.lang.String |
STYLE_SELECTED_FONT
A style constant for the Selected Font property. |
static java.lang.String |
STYLE_SELECTED_FOREGROUND
A style constant for the Selected Foreground property. |
static java.lang.String |
STYLE_SELECTED_ROLLOVER_BACKGROUND
A style constant for the Selected Rollover Background property. |
static java.lang.String |
STYLE_SELECTED_ROLLOVER_FOREGROUND
A style constant for the Selected Rollover Foreground property. |
static java.lang.String |
STYLE_SELECTION_DISPLAYBAR
A style constant for the SelectionDisplayBar property. |
static java.lang.String |
STYLE_TOOL_TIP_TEXT
A style constant for the ToolTipText property. |
static java.lang.String |
STYLE_WEEK_NUMBER_ABBREVIATION
A style constant for the WeekNumber property. |
static java.lang.String |
STYLE_YEAR_RANGE
A style constant for the Year Range property. |
static java.lang.String |
STYLE_YEAR_SELECTABLE
A style constant for the Year Selectable property. |
static java.lang.String |
WEEK_NUMBER_ABBREVIATION_CHANGED_PROPERTY
|
static java.lang.String |
YEAR_RANGE_CHANGED_PROPERTY
static style "name to value class" mapping array |
Fields inherited from class echopoint.EchoPointComponent |
TOOL_TIP_TEXT_CHANGED_PROPERTY, toolTipPopUp |
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, 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 |
Constructor Summary | |
DatePicker()
Constructs a DatePicker with the currently selected date
set to right now. |
|
DatePicker(java.util.Calendar newSelectedDate)
Constructs a DatePicker with the currently selected date
set to the one provided. |
|
DatePicker(java.util.Calendar newSelectedDate,
java.util.Locale locale)
Constructs a DatePicker with the currently selected date
set to the one provided and a the specified Locale. |
Method Summary | |
void |
addChangeListener(nextapp.echo.event.ChangeListener l)
Adds a ChangeListener to the date picker. |
void |
applyStyle(nextapp.echo.Style style)
Applies the provided style to the component. |
protected void |
buildColorScheme(int colorScheme)
Builds the default Color scheme |
static java.util.Calendar |
calendarClearTimePortion(java.util.Calendar cal)
Clears a calendar of its time portion |
static java.util.Calendar |
calendarCopy(java.util.Calendar cal,
java.util.Locale locale)
Copys the values of one calendar into another, always clearing the time portion of the new calendar |
nextapp.echo.Color |
getBorderColor()
|
int |
getBorderSize()
|
nextapp.echo.Color |
getCalendarBackground()
|
nextapp.echo.Font |
getCalendarFont()
|
nextapp.echo.Color |
getCalendarForeground()
|
nextapp.echo.Color |
getCalendarNonMonthForeground()
|
nextapp.echo.Color |
getCalendarRollOverBackground()
|
nextapp.echo.Color |
getCalendarRollOverForeground()
|
nextapp.echo.Color |
getCalendarSelectedBackground()
|
nextapp.echo.Font |
getCalendarSelectedFont()
|
nextapp.echo.Color |
getCalendarSelectedForeground()
|
int |
getColorScheme()
|
java.util.Calendar |
getDisplayedDate()
|
int |
getDowNameLength()
Gets the length of the day of the week names when displayed. |
java.util.Locale |
getLocale()
Returns the Locale used by the DatePicker for formatting dates |
CalendarSelectionModel |
getModel()
|
int |
getMonthNameLength()
Gets the length of the month names when displayed. |
nextapp.echo.Color |
getNavigationBackground()
|
nextapp.echo.Font |
getNavigationFont()
|
nextapp.echo.Color |
getNavigationForeground()
|
nextapp.echo.Color |
getNavigationRollOverBackground()
|
nextapp.echo.Color |
getNavigationRollOverForeground()
|
nextapp.echo.Color |
getSelectedBackground()
|
java.util.Calendar |
getSelectedDate()
|
nextapp.echo.Font |
getSelectedFont()
|
nextapp.echo.Color |
getSelectedForeground()
|
nextapp.echo.Color |
getSelectedRollOverBackground()
|
nextapp.echo.Color |
getSelectedRollOverForeground()
|
java.lang.String |
getWeekNumberAbbreviation()
Returns String for weekNumberAbbreviation (WN) |
int |
getYearRange()
Returns the number of years that will appear in the selectable Year field. |
boolean |
isMonthSelectable()
Returns true if the Month display is selectable |
boolean |
isNavigationArrowsVisible()
Returns true if the NavigationsArrows are visible |
boolean |
isSelectionDisplayBarVisible()
Returns true if the SelectionDisplayBar is visible |
boolean |
isYearSelectable()
Returns true if the Year display is selectable. |
void |
removeChangeListener(nextapp.echo.event.ChangeListener l)
Removes a ChangeListener from this component. |
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 |
setBorderColor(nextapp.echo.Color newBorderColor)
Sets the Color of the DatePicker's border
This methods fires a PropertyChangeEvent with a
getPropertyName() value of
DatePicker.BORDER_COLOR_CHANGED_PROPERTY |
void |
setBorderSize(int newBorderSize)
Sets the size of the DatePicker's border
This methods fires a PropertyChangeEvent with a
getPropertyName() value of
DatePicker.BORDER_SIZE_CHANGED_PROPERTY |
void |
setCalendarBackground(nextapp.echo.Color newCalendarBackground)
Sets the background Color of the DatePicker's calendar area.
|
void |
setCalendarFont(nextapp.echo.Font newCalendarFont)
Sets the background Font of the DatePicker's calendar area.
|
void |
setCalendarForeground(nextapp.echo.Color newCalendarForeground)
Sets the foreground Color of the DatePicker's calendar area.
|
void |
setCalendarNonMonthForeground(nextapp.echo.Color newCalendarNonMonthForeground)
Sets the foreground Color of days that are not
within the currently displayed date of
the DatePicker's calendar area.
|
void |
setCalendarRollOverBackground(nextapp.echo.Color newCalendarRollOverBackground)
Sets the rollover background Color of the DatePicker's calendar area.
|
void |
setCalendarRollOverForeground(nextapp.echo.Color newCalendarRollOverForeground)
Sets the rollover foreground Color of the DatePicker's calendar area.
|
void |
setCalendarSelectedBackground(nextapp.echo.Color newCalendarBackground)
Sets the background Color of the selected date in the DatePicker's calendar area.
|
void |
setCalendarSelectedFont(nextapp.echo.Font newFont)
Sets the foreground Color of the selected date in the DatePicker's calendar area.
|
void |
setCalendarSelectedForeground(nextapp.echo.Color newCalendarForeground)
Sets the foreground Color of the selected date in the DatePicker's calendar area.
|
void |
setColorScheme(int newColorScheme)
Sets the color scheme in use within the DatePicker
This methods fires a PropertyChangeEvent with a
getPropertyName() value of
DatePicker.COLOR_SCHEME_CHANGED_PROPERTY |
void |
setDisplayedDate(java.util.Calendar newDisplayedDate)
Sets the currently displayed date within the DatePicker
This methods causes the underlying CalendarSelectionModel to
change. |
void |
setDowNameLength(int newValue)
Sets the length of the day of the week names when displayed. |
void |
setLocale(java.util.Locale newLocale)
Sets the Locale used by the DatePicker for formatting dates |
void |
setModel(CalendarSelectionModel newModel)
Sets a new CalendarSelectionModel model into the DatePicker
This methods fires a PropertyChangeEvent with a
getPropertyName() value of
DatePicker.MODEL_CHANGED_PROPERTY |
void |
setMonthNameLength(int newValue)
Sets the length of the month names when displayed. |
void |
setMonthSelectable(boolean newMonthSelectable)
Sets whether the Month field is selectable by the user. |
void |
setNavigationArrowsVisible(boolean newVisible)
Sets whether the NavigationArrows are visible This methods fires a PropertyChangeEvent with a
getPropertyName() value of
DatePicker.NAVIGATION_ARROWS_CHANGED_PROPERTY |
void |
setNavigationBackground(nextapp.echo.Color newNavigationBackground)
Sets the background Color of the DatePicker's navigation area.
|
void |
setNavigationFont(nextapp.echo.Font newNavigationFont)
Sets the background Font of the DatePicker's navigation area.
|
void |
setNavigationForeground(nextapp.echo.Color newNavigationForeground)
Sets the foreground Color of the DatePicker's navigation area.
|
void |
setNavigationRollOverBackground(nextapp.echo.Color newNavigationRollOverBackground)
Sets the rollover background Color of the DatePicker's navigation area.
|
void |
setNavigationRollOverForeground(nextapp.echo.Color newNavigationRollOverForeground)
Sets the rollover foreground Color of the DatePicker's navigation area.
|
void |
setSelectedBackground(nextapp.echo.Color newSelectedBackground)
Sets the background Color of the DatePicker's selected area.
|
void |
setSelectedDate(java.util.Calendar newSelectedDate)
Sets the currently selected date within the DatePicker
This methods causes the underlying CalendarSelectionModel to
change. |
void |
setSelectedFont(nextapp.echo.Font newSelectedFont)
Sets the Font of the DatePicker's selected area.
|
void |
setSelectedForeground(nextapp.echo.Color newSelectedForeground)
Sets the foreground Color of the DatePicker's selected area.
|
void |
setSelectedRollOverBackground(nextapp.echo.Color newSelectedRollOverBackground)
Sets the rollover background Color of the DatePicker's selected area.
|
void |
setSelectedRollOverForeground(nextapp.echo.Color newSelectedRollOverForeground)
Sets the rollover foreground Color of the DatePicker's selected area.
|
void |
setSelectionDisplayBarVisible(boolean newVisible)
Sets whether the SelectionDisplayBar is visible This methods fires a PropertyChangeEvent with a
getPropertyName() value of
DatePicker.SELECTION_DISPLAYBAR_CHANGED_PROPERTY |
void |
setWeekNumberAbbreviation(java.lang.String abbreviation)
Sets weekNumberAbbreviation This methods fires a PropertyChangeEvent with a
getPropertyName() value of
DatePicker.WEEK_NUMBER_ABBREVIATION_CHANGED_PROPERTY |
void |
setYearRange(int newYearRange)
Returns the number of years that will appear in the selectable Year field. |
void |
setYearSelectable(boolean newYearSelectable)
Sets whether the Year field is selectable by the user. |
Methods inherited from class echopoint.EchoPointComponent |
getMouseCursor, getMouseCursorURI, getToolTipPopUp, getToolTipText, set, set, set, set, set, set, set, set, set, setEnabledAllChildren, setMouseCursor, setMouseCursorURI, setToolTipText, validate |
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 |
Field Detail |
public static final java.lang.String BORDER_COLOR_CHANGED_PROPERTY
public static final java.lang.String BORDER_SIZE_CHANGED_PROPERTY
public static final java.lang.String CALENDAR_BACKGROUND_CHANGED_PROPERTY
public static final java.lang.String CALENDAR_BACKGROUND_SELECTED_CHANGED_PROPERTY
public static final java.lang.String CALENDAR_FONT_CHANGED_PROPERTY
public static final java.lang.String CALENDAR_FOREGROUND_CHANGED_PROPERTY
public static final java.lang.String CALENDAR_FOREGROUND_SELECTED_CHANGED_PROPERTY
public static final java.lang.String CALENDAR_FONT_SELECTED_CHANGED_PROPERTY
public static final java.lang.String CALENDAR_NONMONTH_FOREGROUND_CHANGED_PROPERTY
public static final java.lang.String CALENDAR_ROLLOVER_BACKGROUND_CHANGED_PROPERTY
public static final java.lang.String CALENDAR_ROLLOVER_FOREGROUND_CHANGED_PROPERTY
public static final int CLR_SCHEME_BW
public static final int CLR_SCHEME_COLOR
public static final int CLR_SCHEME_DEFAULT
public static final java.lang.String COLOR_SCHEME_CHANGED_PROPERTY
public static nextapp.echo.Font defaultCalendarFont
public static nextapp.echo.Font defaultNavigationFont
public static nextapp.echo.Font defaultSelectedFont
public static final java.lang.String DOW_NAME_LENGTH_PROPERTY_CHANGED
public static final java.lang.String MONTH_NAME_LENGTH_PROPERTY_CHANGED
public static final java.lang.String LOCALE_CHANGED_PROPERTY
public static final java.lang.String MODEL_CHANGED_PROPERTY
public static final java.lang.String NAVIGATION_BACKGROUND_CHANGED_PROPERTY
public static final java.lang.String NAVIGATION_FONT_CHANGED_PROPERTY
public static final java.lang.String NAVIGATION_FOREGROUND_CHANGED_PROPERTY
public static final java.lang.String NAVIGATION_ROLLOVER_BACKGROUND_CHANGED_PROPERTY
public static final java.lang.String NAVIGATION_ROLLOVER_FOREGROUND_CHANGED_PROPERTY
public static final java.lang.String NAVIGATION_ARROWS_CHANGED_PROPERTY
public static final java.lang.String SELECTABLE_MONTH_CHANGED_PROPERTY
public static final java.lang.String SELECTABLE_YEAR__CHANGED_PROPERTY
public static final java.lang.String SELECTED_BACKGROUND_CHANGED_PROPERTY
public static final java.lang.String SELECTED_FONT_CHANGED_PROPERTY
public static final java.lang.String SELECTED_FOREGROUND_CHANGED_PROPERTY
public static final java.lang.String SELECTED_ROLLOVER_BACKGROUND_CHANGED_PROPERTY
public static final java.lang.String SELECTED_ROLLOVER_FOREGROUND_CHANGED_PROPERTY
public static final java.lang.String SELECTION_DISPLAYBAR_CHANGED_PROPERTY
public static final java.lang.String WEEK_NUMBER_ABBREVIATION_CHANGED_PROPERTY
public static final java.lang.String STYLE_BORDER_COLOR
nextapp.echo.Color.
public static final java.lang.String STYLE_BORDER_SIZE
Integer.
public static final java.lang.String STYLE_CALENDAR_BACKGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_CALENDAR_FONT
nextapp.echo.Font.
public static final java.lang.String STYLE_CALENDAR_FOREGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_CALENDAR_NON_MONTH_FOREGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_CALENDAR_ROLLOVER_BACKGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_CALENDAR_ROLLOVER_FOREGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_CALENDAR_SELECTED_BACKGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_CALENDAR_SELECTED_FOREGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_CALENDAR_SELECTED_FONT
nextapp.echo.Font.
public static final java.lang.String STYLE_DOW_NAME_LENGTH
Integer.
public static final java.lang.String STYLE_MONTH_NAME_LENGTH
Integer.
public static final java.lang.String STYLE_MONTH_SELECTABLE
boolean
public static final java.lang.String STYLE_NAVIGATION_BACKGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_NAVIGATION_FONT
nextapp.echo.Font.
public static final java.lang.String STYLE_NAVIGATION_FOREGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_NAVIGATION_ROLLOVER_BACKGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_NAVIGATION_ROLLOVER_FOREGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_NAVIGATION_ARROWS
boolean
public static final java.lang.String STYLE_SELECTED_BACKGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_SELECTED_FONT
nextapp.echo.Font.
public static final java.lang.String STYLE_SELECTED_FOREGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_SELECTED_ROLLOVER_BACKGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_SELECTED_ROLLOVER_FOREGROUND
nextapp.echo.Color.
public static final java.lang.String STYLE_TOOL_TIP_TEXT
String
public static final java.lang.String STYLE_YEAR_RANGE
int
public static final java.lang.String STYLE_YEAR_SELECTABLE
boolean
public static final java.lang.String STYLE_SELECTION_DISPLAYBAR
boolean
public static final java.lang.String STYLE_WEEK_NUMBER_ABBREVIATION
String
public static final java.lang.String YEAR_RANGE_CHANGED_PROPERTY
Constructor Detail |
public DatePicker()
DatePicker
with the currently selected date
set to right now.
public DatePicker(java.util.Calendar newSelectedDate)
DatePicker
with the currently selected date
set to the one provided.
public DatePicker(java.util.Calendar newSelectedDate, java.util.Locale locale)
DatePicker
with the currently selected date
set to the one provided and a the specified Locale.
Method Detail |
public static java.util.Calendar calendarClearTimePortion(java.util.Calendar cal)
public static java.util.Calendar calendarCopy(java.util.Calendar cal, java.util.Locale locale)
public void addChangeListener(nextapp.echo.event.ChangeListener l)
ChangeListener
to the date picker.
l
- The ChangeListener
to be added.public void applyStyle(nextapp.echo.Style style)
nextapp.echo.Component
style names can be used as well.
applyStyle
in interface MouseCursorable
applyStyle
in class EchoPointComponent
Component.applyStyle(nextapp.echo.Style)
protected void buildColorScheme(int colorScheme)
public nextapp.echo.Color getBorderColor()
Color
of the DatePicker's
border.public int getBorderSize()
DatePicker's
border.public nextapp.echo.Color getCalendarBackground()
Color
of the DatePicker's
calendar area.public nextapp.echo.Font getCalendarFont()
Font
of the DatePicker's
calendar area.public nextapp.echo.Color getCalendarForeground()
Color
of the DatePicker's
calendar area.public nextapp.echo.Color getCalendarNonMonthForeground()
Color
of days that are not within the
the displayed month.public nextapp.echo.Color getCalendarRollOverBackground()
Color
of the DatePicker's
calendar area.public nextapp.echo.Color getCalendarRollOverForeground()
Color
of the DatePicker's
calendar area.public nextapp.echo.Color getCalendarSelectedBackground()
Color
of the selected date in the DatePicker's
calendar area.public nextapp.echo.Color getCalendarSelectedForeground()
Color
of the selected date in theDatePicker's
calendar area.public nextapp.echo.Font getCalendarSelectedFont()
DatePicker's
calendar area.public int getColorScheme()
public java.util.Calendar getDisplayedDate()
public int getDowNameLength()
ie. 4=Mond, 3=Mon, 2=Mo, 1=M
The default is 3.
public int getMonthNameLength()
ie. 10=September, 4=Sept, 3=Sep, 1=S
The default is 3.
public java.util.Locale getLocale()
public CalendarSelectionModel getModel()
CalendarSelectionModel
currently used by the DatePicker's
.public nextapp.echo.Color getNavigationBackground()
Color
of the DatePicker's
navigation area.public nextapp.echo.Font getNavigationFont()
Font
of the DatePicker's
navigation area.public nextapp.echo.Color getNavigationForeground()
Color
of the DatePicker's
navigation area.public nextapp.echo.Color getNavigationRollOverBackground()
Color
of the DatePicker's
navigation area.public nextapp.echo.Color getNavigationRollOverForeground()
Color
of the DatePicker's
navigation area.public nextapp.echo.Color getSelectedBackground()
Color
of the DatePicker's
selected area.public java.util.Calendar getSelectedDate()
public nextapp.echo.Font getSelectedFont()
Font
of the DatePicker's
selected area.public nextapp.echo.Color getSelectedForeground()
Color
of the DatePicker's
selected area.public nextapp.echo.Color getSelectedRollOverBackground()
Color
of the DatePicker's
selected area.public nextapp.echo.Color getSelectedRollOverForeground()
Color
of the DatePicker's
selected area.public int getYearRange()
public boolean isMonthSelectable()
public boolean isYearSelectable()
public boolean isSelectionDisplayBarVisible()
public boolean isNavigationArrowsVisible()
public java.lang.String getWeekNumberAbbreviation()
public void removeChangeListener(nextapp.echo.event.ChangeListener l)
l
- the ChangeListener to removepublic void setBorderColor(nextapp.echo.Color newBorderColor)
Color
of the DatePicker's
border
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.BORDER_COLOR_CHANGED_PROPERTY
public void setBorderSize(int newBorderSize)
DatePicker's
border
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.BORDER_SIZE_CHANGED_PROPERTY
public void setCalendarBackground(nextapp.echo.Color newCalendarBackground)
Color
of the DatePicker's
calendar area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.CALENDAR_BACKGROUND_CHANGED_PROPERTY
public void setCalendarFont(nextapp.echo.Font newCalendarFont)
Font
of the DatePicker's
calendar area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.CALENDAR_FONT_CHANGED_PROPERTY
public void setCalendarForeground(nextapp.echo.Color newCalendarForeground)
Color
of the DatePicker's
calendar area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.CALENDAR_FOREGROUND_CHANGED_PROPERTY
public void setCalendarNonMonthForeground(nextapp.echo.Color newCalendarNonMonthForeground)
Color
of days that are not
within the currently displayed date of
the DatePicker's
calendar area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.CALENDAR_NONMONTH_FOREGROUND_CHANGED_PROPERTY
public void setCalendarRollOverBackground(nextapp.echo.Color newCalendarRollOverBackground)
Color
of the DatePicker's
calendar area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.CALENDAR_ROLLOVER_BACKGROUND_CHANGED_PROPERTY
public void setCalendarRollOverForeground(nextapp.echo.Color newCalendarRollOverForeground)
Color
of the DatePicker's
calendar area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.CALENDAR_ROLLOVER_FOREGROUND_CHANGED_PROPERTY
public void setCalendarSelectedBackground(nextapp.echo.Color newCalendarBackground)
Color
of the selected date in the DatePicker's
calendar area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.CALENDAR_BACKGROUND_SELECTED_CHANGED_PROPERTY
public void setCalendarSelectedForeground(nextapp.echo.Color newCalendarForeground)
Color
of the selected date in the DatePicker's
calendar area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.CALENDAR_FOREGROUND_SELECTED_CHANGED_PROPERTY
public void setCalendarSelectedFont(nextapp.echo.Font newFont)
Color
of the selected date in the DatePicker's
calendar area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.CALENDAR_FOREGROUND_SELECTED_CHANGED_PROPERTY
public void setColorScheme(int newColorScheme)
DatePicker
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.COLOR_SCHEME_CHANGED_PROPERTY
public void setDisplayedDate(java.util.Calendar newDisplayedDate)
DatePicker
CalendarSelectionModel
to
change.
public void setDowNameLength(int newValue)
ie. 4=Mond, 3=Mon, 2=Mo, 1=M
The default is 3.
newValue
- - the maximum length of the day of the week namespublic void setMonthNameLength(int newValue)
ie. 10=September, 4=Sept, 3=Sep, 1=S
The default is 3.
newValue
- - the maximum length of the month namespublic void setLocale(java.util.Locale newLocale)
newLocale
- java.util.Localepublic void setModel(CalendarSelectionModel newModel)
CalendarSelectionModel
model into the DatePicker
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.MODEL_CHANGED_PROPERTY
public void setMonthSelectable(boolean newMonthSelectable)
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.SELECTABLE_MONTH__CHANGED_PROPERTY
newMonthSelectable
- booleanpublic void setNavigationBackground(nextapp.echo.Color newNavigationBackground)
Color
of the DatePicker's
navigation area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.NAVIGATION_BACKGROUND_CHANGED_PROPERTY
public void setNavigationFont(nextapp.echo.Font newNavigationFont)
Font
of the DatePicker's
navigation area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.NAVIGATION_FONT_CHANGED_PROPERTY
public void setNavigationForeground(nextapp.echo.Color newNavigationForeground)
Color
of the DatePicker's
navigation area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.NAVIGATION_FOREGROUND_CHANGED_PROPERTY
public void setNavigationRollOverBackground(nextapp.echo.Color newNavigationRollOverBackground)
Color
of the DatePicker's
navigation area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.NAVIGATION_ROLLOVER_BACKGROUND_CHANGED_PROPERTY
public void setNavigationRollOverForeground(nextapp.echo.Color newNavigationRollOverForeground)
Color
of the DatePicker's
navigation area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.NAVIGATION_ROLLOVER_FOREGROUND_CHANGED_PROPERTY
public void setSelectedBackground(nextapp.echo.Color newSelectedBackground)
Color
of the DatePicker's
selected area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.SELECTED_BACKGROUND_CHANGED_PROPERTY
public void setSelectedDate(java.util.Calendar newSelectedDate)
DatePicker
CalendarSelectionModel
to
change.
public void setSelectedFont(nextapp.echo.Font newSelectedFont)
Font
of the DatePicker's
selected area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.SELECTED_FONT_CHANGED_PROPERTY
public void setSelectedForeground(nextapp.echo.Color newSelectedForeground)
Color
of the DatePicker's
selected area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.SELECTED_FOREGROUND_CHANGED_PROPERTY
public void setSelectedRollOverBackground(nextapp.echo.Color newSelectedRollOverBackground)
Color
of the DatePicker's
selected area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.SELECTED_ROLLOVER_BACKGROUND_CHANGED_PROPERTY
public void setSelectedRollOverForeground(nextapp.echo.Color newSelectedRollOverForeground)
Color
of the DatePicker's
selected area.
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.SELECTED_ROLLOVER_FOREGROUND_CHANGED_PROPERTY
public void setYearRange(int newYearRange)
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.YEAR_RANGE_CHANGED_PROPERTY
newYearRange
- intpublic void setYearSelectable(boolean newYearSelectable)
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.SELECTABLE_YEAR__CHANGED_PROPERTY
newYearSelectable
- booleanpublic void setSelectionDisplayBarVisible(boolean newVisible)
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.SELECTION_DISPLAYBAR_CHANGED_PROPERTY
newVisible
- booleanpublic void setNavigationArrowsVisible(boolean newVisible)
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.NAVIGATION_ARROWS_CHANGED_PROPERTY
newVisible
- booleanpublic void setWeekNumberAbbreviation(java.lang.String abbreviation)
PropertyChangeEvent
with a
getPropertyName()
value of
DatePicker.WEEK_NUMBER_ABBREVIATION_CHANGED_PROPERTY
abbreviation
- Stringpublic 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; }
field
- - the field to be setnewValue
- - the new value to be set
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 |