NextApp Echo3 Extras
v3.0.b4

nextapp.echo.extras.app
Class CalendarSelect

java.lang.Object
  extended by nextapp.echo.app.Component
      extended by nextapp.echo.extras.app.CalendarSelect
All Implemented Interfaces:
java.io.Serializable, nextapp.echo.app.RenderIdSupport

public class CalendarSelect
extends nextapp.echo.app.Component

CalendarSelect component: an input component which allows selection of a single date. Displays a representation of a calendar, showing the currently selected month/year. May not contain child components.

See Also:
Serialized Form

Field Summary
static java.lang.String DATE_CHANGED_PROPERTY
           
static java.lang.String PROPERTY_ADJACENT_MONTH_DATE_BACKGROUND
           
static java.lang.String PROPERTY_ADJACENT_MONTH_DATE_FOREGROUND
           
static java.lang.String PROPERTY_BACKGROUND_IMAGE
           
static java.lang.String PROPERTY_BORDER
           
static java.lang.String PROPERTY_DATE_BACKGROUND
           
static java.lang.String PROPERTY_DATE_BACKGROUND_IMAGE
           
static java.lang.String PROPERTY_DATE_BORDER
           
static java.lang.String PROPERTY_DATE_FOREGROUND
           
static java.lang.String PROPERTY_DAY_OF_WEEK_ABBREVIATION_LENGTH
           
static java.lang.String PROPERTY_HEADER_BACKGROUND
           
static java.lang.String PROPERTY_HEADER_BACKGROUND_IMAGE
           
static java.lang.String PROPERTY_HEADER_FOREGROUND
           
static java.lang.String PROPERTY_ROLLOVER_DATE_BACKGROUND
           
static java.lang.String PROPERTY_ROLLOVER_DATE_BACKGROUND_IMAGE
           
static java.lang.String PROPERTY_ROLLOVER_DATE_BORDER
           
static java.lang.String PROPERTY_ROLLOVER_DATE_FOREGROUND
           
static java.lang.String PROPERTY_SELECTED_DATE_BACKGROUND
           
static java.lang.String PROPERTY_SELECTED_DATE_BACKGROUND_IMAGE
           
static java.lang.String PROPERTY_SELECTED_DATE_BORDER
           
static java.lang.String PROPERTY_SELECTED_DATE_FOREGROUND
           
 
Fields inherited from class nextapp.echo.app.Component
CHILD_VISIBLE_CHANGED_PROPERTY, CHILDREN_CHANGED_PROPERTY, ENABLED_CHANGED_PROPERTY, FOCUS_TRAVERSAL_INDEX_CHANGED_PROPERTY, FOCUS_TRAVERSAL_PARTICIPANT_CHANGED_PROPERTY, LAYOUT_DIRECTION_CHANGED_PROPERTY, LOCALE_CHANGED_PROPERTY, PROPERTY_BACKGROUND, PROPERTY_FONT, PROPERTY_FOREGROUND, PROPERTY_LAYOUT_DATA, STYLE_CHANGED_PROPERTY, STYLE_NAME_CHANGED_PROPERTY, VISIBLE_CHANGED_PROPERTY
 
Constructor Summary
CalendarSelect()
          Creates a new CalendarSelect.
CalendarSelect(java.util.Date date)
          Creates a new CalendarSelect.
 
Method Summary
 nextapp.echo.app.Color getAdjacentMonthDateBackground()
          Returns the background color of dates in adjacent (previous/next) months.
 nextapp.echo.app.Color getAdjacentMonthDateForeground()
          Returns the foreground color of dates in adjacent (previous/next) months.
 nextapp.echo.app.FillImage getBackgroundImage()
          Returns the background image displayed within the entire component.
 nextapp.echo.app.Border getBorder()
          Returns the border surrounding the entire component.
 java.util.Date getDate()
          Returns the selected date.
 nextapp.echo.app.Color getDateBackground()
          Returns the default background color of date cells.
 nextapp.echo.app.FillImage getDateBackgroundImage()
          Returns the default background image of date cells.
 nextapp.echo.app.Border getDateBorder()
          Returns the default border of date cells.
 nextapp.echo.app.Color getDateForeground()
          Returns the default foreground color of date cells.
 nextapp.echo.app.Color getHeaderBackground()
          Returns the background color of the week header.
 nextapp.echo.app.FillImage getHeaderBackgroundImage()
          Returns the background image of the week header.
 nextapp.echo.app.Color getHeaderForeground()
          Returns the foreground color of the week header.
 nextapp.echo.app.Color getRolloverDateBackground()
          Returns the rollover background color of date cells.
 nextapp.echo.app.FillImage getRolloverDateBackgroundImage()
          Returns the rollover background image of date cells.
 nextapp.echo.app.Border getRolloverDateBorder()
          Returns the rollover border of date cells.
 nextapp.echo.app.Color getRolloverDateForeground()
          Returns the rollover foreground color of date cells.
 nextapp.echo.app.Color getSelectedDateBackground()
          Returns the background color of the selected date
 nextapp.echo.app.FillImage getSelectedDateBackgroundImage()
          Returns the background image of the selected date
 nextapp.echo.app.Border getSelectedDateBorder()
          Returns the border of the selected date
 nextapp.echo.app.Color getSelectedDateForeground()
          Returns the foreground color of the selected date
 void processInput(java.lang.String inputName, java.lang.Object inputValue)
           
 void setAdjacentMonthDateBackground(nextapp.echo.app.Color newValue)
          Sets the background color of dates in adjacent (previous/next) months.
 void setAdjacentMonthDateForeground(nextapp.echo.app.Color newValue)
          Sets the foreground color of dates in adjacent (previous/next) months.
 void setBackgroundImage(nextapp.echo.app.FillImage newValue)
          Sets the background image displayed within the entire component.
 void setBorder(nextapp.echo.app.Border newValue)
          Sets the border surrounding the entire component.
 void setDate(java.util.Date newValue)
          Sets the selected date.
 void setDateBackground(nextapp.echo.app.Color newValue)
          Sets the default background color of date cells.
 void setDateBackgroundImage(nextapp.echo.app.FillImage newValue)
          Sets the default background image of date cells.
 void setDateBorder(nextapp.echo.app.Border newValue)
          Sets the default border of date cells.
 void setDateForeground(nextapp.echo.app.Color newValue)
          Sets the default foreground color of date cells.
 void setHeaderBackground(nextapp.echo.app.Color newValue)
          Sets the background color of the week header.
 void setHeaderBackgroundImage(nextapp.echo.app.FillImage newValue)
          Sets the background image of the week header.
 void setHeaderForeground(nextapp.echo.app.Color newValue)
          Sets the foreground color of the week header.
 void setRolloverDateBackground(nextapp.echo.app.Color newValue)
          Sets the rollover background color of date cells.
 void setRolloverDateBackgroundImage(nextapp.echo.app.FillImage newValue)
          Sets the rollover background image of date cells.
 void setRolloverDateBorder(nextapp.echo.app.Border newValue)
          Sets the rollover border of date cells.
 void setRolloverDateForeground(nextapp.echo.app.Color newValue)
          Sets the rollover foreground color of date cells.
 void setSelectedDateBackground(nextapp.echo.app.Color newValue)
          Sets the background color of the selected date.
 void setSelectedDateBackgroundImage(nextapp.echo.app.FillImage newValue)
          Sets the background image of the selected date.
 void setSelectedDateBorder(nextapp.echo.app.Border newValue)
          Sets the border of the selected date.
 void setSelectedDateForeground(nextapp.echo.app.Color newValue)
          Sets the foreground color of the selected date.
 
Methods inherited from class nextapp.echo.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, get, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndex, getLayoutData, getLayoutDirection, getLocale, getLocalStyle, getParent, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLocale, getRenderProperty, getRenderProperty, getStyle, getStyleName, getVisibleComponent, getVisibleComponentCount, getVisibleComponents, hasEventListenerList, indexOf, init, isAncestorOf, isEnabled, isFocusTraversalParticipant, isRegistered, isRenderEnabled, isRenderVisible, isValidChild, isValidParent, isVisible, remove, remove, removeAll, removePropertyChangeListener, removePropertyChangeListener, set, setBackground, setComponents, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndex, setLayoutData, setLayoutDirection, setLocale, setRenderId, setStyle, setStyleName, setVisible, validate, verifyInput, visibleIndexOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATE_CHANGED_PROPERTY

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

PROPERTY_ADJACENT_MONTH_DATE_BACKGROUND

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

PROPERTY_ADJACENT_MONTH_DATE_FOREGROUND

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

PROPERTY_BORDER

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

PROPERTY_BACKGROUND_IMAGE

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

PROPERTY_DATE_BACKGROUND

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

PROPERTY_DATE_BACKGROUND_IMAGE

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

PROPERTY_DATE_BORDER

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

PROPERTY_DATE_FOREGROUND

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

PROPERTY_DAY_OF_WEEK_ABBREVIATION_LENGTH

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

PROPERTY_HEADER_BACKGROUND

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

PROPERTY_HEADER_BACKGROUND_IMAGE

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

PROPERTY_HEADER_FOREGROUND

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

PROPERTY_ROLLOVER_DATE_BACKGROUND

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

PROPERTY_ROLLOVER_DATE_BACKGROUND_IMAGE

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

PROPERTY_ROLLOVER_DATE_BORDER

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

PROPERTY_ROLLOVER_DATE_FOREGROUND

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

PROPERTY_SELECTED_DATE_BACKGROUND

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

PROPERTY_SELECTED_DATE_BORDER

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

PROPERTY_SELECTED_DATE_BACKGROUND_IMAGE

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

PROPERTY_SELECTED_DATE_FOREGROUND

public static final java.lang.String PROPERTY_SELECTED_DATE_FOREGROUND
See Also:
Constant Field Values
Constructor Detail

CalendarSelect

public CalendarSelect()
Creates a new CalendarSelect.


CalendarSelect

public CalendarSelect(java.util.Date date)
Creates a new CalendarSelect.

Parameters:
date - the initially selected date
Method Detail

getAdjacentMonthDateBackground

public nextapp.echo.app.Color getAdjacentMonthDateBackground()
Returns the background color of dates in adjacent (previous/next) months.

Returns:
the background

getAdjacentMonthDateForeground

public nextapp.echo.app.Color getAdjacentMonthDateForeground()
Returns the foreground color of dates in adjacent (previous/next) months.

Returns:
the foreground

getBackgroundImage

public nextapp.echo.app.FillImage getBackgroundImage()
Returns the background image displayed within the entire component.

Returns:
the background image

getBorder

public nextapp.echo.app.Border getBorder()
Returns the border surrounding the entire component.

Returns:
the border

getDate

public java.util.Date getDate()
Returns the selected date.

Returns:
the selected date

getDateBackground

public nextapp.echo.app.Color getDateBackground()
Returns the default background color of date cells.

Returns:
the background

getDateBackgroundImage

public nextapp.echo.app.FillImage getDateBackgroundImage()
Returns the default background image of date cells.

Returns:
the background image

getDateBorder

public nextapp.echo.app.Border getDateBorder()
Returns the default border of date cells.

Returns:
the border

getDateForeground

public nextapp.echo.app.Color getDateForeground()
Returns the default foreground color of date cells.

Returns:
the foreground

getHeaderBackground

public nextapp.echo.app.Color getHeaderBackground()
Returns the background color of the week header.

Returns:
the background

getHeaderBackgroundImage

public nextapp.echo.app.FillImage getHeaderBackgroundImage()
Returns the background image of the week header.

Returns:
the background image

getHeaderForeground

public nextapp.echo.app.Color getHeaderForeground()
Returns the foreground color of the week header.

Returns:
the foreground

getRolloverDateBackground

public nextapp.echo.app.Color getRolloverDateBackground()
Returns the rollover background color of date cells.

Returns:
the background

getRolloverDateBackgroundImage

public nextapp.echo.app.FillImage getRolloverDateBackgroundImage()
Returns the rollover background image of date cells.

Returns:
the background image

getRolloverDateBorder

public nextapp.echo.app.Border getRolloverDateBorder()
Returns the rollover border of date cells.

Returns:
the border

getRolloverDateForeground

public nextapp.echo.app.Color getRolloverDateForeground()
Returns the rollover foreground color of date cells.

Returns:
the foreground

getSelectedDateBackground

public nextapp.echo.app.Color getSelectedDateBackground()
Returns the background color of the selected date

