com.sybase.uep.bobclient.listener
Class UserActionListener

java.lang.Object
  extended by com.sybase.uep.bobclient.listener.UserActionListener
All Implemented Interfaces:
net.rim.device.api.system.KeyListener, net.rim.device.api.system.KeypadListener, net.rim.device.api.system.TrackwheelListener

public class UserActionListener
extends java.lang.Object
implements net.rim.device.api.system.KeyListener, net.rim.device.api.system.TrackwheelListener

This is the user action listener It will listen for key and track wheel events that occurs It will determine if the device is idle or not

Author:
tdang

Field Summary
 
Fields inherited from interface net.rim.device.api.system.KeypadListener
STATUS_ALT, STATUS_ALT_LOCK, STATUS_CAPS_LOCK, STATUS_FOUR_WAY, STATUS_KEY_HELD_WHILE_ROLLING, STATUS_NOT_FROM_KEYPAD, STATUS_SHIFT, STATUS_SHIFT_LEFT, STATUS_SHIFT_RIGHT, STATUS_TRACKWHEEL
 
Constructor Summary
UserActionListener(UIController controller)
           
 
Method Summary
 void checkScreenSaverActive()
           
 int getIdleTime()
           
 long getUserActionTimestamp()
           
 boolean keyChar(char key, int status, int time)
           
 boolean keyDown(int keycode, int time)
           
 boolean keyRepeat(int keycode, int time)
           
 boolean keyStatus(int keycode, int time)
           
 boolean keyUp(int keycode, int time)
           
 void lockUAClientNow()
           
 void setNewIdleTimer()
           
 void setUserActionTimestamp(long lngTimestamp)
           
 void touchUserActionTimestamp()
           
 boolean trackwheelClick(int status, int time)
           
 boolean trackwheelRoll(int amount, int status, int time)
           
 boolean trackwheelUnclick(int status, int time)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserActionListener

public UserActionListener(UIController controller)
Method Detail

checkScreenSaverActive

public void checkScreenSaverActive()

trackwheelClick

public boolean trackwheelClick(int status,
                               int time)
Specified by:
trackwheelClick in interface net.rim.device.api.system.TrackwheelListener

trackwheelUnclick

public boolean trackwheelUnclick(int status,
                                 int time)
Specified by:
trackwheelUnclick in interface net.rim.device.api.system.TrackwheelListener

trackwheelRoll

public boolean trackwheelRoll(int amount,
                              int status,
                              int time)
Specified by:
trackwheelRoll in interface net.rim.device.api.system.TrackwheelListener

keyChar

public boolean keyChar(char key,
                       int status,
                       int time)
Specified by:
keyChar in interface net.rim.device.api.system.KeyListener

keyDown

public boolean keyDown(int keycode,
                       int time)
Specified by:
keyDown in interface net.rim.device.api.system.KeyListener

keyRepeat

public boolean keyRepeat(int keycode,
                         int time)
Specified by:
keyRepeat in interface net.rim.device.api.system.KeyListener

keyStatus

public boolean keyStatus(int keycode,
                         int time)
Specified by:
keyStatus in interface net.rim.device.api.system.KeyListener

keyUp

public boolean keyUp(int keycode,
                     int time)
Specified by:
keyUp in interface net.rim.device.api.system.KeyListener

lockUAClientNow

public void lockUAClientNow()

getUserActionTimestamp

public long getUserActionTimestamp()

setUserActionTimestamp

public void setUserActionTimestamp(long lngTimestamp)

touchUserActionTimestamp

public void touchUserActionTimestamp()

getIdleTime

public int getIdleTime()

setNewIdleTimer

public void setNewIdleTimer()