|
GWT 2.4.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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
public abstract class CalendarView
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.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled |
| Field Summary |
|---|
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
DEBUG_ID_PREFIX |
| Constructor Summary | |
|---|---|
CalendarView()
Constructor. |
|
| Method Summary | |
|---|---|
protected void |
addMonths(int numMonths)
|
abstract void |
addStyleToDate(java.lang.String styleName,
java.util.Date date)
Adds a style name to the cell of the supplied date. |
protected DatePicker |
getDatePicker()
|
abstract java.util.Date |
getFirstDate()
Returns the first date that is currently shown by the calendar. |
abstract java.util.Date |
getLastDate()
Returns the last date that is currently shown by the calendar. |
CalendarModel |
getModel()
|
abstract boolean |
isDateEnabled(java.util.Date date)
Is the cell representing the given date enabled? |
protected abstract void |
refresh()
Refresh the component. |
protected void |
refreshAll()
Refreshes the DatePicker, CalendarView, and
CalendarModel. |
abstract void |
removeStyleFromDate(java.lang.String styleName,
java.util.Date date)
Removes a visible style name from the cell of the supplied date. |
abstract void |
setEnabledOnDate(boolean enabled,
java.util.Date date)
Enables or Disables a particular date. |
protected void |
setHighlightedDate(java.util.Date date)
Allows the calendar view to update the date picker's highlighted date. |
protected abstract void |
setup()
Set up the component. |
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
|---|
getWidget, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, performDetachedInitialization, render, render, resolvePotentialElement, setWidget, wrapElement |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
|---|
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
|---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString, unsinkEvents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CalendarView()
| Method Detail |
|---|
public abstract void addStyleToDate(java.lang.String styleName,
java.util.Date date)
CalendarView is refreshed.
styleName - style name to adddate - date that will have the supplied style addedpublic abstract java.util.Date getFirstDate()
public abstract java.util.Date getLastDate()
public abstract boolean isDateEnabled(java.util.Date date)
date - the date
public abstract void removeStyleFromDate(java.lang.String styleName,
java.util.Date date)
styleName - style name to removedate - date that will have the supplied style added
public abstract void setEnabledOnDate(boolean enabled,
java.util.Date date)
enabled - true for enabled, false for disableddate - date to enable or disableprotected final void setHighlightedDate(java.util.Date date)
date - the highlighted datepublic CalendarModel getModel()
protected void addMonths(int numMonths)
protected DatePicker getDatePicker()
protected abstract void refresh()
DatePicker. Use
refreshAll() if you need to refresh all components.
protected void refreshAll()
DatePicker, CalendarView, and
CalendarModel.
protected abstract void setup()
|
GWT 2.4.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||