public abstract class CalendarView extends DatePickerComponent
DatePicker
. Note, the calendar view only deals with the currently
visible dates and all state is flushed when the calendar view is refreshed.UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Constructor and Description |
---|
CalendarView()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
addStyleToDate(java.lang.String styleName,
java.util.Date date)
Adds a style name to the cell of the supplied date.
|
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.
|
abstract boolean |
isDateEnabled(java.util.Date date)
Is the cell representing the given date enabled?
|
abstract void |
removeStyleFromDate(java.lang.String styleName,
java.util.Date date)
Removes a visible style name from the cell of the supplied date.
|
void |
setAriaSelectedCell(java.util.Date date)
Sets aria-selected in the given date's cell and clears the other cells.
|
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.
|
addMonths, css, getDatePicker, getModel, refresh, refreshAll, setDatePicker, setup
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents
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
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 datepublic abstract void removeStyleFromDate(java.lang.String styleName, java.util.Date date)
styleName
- style name to removedate
- date that will have the supplied style addedpublic void setAriaSelectedCell(java.util.Date date)
date
- the date of the cell where aria-selected should be set,
or null to clear aria-selected.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 date