com.notuvy.gui
Class SwingActivityEventQueue

java.lang.Object
  extended by java.awt.EventQueue
      extended by com.notuvy.gui.SwingActivityEventQueue
All Implemented Interfaces:
IdlenessMonitorable

public class SwingActivityEventQueue
extends EventQueue
implements IdlenessMonitorable

An EventQueue that keeps track of last activity, so it can be determined how long the user is idle. http://www.javakb.com/Uwe/Forum.aspx/java-gui/2628/Inactivity-detect User: murali Date: Aug 29, 2008 Time: 1:02:12 PM


Method Summary
protected  void dispatchEvent(AWTEvent event)
           
static SwingActivityEventQueue getInstance()
           
 long lastActivity()
           
 void markActionTakenOnIdle()
           
 String toString()
           
 
Methods inherited from class java.awt.EventQueue
getCurrentEvent, getMostRecentEventTime, getNextEvent, invokeAndWait, invokeLater, isDispatchThread, peekEvent, peekEvent, pop, postEvent, push
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static SwingActivityEventQueue getInstance()

toString

public String toString()
Overrides:
toString in class Object

lastActivity

public long lastActivity()
Specified by:
lastActivity in interface IdlenessMonitorable

markActionTakenOnIdle

public void markActionTakenOnIdle()
Specified by:
markActionTakenOnIdle in interface IdlenessMonitorable

dispatchEvent

protected void dispatchEvent(AWTEvent event)
Overrides:
dispatchEvent in class EventQueue


Copyright © 2013. All Rights Reserved.