NextApp Echo2 Extras
v2.1.0

nextapp.echo2.extras.app
Class CalendarSelect

java.lang.Object
  extended by Component
      extended by nextapp.echo2.extras.app.CalendarSelect

public class CalendarSelect
extends Component

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


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
           
 
Constructor Summary
CalendarSelect()
          Creates a new CalendarSelect.
CalendarSelect(java.util.Date date)
          Creates a new CalendarSelect.
 
Method Summary
 Color getAdjacentMonthDateForeground()
          Returns the foreground color of dates in adjacent (previous/next) months.
 FillImage getBackgroundImage()
          Returns the background image of the displayed calendar month.
 Border getBorder()
          Returns the border surrounding the displayed calendar month.
 java.util.Date getDate()
          Returns the selected date.
 Color getSelectedDateBackground()
          Returns the background color of the selected date
 FillImage getSelectedDateBackgroundImage()
          Returns the background image of the selected date
 Color getSelectedDateForeground()
          Returns the foreground color of the selected date
 void processInput(java.lang.String inputName, java.lang.Object inputValue)
           
 void setAdjacentMonthDateForeground(Color newValue)
          Sets the foreground color of dates in adjacent (previous/next) months.
 void setBackgroundImage(FillImage newValue)
          Sets the background image of the displayed calendar month.
 void setBorder(Border newValue)
          Sets the border surrounding the displayed calendar month.
 void setDate(java.util.Date newValue)
          Sets the selected date.
 void setSelectedDateBackground(Color newValue)
          Sets the background color of the selected date
 void setSelectedDateBackgroundImage(FillImage newValue)
          Sets the background image of the selected date
 void setSelectedDateForeground(Color newValue)
          Sets the foreground color of the selected date
 
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 Color getAdjacentMonthDateForeground()
Returns the foreground color of dates in adjacent (previous/next) months.

Returns:
the foreground

getBackgroundImage

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

Returns:
the background image

getBorder

public 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 Color getSelectedDateBackground()
Returns the background color of the selected date

Returns:
the background

getSelectedDateBackgroundImage

public FillImage getSelectedDateBackgroundImage()
Returns the background image of the selected date

Returns:
the background image

getSelectedDateForeground

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

setBackgroundImage

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

Parameters:
newValue - the new background image

setBorder

public void setBorder(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(Color newValue)
Sets the foreground color of dates in adjacent (previous/next) months.

Parameters:
newValue - the new foreground

setSelectedDateBackground

public void setSelectedDateBackground(Color newValue)
Sets the background color of the selected date

Parameters:
newValue - the new background

setSelectedDateBackgroundImage

public void setSelectedDateBackgroundImage(FillImage newValue)
Sets the background image of the selected date

Parameters:
newValue - the new background image

setSelectedDateForeground

public void setSelectedDateForeground(Color newValue)
Sets the foreground color of the selected date

Parameters:
newValue - the new foreground

NextApp Echo2 Extras
v2.1.0