fr.emn.spiraclock
Class TestSchedule

java.lang.Object
  extended by fr.emn.spiraclock.Schedule
      extended by fr.emn.spiraclock.TestSchedule

public class TestSchedule
extends Schedule


Field Summary
 
Fields inherited from class fr.emn.spiraclock.Schedule
app, appointments, baseday, cache, cacheEnabled, common0, common1, currentQueryId, errorMessage, hour_index, hour_max, hour_min, intervalSet, loaded, mn_max, mn_min, nb_index, rday_index, rday0, rday1, res, tmn0, tmn1, view
 
Constructor Summary
TestSchedule()
           
 
Method Summary
 void beforeClosing()
          Subclass this method to set all schedule needed operations before application close
 Appointment[] getDayAppointments(ATime day)
          Subclass this method to return all appointments in the given day.
 java.lang.String getName()
          Subclass this method to return schedule name.
protected  Appointment getNew(java.lang.String summary, int year, int dayofyear, double bushour, java.awt.Color c, int start, int end, boolean overlap, boolean showStart, boolean showEnd, boolean fadeOnEnd)
           
 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
 void installPopupCommands(javax.swing.JPopupMenu popup)
          Gives the Schedule an opportunity to install its own popup menu commands on the spiraclock popup menu.
(package private) static void main(java.lang.String[] args)
           
 void reload()
          Does nothing
 void setProperties(java.util.Hashtable props)
          Subclass this method to set all schedule dependant properties given in parameter
 
Methods inherited from class fr.emn.spiraclock.Schedule
addChangeListener, clearCache, fireStateChanged, firstAppointment, getAppointments, getBaseDay, getView, isLoadingNeeded, nextAppointment, retreive, setBaseDay, setInterval, setView, updateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestSchedule

public TestSchedule()
Method Detail

main

static void main(java.lang.String[] args)

getName

public java.lang.String getName()
Description copied from class: Schedule
Subclass this method to return schedule name.

Specified by:
getName in class Schedule

reload

public void reload()
Does nothing

Specified by:
reload in class Schedule

getProperties

public java.util.Hashtable getProperties()
Description copied from class: Schedule
Subclass this method to return all schedule properties property name (String) is the hash key and the value is an object

Specified by:
getProperties in class Schedule

setProperties

public void setProperties(java.util.Hashtable props)
Description copied from class: Schedule
Subclass this method to set all schedule dependant properties given in parameter

Specified by:
setProperties in class Schedule

installPopupCommands

public void installPopupCommands(javax.swing.JPopupMenu popup)
Description copied from class: Schedule
Gives the Schedule an opportunity to install its own popup menu commands on the spiraclock popup menu. Subclass this method if you want your schedule to handle user commands.

Overrides:
installPopupCommands in class Schedule

getDayAppointments

public Appointment[] getDayAppointments(ATime day)
Description copied from class: Schedule
Subclass this method to return all appointments in the given day. Appointments that does not start & end the same day are NOT returned. (This method does not need to be fast).

Specified by:
getDayAppointments in class Schedule

getNew

protected Appointment getNew(java.lang.String summary,
                             int year,
                             int dayofyear,
                             double bushour,
                             java.awt.Color c,
                             int start,
                             int end,
                             boolean overlap,
                             boolean showStart,
                             boolean showEnd,
                             boolean fadeOnEnd)

beforeClosing

public void beforeClosing()
Description copied from class: Schedule
Subclass this method to set all schedule needed operations before application close

Specified by:
beforeClosing in class Schedule