public final class DefaultCalendarView extends CalendarView
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
DefaultCalendarView.CellGrid
Cell grid.
|
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabledDEBUG_ID_PREFIX| Constructor and Description |
|---|
DefaultCalendarView()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStyleToDate(java.lang.String styleName,
java.util.Date date)
Adds a style name to the cell of the supplied date.
|
java.util.Date |
getFirstDate()
Returns the first date that is currently shown by the calendar.
|
java.util.Date |
getLastDate()
Returns the last date that is currently shown by the calendar.
|
boolean |
isDateEnabled(java.util.Date d)
Is the cell representing the given date enabled?
|
void |
refresh()
Refresh the component.
|
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.
|
void |
setEnabledOnDate(boolean enabled,
java.util.Date date)
Enables or Disables a particular date.
|
void |
setup()
Set up the component.
|
setHighlightedDateaddMonths, css, getDatePicker, getModel, refreshAll, setDatePickerclaimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidgetaddAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEventsaddStyleDependentName, 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, toStringpublic void addStyleToDate(java.lang.String styleName,
java.util.Date date)
CalendarViewCalendarView is refreshed.addStyleToDate in class CalendarViewstyleName - style name to adddate - date that will have the supplied style addedpublic java.util.Date getFirstDate()
CalendarViewgetFirstDate in class CalendarViewpublic java.util.Date getLastDate()
CalendarViewgetLastDate in class CalendarViewpublic boolean isDateEnabled(java.util.Date d)
CalendarViewisDateEnabled in class CalendarViewd - the datepublic void refresh()
DatePickerComponentDatePicker. Use
refreshAll() if you need to refresh all components.refresh in class DatePickerComponentpublic void removeStyleFromDate(java.lang.String styleName,
java.util.Date date)
CalendarViewremoveStyleFromDate in class CalendarViewstyleName - style name to removedate - date that will have the supplied style addedpublic void setAriaSelectedCell(java.util.Date date)
CalendarViewsetAriaSelectedCell in class CalendarViewdate - the date of the cell where aria-selected should be set,
or null to clear aria-selected.public void setEnabledOnDate(boolean enabled,
java.util.Date date)
CalendarViewsetEnabledOnDate in class CalendarViewenabled - true for enabled, false for disableddate - date to enable or disablepublic void setup()
DatePickerComponentsetup in class DatePickerComponent