public abstract class

CalendarView

extends Composite
java.lang.Object
   ↳ com.google.gwt.user.client.ui.UIObject
     ↳ com.google.gwt.user.client.ui.Widget
       ↳ com.google.gwt.user.client.ui.Composite
         ↳ com.google.gwt.user.datepicker.client.CalendarView
Known Direct Subclasses

Class Overview

The CalendarView is a calendar grid that represents the current view of a DatePicker. Note, the calendar view only deals with the currently visible dates and all state is flushed when the calendar view is refreshed.

Summary

[Expand]
Inherited Constants
From class com.google.gwt.user.client.ui.UIObject
Public Constructors
CalendarView()
Constructor.
Public Methods
abstract void addStyleToDate(String styleName, Date date)
Adds a style name to the cell of the supplied date.
abstract Date getFirstDate()
Returns the first date that is currently shown by the calendar.
abstract Date getLastDate()
Returns the last date that is currently shown by the calendar.
CalendarModel getModel()
abstract boolean isDateEnabled(Date date)
Is the cell representing the given date enabled?
abstract void removeStyleFromDate(String styleName, Date date)
Removes a visible style name from the cell of the supplied date.
abstract void setEnabledOnDate(boolean enabled, Date date)
Enables or Disables a particular date.
Protected Methods
void addMonths(int numMonths)
DatePicker getDatePicker()
abstract void refresh()
Refresh the component.
void refreshAll()
final void setHighlightedDate(Date date)
Allows the calendar view to update the date picker's highlighted date.
abstract void setup()
Set up the component.
[Expand]
Inherited Methods
From class com.google.gwt.user.client.ui.Composite
From class com.google.gwt.user.client.ui.Widget
From class com.google.gwt.user.client.ui.UIObject
From class java.lang.Object
From interface com.google.gwt.event.logical.shared.HasAttachHandlers
From interface com.google.gwt.event.shared.HasHandlers
From interface com.google.gwt.user.client.EventListener
From interface com.google.gwt.user.client.ui.IsWidget

Public Constructors

public CalendarView ()

Constructor.

Public Methods

public abstract void addStyleToDate (String styleName, Date date)

Adds a style name to the cell of the supplied date. This style is only set until the next time the CalendarView is refreshed.

Parameters
styleName style name to add
date date that will have the supplied style added

public abstract Date getFirstDate ()

Returns the first date that is currently shown by the calendar.

Returns
  • the first date.

public abstract Date getLastDate ()

Returns the last date that is currently shown by the calendar.

Returns
  • the last date.

public CalendarModel getModel ()

public abstract boolean isDateEnabled (Date date)

Is the cell representing the given date enabled?

Parameters
date the date
Returns
  • is the date enabled

public abstract void removeStyleFromDate (String styleName, Date date)

Removes a visible style name from the cell of the supplied date.

Parameters
styleName style name to remove
date date that will have the supplied style added

public abstract void setEnabledOnDate (boolean enabled, Date date)

Enables or Disables a particular date. by default all valid dates are enabled after a rendering event. Disabled dates cannot be selected.

Parameters
enabled true for enabled, false for disabled
date date to enable or disable

Protected Methods

protected void addMonths (int numMonths)

protected DatePicker getDatePicker ()

protected abstract void refresh ()

Refresh the component. Usually called because the model's current date has changed. In general, only should be called by DatePicker. Use refreshAll() if you need to refresh all components.

protected void refreshAll ()

Refreshes the DatePicker, CalendarView, and CalendarModel.

protected final void setHighlightedDate (Date date)

Allows the calendar view to update the date picker's highlighted date.

Parameters
date the highlighted date

protected abstract void setup ()

Set up the component.