com.jniwrapper.win32.hook
Class IdleTracker

java.lang.Object
  extended bycom.jniwrapper.win32.hook.IdleTracker

public class IdleTracker
extends java.lang.Object

This class provides functionality for controlling the mouse and keyboard idleness.


Constructor Summary
IdleTracker()
          Creates an instance of com.jniwrapper.win32.hook.IdleTracker class and initilizes the idleness timeout with 1 minute timeout.
IdleTracker(long idleDelay)
          Creates an instance of com.jniwrapper.win32.hook.IdleTracker class and initilizes the idleness timeout.
 
Method Summary
 void addListener(IdleTrackerListener listener)
          Adds a listener of the idle timeout event.
 void removeListener(IdleTrackerListener listener)
          Removes a listener of the idle timeout event.
 void start()
          Starts idle tracking.
 void stop()
          Stops idle tracking.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdleTracker

public IdleTracker()
Creates an instance of com.jniwrapper.win32.hook.IdleTracker class and initilizes the idleness timeout with 1 minute timeout.


IdleTracker

public IdleTracker(long idleDelay)
Creates an instance of com.jniwrapper.win32.hook.IdleTracker class and initilizes the idleness timeout.

Parameters:
idleDelay - is the timeout of mouse and keyboard idleness in milliseconds.
Method Detail

start

public void start()
Starts idle tracking.


stop

public void stop()
Stops idle tracking.


addListener

public void addListener(IdleTrackerListener listener)
Adds a listener of the idle timeout event.

Parameters:
listener -

removeListener

public void removeListener(IdleTrackerListener listener)
Removes a listener of the idle timeout event.

Parameters:
listener -