|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.emn.spiraclock.Schedule
public abstract class Schedule
A Schedule class optimized for extra-fast appointment retreiving. This class is NOT thread-safe.
Field Summary | |
---|---|
(package private) Appointment |
app
|
(package private) Appointment[][][] |
appointments
|
(package private) ATime |
baseday
|
(package private) java.util.Hashtable |
cache
|
(package private) boolean |
cacheEnabled
|
(package private) int |
common0
|
(package private) int |
common1
|
(package private) int |
currentQueryId
|
static java.lang.String |
errorMessage
|
(package private) int |
hour_index
|
(package private) int |
hour_max
|
(package private) int |
hour_min
|
(package private) boolean |
intervalSet
|
(package private) boolean |
loaded
|
(package private) int |
mn_max
|
(package private) int |
mn_min
|
(package private) int |
nb_index
|
(package private) int |
rday_index
|
(package private) int |
rday0
|
(package private) int |
rday1
|
(package private) java.util.Vector |
res
|
(package private) int |
tmn0
|
(package private) int |
tmn1
|
(package private) JSpiraclock |
view
|
Constructor Summary | |
---|---|
Schedule()
Constructor |
Method Summary | |
---|---|
void |
addChangeListener(javax.swing.event.ChangeListener l)
|
abstract void |
beforeClosing()
Subclass this method to set all schedule needed operations before application close |
void |
clearCache()
Clears appointments cache (forces to recall getDayAppointments()). |
protected void |
fireStateChanged()
|
void |
firstAppointment()
Used by JSpiraclock. |
Appointment[] |
getAppointments(int relativeDay,
int totalMinutes,
int interval)
(slow) Returns all appointements in current time interval containing the given time +/- 1mn. |
ATime |
getBaseDay()
Used by JSpiraclock. |
abstract Appointment[] |
getDayAppointments(ATime day)
Subclass this method to return all appointments in the given day. |
abstract java.lang.String |
getName()
Subclass this method to return schedule name. |
abstract java.util.Hashtable |
getProperties()
Subclass this method to return all schedule properties property name (String) is the hash key and the value is an object |
JSpiraclock |
getView()
|
void |
installPopupCommands(javax.swing.JPopupMenu popup)
Gives the Schedule an opportunity to install its own popup menu commands on the spiraclock popup menu. |
boolean |
isLoadingNeeded(int relativeDay0,
int totalMinutes0,
int relativeDay1,
int totalMinutes1)
Used by JSpiraclock. |
Appointment |
nextAppointment()
Used by JSpiraclock. |
abstract void |
reload()
Subclass this method to reload all your data. |
protected Appointment[][] |
retreive(int relDay)
|
void |
setBaseDay(ATime baseday)
Used by JSpiraclock. |
void |
setInterval(int relativeDay0,
int totalMinutes0,
int relativeDay1,
int totalMinutes1)
Used by JSpiraclock. |
abstract void |
setProperties(java.util.Hashtable props)
Subclass this method to set all schedule dependant properties given in parameter |
(package private) void |
setView(JSpiraclock clock)
Pending: Replace by addView / removeView to manage multiple views |
void |
updateView()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
boolean cacheEnabled
public static java.lang.String errorMessage
Appointment[][][] appointments
ATime baseday
java.util.Hashtable cache
int rday0
int rday1
int tmn0
int tmn1
boolean loaded
int currentQueryId
int rday_index
int hour_index
int nb_index
int hour_max
int hour_min
int mn_min
int mn_max
int common0
int common1
Appointment app
java.util.Vector res
boolean intervalSet
JSpiraclock view
Constructor Detail |
---|
public Schedule()
Method Detail |
---|
public abstract java.lang.String getName()
public abstract Appointment[] getDayAppointments(ATime day)
public abstract void reload()
public abstract java.util.Hashtable getProperties()
public abstract void setProperties(java.util.Hashtable props)
public abstract void beforeClosing()
public void installPopupCommands(javax.swing.JPopupMenu popup)
public void clearCache()
public void setBaseDay(ATime baseday)
public ATime getBaseDay()
public boolean isLoadingNeeded(int relativeDay0, int totalMinutes0, int relativeDay1, int totalMinutes1)
public void setInterval(int relativeDay0, int totalMinutes0, int relativeDay1, int totalMinutes1)
public void firstAppointment()
public Appointment nextAppointment()
public Appointment[] getAppointments(int relativeDay, int totalMinutes, int interval)
protected Appointment[][] retreive(int relDay)
void setView(JSpiraclock clock)
public void updateView()
public JSpiraclock getView()
public void addChangeListener(javax.swing.event.ChangeListener l)
protected void fireStateChanged()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |