|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcider.client.gui.IdleTimer
public class IdleTimer
Idle timer for MainWindow GUI. If user doesn't move the mouse in the window for 5 minutes it sends an idle presence.
Field Summary | |
---|---|
boolean |
isIdle
Wheter the user is idle |
Constructor Summary | |
---|---|
IdleTimer(Client client,
boolean enabled)
|
Method Summary | |
---|---|
void |
activityDetected()
At the end of an idle session, update the idle time and change the flag |
void |
resetTotal()
Sets the idle time back to 0 |
void |
stop()
Stops the idle timer |
boolean |
userIsIdle()
Checks if the user is idle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean isIdle
Constructor Detail |
---|
public IdleTimer(Client client, boolean enabled)
Method Detail |
---|
public void activityDetected()
public void resetTotal()
public void stop()
public boolean userIsIdle()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |