public final class DefaultCalendarView extends CalendarView
UIObject.DebugIdImpl, UIObject.DebugIdImplEnabled
DEBUG_ID_PREFIX
Constructor and Description |
---|
DefaultCalendarView()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addMonths(int numMonths) |
void |
addStyleToDate(String styleName,
Date date)
Adds a style name to the cell of the supplied date.
|
protected DatePicker |
getDatePicker() |
Date |
getFirstDate()
Returns the first date that is currently shown by the calendar.
|
Date |
getLastDate()
Returns the last date that is currently shown by the calendar.
|
CalendarModel |
getModel() |
boolean |
isDateEnabled(Date d)
Is the cell representing the given date enabled?
|
void |
refresh()
Refresh the component.
|
protected void |
refreshAll()
|
void |
removeStyleFromDate(String styleName,
Date date)
Removes a visible style name from the cell of the supplied date.
|
void |
setAriaSelectedCell(Date date)
Sets aria-selected in the given date's cell and clears the other cells.
|
void |
setEnabledOnDate(boolean enabled,
Date date)
Enables or Disables a particular date.
|
void |
setup()
Set up the component.
|
setHighlightedDate
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 void addStyleToDate(String styleName, Date date)
CalendarView
CalendarView
is refreshed.addStyleToDate
in class CalendarView
styleName
- style name to adddate
- date that will have the supplied style addedpublic Date getFirstDate()
CalendarView
getFirstDate
in class CalendarView
public Date getLastDate()
CalendarView
getLastDate
in class CalendarView
public boolean isDateEnabled(Date d)
CalendarView
isDateEnabled
in class CalendarView
d
- the datepublic void refresh()
DatePicker
. Use
refreshAll() if you need to refresh all components.public void removeStyleFromDate(String styleName, Date date)
CalendarView
removeStyleFromDate
in class CalendarView
styleName
- style name to removedate
- date that will have the supplied style addedpublic void setAriaSelectedCell(Date date)
CalendarView
setAriaSelectedCell
in class CalendarView
date
- the date of the cell where aria-selected should be set,
or null to clear aria-selected.public void setEnabledOnDate(boolean enabled, Date date)
CalendarView
setEnabledOnDate
in class CalendarView
enabled
- true for enabled, false for disableddate
- date to enable or disablepublic void setup()
public CalendarModel getModel()
protected void addMonths(int numMonths)
protected DatePicker getDatePicker()
protected void refreshAll()
Copyright © 2018. All rights reserved.