com.google.gwt.widgetideas.datepicker.client
Class SimpleCalendarView

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Composite
              extended by com.google.gwt.widgetideas.datepicker.client.CalendarView
                  extended by com.google.gwt.widgetideas.datepicker.client.SimpleCalendarView
All Implemented Interfaces:
com.google.gwt.user.client.EventListener

public class SimpleCalendarView
extends CalendarView

Simple calendar view.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled
 
Field Summary
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Method Summary
 void addDateStyle(java.util.Date date, java.lang.String styleName)
          Adds a stylename to the cell of the supplied date.
protected  void addMonths(int numMonths)
           
protected  MyDatePicker getDatePicker()
           
 java.util.Date getFirstVisibleDate()
          Returns the first date that is currently shown by the calendar.
 java.util.Date getLastVisibleDate()
          Returns the last date that is currently shown by the calendar.
 CalendarModel getModel()
           
 boolean isDateEnabled(java.util.Date d)
           
 void refresh()
          Refresh the component.
 void removeStyleName(java.util.Date date, java.lang.String styleName)
          Removes a stylename from the cell of the supplied date.
 void setDateEnabled(java.util.Date date, boolean enabled)
          Enables or Disables a particular date.
 void setup()
          Set up the component.
 
Methods inherited from class com.google.gwt.widgetideas.datepicker.client.CalendarView
addDateStyles, isVisible, setEnabledDates, updateHighlightedDate
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getElement, getWidget, initWidget, isAttached, onAttach, onDetach, setWidget
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
doAttachChildren, doDetachChildren, getParent, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

addDateStyle

public void addDateStyle(java.util.Date date,
                         java.lang.String styleName)
Description copied from class: CalendarView
Adds a stylename to the cell of the supplied date. TEMP

Specified by:
addDateStyle in class CalendarView
Parameters:
date - date that will have the supplied style added
styleName - style name to add

getFirstVisibleDate

public java.util.Date getFirstVisibleDate()
Description copied from class: CalendarView
Returns the first date that is currently shown by the calendar.

Specified by:
getFirstVisibleDate in class CalendarView

getLastVisibleDate

public java.util.Date getLastVisibleDate()
Description copied from class: CalendarView
Returns the last date that is currently shown by the calendar.

Specified by:
getLastVisibleDate in class CalendarView

isDateEnabled

public boolean isDateEnabled(java.util.Date d)
Specified by:
isDateEnabled in class CalendarView

refresh

public void refresh()
Refresh the component. Usually called because the model's current date has changed.

Specified by:
refresh in class CalendarView

removeStyleName

public void removeStyleName(java.util.Date date,
                            java.lang.String styleName)
Description copied from class: CalendarView
Removes a stylename from the cell of the supplied date.

Specified by:
removeStyleName in class CalendarView
Parameters:
date - date that will have the supplied style added
styleName - style name to remove

setDateEnabled

public void setDateEnabled(java.util.Date date,
                           boolean enabled)
Description copied from class: CalendarView
Enables or Disables a particular date. by default all valid dates are enabled after a rendering event. Disabled dates cannot be selected.

Specified by:
setDateEnabled in class CalendarView
Parameters:
date - date to enable or disable
enabled - true for enabled, false for disabled

setup

public void setup()
Set up the component.


getModel

public CalendarModel getModel()

addMonths

protected void addMonths(int numMonths)

getDatePicker

protected MyDatePicker getDatePicker()