|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.DatePickerComponent com.google.gwt.user.datepicker.client.CalendarView com.google.gwt.user.datepicker.client.DefaultCalendarView
public final class DefaultCalendarView
Simple calendar view. Not extensible as we wish to evolve it freely over time.
Nested Class Summary | |
---|---|
(package private) class |
DefaultCalendarView.CellGrid
Cell grid. |
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 | |
---|---|
DefaultCalendarView()
Constructor. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.google.gwt.user.datepicker.client.CalendarView |
---|
setHighlightedDate |
Methods inherited from class com.google.gwt.user.datepicker.client.DatePickerComponent |
---|
addMonths, css, getDatePicker, getModel, refreshAll, setDatePicker |
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
claimElement, getWidget, initializeClaimedElement, initWidget, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
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, unsinkEvents |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultCalendarView()
Method Detail |
---|
public void addStyleToDate(java.lang.String styleName, java.util.Date date)
CalendarView
CalendarView
is refreshed.
addStyleToDate
in class CalendarView
styleName
- style name to adddate
- date that will have the supplied style addedpublic java.util.Date getFirstDate()
CalendarView
getFirstDate
in class CalendarView
public java.util.Date getLastDate()
CalendarView
getLastDate
in class CalendarView
public boolean isDateEnabled(java.util.Date d)
CalendarView
isDateEnabled
in class CalendarView
d
- the date
public void refresh()
DatePickerComponent
DatePicker
. Use
refreshAll() if you need to refresh all components.
refresh
in class DatePickerComponent
public void removeStyleFromDate(java.lang.String styleName, java.util.Date date)
CalendarView
removeStyleFromDate
in class CalendarView
styleName
- style name to removedate
- date that will have the supplied style addedpublic void setAriaSelectedCell(java.util.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, java.util.Date date)
CalendarView
setEnabledOnDate
in class CalendarView
enabled
- true for enabled, false for disableddate
- date to enable or disablepublic void setup()
DatePickerComponent
setup
in class DatePickerComponent
|
GWT 2.7.0 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |