com.sun.rave.web.ui.component
Class CalendarMonth

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIOutput
              extended bycom.sun.rave.web.ui.component.CalendarMonthBase
                  extended bycom.sun.rave.web.ui.component.CalendarMonth
All Implemented Interfaces:
javax.faces.component.NamingContainer, javax.faces.component.StateHolder, javax.faces.component.ValueHolder

public class CalendarMonth
extends CalendarMonthBase
implements javax.faces.component.NamingContainer

This class needs to be rewritten. Do not release as API.


Field Summary
protected  java.util.Calendar calendar
          The java.util.Calendar object to use for this CalendarMonth component.
static java.lang.String DATE_FIELD_ID
           
static java.lang.String DATE_FORMAT_ATTR
           
static java.lang.String DATE_FORMAT_PATTERN_ATTR
           
static java.lang.String DATE_LINK_ID
           
static java.lang.String MONTH_MENU_ID
           
static java.lang.String NEXT_MONTH_LINK_ID
           
static java.lang.String PREVIOUS_MONTH_LINK_ID
           
static java.lang.String YEAR_MENU_ID
           
 
Fields inherited from class javax.faces.component.UIOutput
COMPONENT_FAMILY, COMPONENT_TYPE
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
CalendarMonth()
           
 
Method Summary
 boolean compareDate(java.util.Calendar selected, java.util.Calendar current)
           
 void displayValue()
           
 java.util.Calendar getCalendar()
          Returns a new Calendar instance.
 java.lang.Integer getCurrentMonth()
           
 java.lang.Integer getCurrentYear()
           
 java.text.DateFormat getDateFormat()
          Return the DateFormat object for this CalendarMonth.
 java.lang.String getDateFormatPattern()
           
 java.lang.String getJavaScriptObjectName()
          Getter for property javaScriptObject.
protected  java.util.Locale getLocale()
          Convenience function to return the locale of the current context.
 DropDown getMonthMenu()
          Get the DropDown menu instance to use for this CalendarMonths's year menu.
 IconHyperlink getNextMonthLink()
          Get the IconHyperlink instance to use for the next year link.
 IconHyperlink getPreviousMonthLink()
          Get the IconHyperlink instance to use for the previous year link.
protected  com.sun.rave.web.ui.theme.Theme getTheme()
          Convience function to get the current Theme.
 java.util.TimeZone getTimeZone()
          Return the TimeZone object for this CalendarMonth.
 DropDown getYearMenu()
          Get the JumpDropDown menu instance to use for thie CalendarMonth's year menu.
 void initCalendarControls(java.lang.String jsName)
           
 boolean isDateSelected(java.util.Calendar current, java.util.Calendar endDate)
           
 void setJavaScriptObjectName(java.lang.String javaScriptObjectName)
          Setter for property javaScriptObject.
 void showNextMonth()
           
 void showPreviousMonth()
           
 
Methods inherited from class com.sun.rave.web.ui.component.CalendarMonthBase
getFamily, isPopup, restoreState, saveState, setPopup
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue, setConverter, setValue
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MONTH_MENU_ID

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

YEAR_MENU_ID

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

PREVIOUS_MONTH_LINK_ID

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

NEXT_MONTH_LINK_ID

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

DATE_LINK_ID

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

DATE_FIELD_ID

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

DATE_FORMAT_ATTR

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

DATE_FORMAT_PATTERN_ATTR

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

calendar

protected java.util.Calendar calendar

The java.util.Calendar object to use for this CalendarMonth component.

Constructor Detail

CalendarMonth

public CalendarMonth()
Method Detail

isDateSelected

public boolean isDateSelected(java.util.Calendar current,
                              java.util.Calendar endDate)

compareDate

public boolean compareDate(java.util.Calendar selected,
                           java.util.Calendar current)

getLocale

protected java.util.Locale getLocale()

Convenience function to return the locale of the current context.


getCalendar

public java.util.Calendar getCalendar()

Returns a new Calendar instance.

Returns:
java.util.Calendar A new Calendar instance with the correct locale and time zone.

getDateFormat

public java.text.DateFormat getDateFormat()

Return the DateFormat object for this CalendarMonth.


getTimeZone

public java.util.TimeZone getTimeZone()

Return the TimeZone object for this CalendarMonth.


getMonthMenu

public DropDown getMonthMenu()

Get the DropDown menu instance to use for this CalendarMonths's year menu.

Returns:
The DropDown instance to use for the year menu

getYearMenu

public DropDown getYearMenu()

Get the JumpDropDown menu instance to use for thie CalendarMonth's year menu.

Returns:
The JumpDropDown instance to use for the year menu

getPreviousMonthLink

public IconHyperlink getPreviousMonthLink()

Get the IconHyperlink instance to use for the previous year link.

Returns:
The IconHyperlink instance to use for the previous year link

getNextMonthLink

public IconHyperlink getNextMonthLink()

Get the IconHyperlink instance to use for the next year link.

Returns:
The IconHyperlink instance to use for the next year link

getTheme

protected com.sun.rave.web.ui.theme.Theme getTheme()

Convience function to get the current Theme.


initCalendarControls

public void initCalendarControls(java.lang.String jsName)

showNextMonth

public void showNextMonth()

showPreviousMonth

public void showPreviousMonth()

getCurrentMonth

public java.lang.Integer getCurrentMonth()

getCurrentYear

public java.lang.Integer getCurrentYear()

getJavaScriptObjectName

public java.lang.String getJavaScriptObjectName()
Getter for property javaScriptObject.

Returns:
Value of property javaScriptObject.

setJavaScriptObjectName

public void setJavaScriptObjectName(java.lang.String javaScriptObjectName)
Setter for property javaScriptObject.


getDateFormatPattern

public java.lang.String getDateFormatPattern()

displayValue

public void displayValue()