|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bradrydzewski.gwt.calendar.client.CalendarView
public abstract class CalendarView
Abstract base class defining the operations to render a calendar and user-input dispatching methods.
Subclasses will provide the details of rendering the calendar to visualize by day (Day View), monthly (month view), agenda (list view) and the logic implementing the user-input event processing.
| Field Summary | |
|---|---|
protected CalendarWidget |
calendarWidget
Calendar widget bound to the view. |
| Constructor Summary | |
|---|---|
CalendarView()
|
|
| Method Summary | |
|---|---|
void |
attach(CalendarWidget calendarWidget)
Attaches this view to the provided CalendarWidget. |
void |
createAppointment(Appointment appt)
|
void |
createAppointment(Date start,
Date end)
|
void |
deleteAppointment(Appointment appt)
|
void |
detatch()
Detaches this view from the currently associated CalendarWidget. |
abstract void |
doLayout()
|
void |
doSizing()
|
int |
getDisplayedDays()
Returns the configured number of days the calendar should display at a given time. |
CalendarSettings |
getSettings()
|
abstract String |
getStyleName()
Returns the CSS style name of this calendar view. |
abstract void |
onAppointmentSelected(Appointment appt)
|
void |
onDeleteKeyPressed()
Processes user com.google.gwt.event.dom.client.KeyCodes.KEY_DELETE
keystrokes. |
abstract void |
onDoubleClick(com.google.gwt.user.client.Element element,
com.google.gwt.user.client.Event event)
|
void |
onDownArrowKeyPressed()
Processes user com.google.gwt.event.dom.client.KeyCodes.KEY_DOWN
keystrokes. |
void |
onLeftArrowKeyPressed()
Processes user com.google.gwt.event.dom.client.KeyCodes.KEY_LEFT
keystrokes. |
abstract void |
onMouseOver(com.google.gwt.user.client.Element element,
com.google.gwt.user.client.Event event)
|
void |
onRightArrowKeyPressed()
Processes user com.google.gwt.event.dom.client.KeyCodes.KEY_RIGHT
keystrokes. |
abstract void |
onSingleClick(com.google.gwt.user.client.Element element,
com.google.gwt.user.client.Event event)
|
void |
onUpArrowKeyPressed()
Processes user com.google.gwt.event.dom.client.KeyCodes.KEY_UP
keystrokes. |
void |
openAppointment(Appointment appt)
|
void |
scrollToHour(int hour)
|
void |
selectAppointment(Appointment appt)
|
void |
selectNextAppointment()
|
void |
selectPreviousAppointment()
|
void |
setDisplayedDays(int displayedDays)
Sets the configured number of days the calendar should display at a given time. |
void |
setSettings(CalendarSettings settings)
|
void |
updateAppointment(Appointment toAppt)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CalendarWidget calendarWidget
CalendarWidget| Constructor Detail |
|---|
public CalendarView()
| Method Detail |
|---|
public void attach(CalendarWidget calendarWidget)
CalendarWidget.
calendarWidget - The interactive widget containing the calendarpublic void detatch()
CalendarWidget.
TODO: The CalendarWidget might still have a reference to this
CalendarView, is that correct??
public abstract String getStyleName()
public void doSizing()
public abstract void doLayout()
public int getDisplayedDays()
public void setDisplayedDays(int displayedDays)
displayedDays - The number of days this calendar view should display
at a given time
public abstract void onDoubleClick(com.google.gwt.user.client.Element element,
com.google.gwt.user.client.Event event)
public abstract void onSingleClick(com.google.gwt.user.client.Element element,
com.google.gwt.user.client.Event event)
public abstract void onMouseOver(com.google.gwt.user.client.Element element,
com.google.gwt.user.client.Event event)
public void onDeleteKeyPressed()
com.google.gwt.event.dom.client.KeyCodes.KEY_DELETE
keystrokes. The CalendarView implementation is empty so that
subclasses are not forced to implement it if no specific logic is needed
for com.google.gwt.event.dom.client.KeyCodes.KEY_DELETE
keystrokes.
public void onUpArrowKeyPressed()
com.google.gwt.event.dom.client.KeyCodes.KEY_UP
keystrokes. The CalendarView implementation is empty so that
subclasses are not forced to implement it if no specific logic is needed
for com.google.gwt.event.dom.client.KeyCodes.KEY_UP keystrokes.
public void onDownArrowKeyPressed()
com.google.gwt.event.dom.client.KeyCodes.KEY_DOWN
keystrokes. The CalendarView implementation is empty so that
subclasses are not forced to implement it if no specific logic is needed
for com.google.gwt.event.dom.client.KeyCodes.KEY_DOWN
keystrokes.
public void onLeftArrowKeyPressed()
com.google.gwt.event.dom.client.KeyCodes.KEY_LEFT
keystrokes. The CalendarView implementation is empty so that
subclasses are not forced to implement it if no specific logic is needed
for com.google.gwt.event.dom.client.KeyCodes.KEY_LEFT
keystrokes.
public void onRightArrowKeyPressed()
com.google.gwt.event.dom.client.KeyCodes.KEY_RIGHT
keystrokes. The CalendarView implementation is empty so that
subclasses are not forced to implement it if no specific logic is needed
for com.google.gwt.event.dom.client.KeyCodes.KEY_RIGHT
keystrokes.
public abstract void onAppointmentSelected(Appointment appt)
public final void selectAppointment(Appointment appt)
public final void selectNextAppointment()
public final void selectPreviousAppointment()
public final void updateAppointment(Appointment toAppt)
public final void deleteAppointment(Appointment appt)
public final void openAppointment(Appointment appt)
public final void createAppointment(Appointment appt)
public final void createAppointment(Date start,
Date end)
public void scrollToHour(int hour)
public CalendarSettings getSettings()
getSettings in interface HasSettingspublic void setSettings(CalendarSettings settings)
setSettings in interface HasSettings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||