Returns:
the background

getSelectedDateBackgroundImage

public nextapp.echo.app.FillImage getSelectedDateBackgroundImage()
Returns the background image of the selected date

Returns:
the background image

getSelectedDateBorder

public nextapp.echo.app.Border getSelectedDateBorder()
Returns the border of the selected date

Returns:
the border

getSelectedDateForeground

public nextapp.echo.app.Color getSelectedDateForeground()
Returns the foreground color of the selected date

Returns:
the foreground

processInput

public void processInput(java.lang.String inputName,
                         java.lang.Object inputValue)
Overrides:
processInput in class nextapp.echo.app.Component
See Also:
Component.processInput(java.lang.String, java.lang.Object)

setBackgroundImage

public void setBackgroundImage(nextapp.echo.app.FillImage newValue)
Sets the background image displayed within the entire component.

Parameters:
newValue - the new background image

setBorder

public void setBorder(nextapp.echo.app.Border newValue)
Sets the border surrounding the entire component.

Parameters:
newValue - the new border

setDate

public void setDate(java.util.Date newValue)
Sets the selected date.

Parameters:
newValue - the new date

setAdjacentMonthDateBackground

public void setAdjacentMonthDateBackground(nextapp.echo.app.Color newValue)
Sets the background color of dates in adjacent (previous/next) months.

Parameters:
newValue - the new background

setAdjacentMonthDateForeground

public void setAdjacentMonthDateForeground(nextapp.echo.app.Color newValue)
Sets the foreground color of dates in adjacent (previous/next) months.

Parameters:
newValue - the new foreground

setDateBackground

public void setDateBackground(nextapp.echo.app.Color newValue)
Sets the default background color of date cells.

Parameters:
newValue - the new background

setDateBackgroundImage

public void setDateBackgroundImage(nextapp.echo.app.FillImage newValue)
Sets the default background image of date cells.

Parameters:
newValue - the new background

setDateBorder

public void setDateBorder(nextapp.echo.app.Border newValue)
Sets the default border of date cells.

Parameters:
newValue - the new border

setDateForeground

public void setDateForeground(nextapp.echo.app.Color newValue)
Sets the default foreground color of date cells.

Parameters:
newValue - the new foreground

setHeaderBackground

public void setHeaderBackground(nextapp.echo.app.Color newValue)
Sets the background color of the week header.

Parameters:
newValue - the new background

setHeaderBackgroundImage

public void setHeaderBackgroundImage(nextapp.echo.app.FillImage newValue)
Sets the background image of the week header.

Parameters:
newValue - the new background image

setHeaderForeground

public void setHeaderForeground(nextapp.echo.app.Color newValue)
Sets the foreground color of the week header.

Parameters:
newValue - the new foreground

setRolloverDateBackground

public void setRolloverDateBackground(nextapp.echo.app.Color newValue)
Sets the rollover background color of date cells.

Parameters:
newValue - the new background

setRolloverDateBackgroundImage

public void setRolloverDateBackgroundImage(nextapp.echo.app.FillImage newValue)
Sets the rollover background image of date cells.

Parameters:
newValue - the new background image

setRolloverDateBorder

public void setRolloverDateBorder(nextapp.echo.app.Border newValue)
Sets the rollover border of date cells.

Parameters:
newValue - the new border

setRolloverDateForeground

public void setRolloverDateForeground(nextapp.echo.app.Color newValue)
Sets the rollover foreground color of date cells.

Parameters:
newValue - the new foreground

setSelectedDateBackground

public void setSelectedDateBackground(nextapp.echo.app.Color newValue)
Sets the background color of the selected date.

Parameters:
newValue - the new background

setSelectedDateBackgroundImage

public void setSelectedDateBackgroundImage(nextapp.echo.app.FillImage newValue)
Sets the background image of the selected date.

Parameters:
newValue - the new background image

setSelectedDateBorder

public void setSelectedDateBorder(nextapp.echo.app.Border newValue)
Sets the border of the selected date.

Parameters:
newValue - the new border

setSelectedDateForeground

public void setSelectedDateForeground(nextapp.echo.app.Color newValue)
Sets the foreground color of the selected date.

Parameters:
newValue - the new foreground

NextApp Echo3 Extras
v3.0.b4