talx x1.0.5

talx.feature
Class AutoLogout

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

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

Fires a logout action after some period of inactivity.


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
AutoLogout(java.lang.String minutes)
           
 
Method Summary
 void eventDispatched(java.awt.AWTEvent event)
          interrupts the timer loop when a key is pressed or the mouse moves.
 void release()
          Releases all system resources held by this object.
 void run()
          Runs in a loop that logs off unless it gets interrupted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoLogout

public AutoLogout(java.lang.String minutes)
Parameters:
minutes - the parameter string should consist of a single number parameter greater than 2 which represents the number of minutes of inactivity before logging out.
Method Detail

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

run

public void run()
Runs in a loop that logs off unless it gets interrupted. The loop restarts after each interruption until run is false.

Specified by:
run in interface java.lang.Runnable

eventDispatched

public void eventDispatched(java.awt.AWTEvent event)
interrupts the timer loop when a key is pressed or the mouse moves.

Specified by:
eventDispatched in interface java.awt.event.AWTEventListener

talx x1.0.5

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