NextApp Echo2 Extras
v2.1.0

nextapp.echo2.extras.app
Class CalendarSelect

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

public class CalendarSelect
extends nextapp.echo2.app.Component

A user-input component which allows for the selection of a single date.

See Also:
Serialized Form

Field Summary
static java.lang.String DATE_CHANGED_PROPERTY
           
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_SELECTED_DATE_BACKGROUND
           
static java.lang.String PROPERTY_SELECTED_DATE_BACKGROUND_IMAGE
           
static java.lang.String PROPERTY_SELECTED_DATE_FOREGROUND
           
 
Fields inherited from class nextapp.echo2.app.Component
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.echo2.app.Color getAdjacentMonthDateForeground()
          Returns the foreground color of dates in adjacent (previous/next) months.
 nextapp.echo2.app.FillImage getBackgroundImage()
          Returns the background image of the displayed calendar month.
 nextapp.echo2.app.Border getBorder()
          Returns the border surrounding the displayed calendar month.
 java.util.Date getDate()
          Returns the selected date.
 nextapp.echo2.app.Color getSelectedDateBackground()
          Returns the background color of the selected date
 nextapp.echo2.app.FillImage getSelectedDateBackgroundImage()
          Returns the background image of the selected date
 nextapp.echo2.app.Color getSelectedDateForeground()
          Returns the foreground color of the selected date
 void processInput(java.lang.String inputName, java.lang.Object inputValue)
           
 void setAdjacentMonthDateForeground(nextapp.echo2.app.Color newValue)
          Sets the foreground color of dates in adjacent (previous/next) months.
 void setBackgroundImage(nextapp.echo2.app.FillImage newValue)
          Sets the background image of the displayed calendar month.
 void setBorder(nextapp.echo2.app.Border newValue)
          Sets the border surrounding the displayed calendar month.
 void setDate(java.util.Date newValue)
          Sets the selected date.
 void setSelectedDateBackground(nextapp.echo2.app.Color newValue)
          Sets the background color of the selected date
 void setSelectedDateBackgroundImage(nextapp.echo2.app.FillImage newValue)
          Sets the background image of the selected date
 void setSelectedDateForeground(nextapp.echo2.app.Color newValue)
          Sets the foreground color of the selected date
 
Methods inherited from class nextapp.echo2.app.Component
add, add, addPropertyChangeListener, addPropertyChangeListener, dispose, firePropertyChange, getApplicationInstance, getBackground, getComponent, getComponent, getComponentCount, getComponents, getEventListenerList, getFocusTraversalIndex, getFont, getForeground, getId, getIndexedProperty, getLayoutData, getLayoutDirection, getLocale, getParent, getProperty, getRenderId, getRenderIndexedProperty, getRenderIndexedProperty, getRenderLayoutDirection, 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, setBackground, setEnabled, setFocusTraversalIndex, setFocusTraversalParticipant, setFont, setForeground, setId, setIndexedProperty, setLayoutData, setLayoutDirection, setLocale, setProperty, 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_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_ADJACENT_MONTH_DATE_FOREGROUND

public static final java.lang.String PROPERTY_ADJACENT_MONTH_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_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

getAdjacentMonthDateForeground

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

Returns:
the foreground

getBackgroundImage

public nextapp.echo2.app.FillImage getBackgroundImage()
Returns the background image of the displayed calendar month.

Returns:
the background image

getBorder

public nextapp.echo2.app.Border getBorder()
Returns the border surrounding the displayed calendar month.

Returns:
the border

getDate

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

Returns:
the selected date

getSelectedDateBackground

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

Returns:
the background

getSelectedDateBackgroundImage

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

Returns:
the background image

getSelectedDateForeground

public nextapp.echo2.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.echo2.app.Component
See Also:
Component.processInput(java.lang.String, java.lang.Object)

setBackgroundImage

public void setBackgroundImage(nextapp.echo2.app.FillImage newValue)
Sets the background image of the displayed calendar month.

Parameters:
newValue - the new background image

setBorder

public void setBorder(nextapp.echo2.app.Border newValue)
Sets the border surrounding the displayed calendar month.

Parameters:
newValue - the new border

setDate

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

Parameters:
newValue - the new date

setAdjacentMonthDateForeground

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

Parameters:
newValue - the new foreground

setSelectedDateBackground

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

Parameters:
newValue - the new background

setSelectedDateBackgroundImage

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

Parameters:
newValue - the new background image

setSelectedDateForeground

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

Parameters:
newValue - the new foreground

NextApp Echo2 Extras
v2.1.0