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 |
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.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.google.gwt.user.client.ui.UIObject
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a style name to the cell of the supplied date.
| |||||||||||
Returns the first date that is currently shown by the calendar.
| |||||||||||
Returns the last date that is currently shown by the calendar.
| |||||||||||
Is the cell representing the given date enabled?
| |||||||||||
Removes a visible style name from the cell of the supplied date.
| |||||||||||
Enables or Disables a particular date.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Refresh the component.
| |||||||||||
Allows the calendar view to update the date picker's highlighted date.
| |||||||||||
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
|
Constructor.
Adds a style name to the cell of the supplied date. This style is only set
until the next time the CalendarView
is refreshed.
styleName | style name to add |
---|---|
date | date that will have the supplied style added |
Returns the first date that is currently shown by the calendar.
Returns the last date that is currently shown by the calendar.
Is the cell representing the given date enabled?
date | the date |
---|
Removes a visible style name from the cell of the supplied date.
styleName | style name to remove |
---|---|
date | date that will have the supplied style added |
Enables or Disables a particular date. by default all valid dates are enabled after a rendering event. Disabled dates cannot be selected.
enabled | true for enabled, false for disabled |
---|---|
date | date to enable or disable |
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.
Allows the calendar view to update the date picker's highlighted date.
date | the highlighted date |
---|
Set up the component.