talx x1.0.5

talx.feature
Class AutoSave

java.lang.Object
  extended bytalx.feature.AutoSave
All Implemented Interfaces:
java.awt.event.AWTEventListener, ControllerConstants, java.util.EventListener, java.lang.Runnable, TALFeature

public class AutoSave
extends java.lang.Object
implements TALFeature, java.awt.event.AWTEventListener, ControllerConstants, java.lang.Runnable

Feature to auto save the gui state at regular intervals.


Field Summary
 
Fields inherited from interface talx.controller.ControllerConstants
EXIT_COMMAND, FILE_ATTACHMENTS_KEY, ILLEGAL_ACTION_COMMAND, LOGOUT_COMMAND, MAIL_COUNT_CHANGED_COMMAND, REMOTE_GAME_COMMAND, SAVE_COMMAND, STOP_COMMAND, TEST_COMMAND
 
Constructor Summary
AutoSave(java.lang.String minutes)
           
 
Method Summary
 void eventDispatched(java.awt.AWTEvent event)
           
 void release()
          Releases all system resources held by this object.
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoSave

public AutoSave(java.lang.String minutes)
Parameters:
minutes - number of minutes to wait between saves.
Throws:
java.lang.NumberFormatException - if minutes cannot be parsed as a long, or if minutes is non-positive.
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable

eventDispatched

public void eventDispatched(java.awt.AWTEvent event)
Specified by:
eventDispatched in interface java.awt.event.AWTEventListener

release

public void release()
Description copied from interface: TALFeature
Releases all system resources held by this object. The general contract of pluggable features is that once their release method is called, they should be elligible for garbage collection. The exceptions to this are references to this object held in the ActionDispatcher and in the Transport model. Both of those objects are cleared by the system. However, in all other cases, if this object subscribed to a listener interface, it must unsubscribe in this method. This method should block until all object clean-up has been accomplished. This includes closing all open files, etc. Once the object has returned from the release method, the system may go down without further warning.

Specified by:
release in interface TALFeature

talx x1.0.5

© 2001-2005 University of Oregon.
Eugene OR 97403, U.S.A. All Rights Reserved.