|
||||||||||
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.widgetideas.datepicker.client.CalendarView<MyDatePicker>
MyDatePicker
- the date picker type used with this calendar view.public abstract class CalendarView<MyDatePicker extends DatePicker>
The CalendarView is a calendar grid that represents the current view of a
DatePicker
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary |
---|
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
CalendarView()
|
Method Summary | |
---|---|
abstract void |
addDateStyle(java.util.Date date,
java.lang.String styleName)
Adds a stylename to the cell of the supplied date. |
void |
addDateStyles(java.lang.Iterable<java.util.Date> dates,
java.lang.String styleName)
|
protected void |
addMonths(int numMonths)
|
protected MyDatePicker |
getDatePicker()
|
abstract java.util.Date |
getFirstVisibleDate()
Returns the first date that is currently shown by the calendar. |
abstract java.util.Date |
getLastVisibleDate()
Returns the last date that is currently shown by the calendar. |
CalendarModel |
getModel()
|
abstract boolean |
isDateEnabled(java.util.Date d)
|
boolean |
isVisible(java.util.Date date)
|
abstract void |
refresh()
Refresh the component. |
abstract void |
removeStyleName(java.util.Date date,
java.lang.String styleName)
Removes a stylename from the cell of the supplied date. |
abstract void |
setDateEnabled(java.util.Date date,
boolean enabled)
Enables or Disables a particular date. |
void |
setEnabledDates(java.lang.Iterable<java.util.Date> dates,
boolean enabled)
Enables or disables multiple dates. |
protected abstract void |
setup()
Set up the component. |
protected void |
updateHighlightedDate(java.util.Date date)
|
Methods inherited from class com.google.gwt.user.client.ui.Composite |
---|
getElement, getWidget, initWidget, isAttached, onAttach, onDetach, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
doAttachChildren, doDetachChildren, getParent, onBrowserEvent, onLoad, onUnload, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, 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 addDateStyle(java.util.Date date, java.lang.String styleName)
date
- date that will have the supplied style addedstyleName
- style name to addpublic void addDateStyles(java.lang.Iterable<java.util.Date> dates, java.lang.String styleName)
public abstract java.util.Date getFirstVisibleDate()
public abstract java.util.Date getLastVisibleDate()
public abstract boolean isDateEnabled(java.util.Date d)
public boolean isVisible(java.util.Date date)
public abstract void refresh()
public abstract void removeStyleName(java.util.Date date, java.lang.String styleName)
date
- date that will have the supplied style addedstyleName
- style name to removepublic abstract void setDateEnabled(java.util.Date date, boolean enabled)
date
- date to enable or disableenabled
- true for enabled, false for disabledpublic void setEnabledDates(java.lang.Iterable<java.util.Date> dates, boolean enabled)
dates
- dates to [en|dis]ableenabled
- true to enable, false to disableprotected final void updateHighlightedDate(java.util.Date date)
public CalendarModel getModel()
protected void addMonths(int numMonths)
protected MyDatePicker getDatePicker()
protected abstract void setup()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |