Class ExampleSchedule

java.lang.Object
  extended by fr.emn.spiraclock.Schedule
      extended by ExampleSchedule
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener

public class ExampleSchedule
extends Schedule
implements java.awt.event.ActionListener


Field Summary
 
Fields inherited from class fr.emn.spiraclock.Schedule
errorMessage
 
Constructor Summary
ExampleSchedule()
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Occurs when an action is performed
 void beforeClosing()
          Subclass this method to set all schedule needed operations before application close
 Appointment[] getDayAppointments(ATime day)
          Subclass this method to return all the appointments of your schedule for ther given day
 java.lang.String getName()
          Subclass this method to return schedule name.
 java.util.Hashtable getProperties()
          Called by SpiraClock engine to manage local properties persistence along sessions (events colors, etc...).
 void installPopupCommands(javax.swing.JPopupMenu popup)
          This method, called by the SpiraClock engine, allows you to install entries in the SpiraClock popup menu.
static void main(java.lang.String[] args)
           
 void reload()
          subclass this method to reload all your data (from a file, or another app...)
 void setProperties(java.util.Hashtable props)
          Called by SpiraClock engine to manage local properties.
 
Methods inherited from class fr.emn.spiraclock.Schedule
addChangeListener, clearCache, fireStateChanged, firstAppointment, getAppointments, getBaseDay, getView, isLoadingNeeded, nextAppointment, retreive, setBaseDay, setInterval, updateView
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleSchedule

public ExampleSchedule()
Method Detail

getProperties

public java.util.Hashtable getProperties()
Called by SpiraClock engine to manage local properties persistence along sessions (events colors, etc...).

Specified by:
getProperties in class Schedule
Returns:
local Schedule properties.

setProperties

public void setProperties(java.util.Hashtable props)
Called by SpiraClock engine to manage local properties. After application loading, SpiraClock give the loaded properties (from the SpiraClock.ini file) to the Schedule, allowing local properties extraction.

Specified by:
setProperties in class Schedule
Parameters:
props - the properties loaded from the file

getName

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

Specified by:
getName in class Schedule

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

reload

public void reload()
subclass this method to reload all your data (from a file, or another app...)

Specified by:
reload in class Schedule

getDayAppointments

public Appointment[] getDayAppointments(ATime day)
Subclass this method to return all the appointments of your schedule for ther given day

Specified by:
getDayAppointments in class Schedule
Parameters:
day -
Returns:

installPopupCommands

public void installPopupCommands(javax.swing.JPopupMenu popup)
This method, called by the SpiraClock engine, allows you to install entries in the SpiraClock popup menu. (useful allow user setting schedule properties

Overrides:
installPopupCommands in class Schedule
Parameters:
popup - the JPopupMenu object where to add your JMenuItem

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Occurs when an action is performed

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e -

main

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