|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bradrydzewski.gwt.calendar.client.AppointmentManager
public class AppointmentManager
Manages operations and state for the entire set of appointments displayed by the GWT calendar.
The key responsibilities of theAppointmentManager are:
| Constructor Summary | |
|---|---|
AppointmentManager()
|
|
| Method Summary | |
|---|---|
void |
addAppointment(Appointment appt)
Adds an appointment to the collection of appointments maintained by this ApplicationManager. |
void |
addAppointments(ArrayList<Appointment> appointments)
Adds multiple appointments to the collection maintained by this ApplicationManager. |
void |
clearAppointments()
Empties the collection of managed appointments. |
void |
commit()
|
ArrayList<Appointment> |
getAppointments()
Returns the collection of appointments that this AppointmentManager
maintains. |
Appointment |
getHoveredAppointment()
|
Appointment |
getSelectedAppointment()
Returns the appointment in this manager's collection that is "currently selected". |
boolean |
hasAppointmentSelected()
Indicates whether there is a "currently selected" appointment at the moment. |
boolean |
isTheSelectedAppointment(Appointment appointment)
Tells whether the passed appointment is the same one as the
one that is currently selected in this manager. |
void |
removeAppointment(Appointment appointment)
Removes the appointment from this manager's managed
collection. |
void |
removeCurrentlySelectedAppointment()
Removes the "currently selected" appointment from this manager's collection. |
void |
resetHoveredAppointment()
|
void |
resetSelectedAppointment()
Resets the "currently selected" appointment of this manager. |
void |
rollback()
|
boolean |
selectNextAppointment()
Moves the "currently selected" to the next appointment in the managed collection of this AppointmentManager. |
boolean |
selectPreviousAppointment()
Moves the "currently selected" to the previous appointment in the managed collection of this AppointmentManager. |
void |
setCommittedAppointment(Appointment appt)
|
void |
setHoveredAppointment(Appointment hoveredAppointment)
|
void |
setRollbackAppointment(Appointment appt)
|
void |
setSelectedAppointment(Appointment selectedAppointment)
Sets the appointment that should be considered the "currently selected" appointment. |
void |
sortAppointments()
Sorts the collection of appointments by their natural order. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppointmentManager()
| Method Detail |
|---|
public ArrayList<Appointment> getAppointments()
AppointmentManager
maintains. Warning: this method returns a modifiable
reference to the internally managed list of appointments; client code
might break the invariants that this AppointmentManager
enforces if it performs any operations that modify the returned
collection.
AppointmentManager.public void addAppointment(Appointment appt)
ApplicationManager.
appt - The appointment to be made part of this manager's managed
collectionpublic void addAppointments(ArrayList<Appointment> appointments)
ApplicationManager.
appointments - The appointments that will be made part of this
manager's managed collectionpublic void removeAppointment(Appointment appointment)
appointment from this manager's managed
collection.
appointment - The appointment to removepublic void removeCurrentlySelectedAppointment()
public void clearAppointments()
public void setSelectedAppointment(Appointment selectedAppointment)
selectedAppointment - The appointment to consider "currently
selected"public boolean hasAppointmentSelected()
true if there is a currently selected appointment
for the collection managed by this component, false
otherwisepublic Appointment getSelectedAppointment()
public void sortAppointments()
public boolean selectPreviousAppointment()
AppointmentManager.
true if selecting the previous appointment was
successful, false no currently selected appointment
is set or the currently selected appointment is the first in the
collection.public boolean selectNextAppointment()
AppointmentManager.
true if selecting the previous appointment was
successful, false no currently selected appointment
is set or the currently selected appointment is the last in the
collection.public void resetSelectedAppointment()
selected property will be set to
false and this manager's selectedAppointment
property will be set to null.
public boolean isTheSelectedAppointment(Appointment appointment)
appointment is the same one as the
one that is currently selected in this manager.
appointment - The appointment to test to be the same as the
currently selected
true if there is a currently selected appointment
and it is equal to the passed appointmentpublic void commit()
public void rollback()
public void setRollbackAppointment(Appointment appt)
public void setCommittedAppointment(Appointment appt)
public void resetHoveredAppointment()
public void setHoveredAppointment(Appointment hoveredAppointment)
public Appointment getHoveredAppointment()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||