SHOW Signed

net.rim.device.api.system
Class EventInjector.KeyEvent

java.lang.Object
  |
  +--net.rim.device.api.system.EventInjector.Event
        |
        +--net.rim.device.api.system.EventInjector.KeyEvent
Enclosing class:
EventInjector

public static class EventInjector.KeyEvent
extends EventInjector.Event

The event class that defines a KeyPad event

Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

Since:
3.6

Field Summary
 Category: Signed static int KEY_DOWN
           
 Category: Signed static int KEY_REPEAT
           
 Category: Signed static int KEY_UP
           
   
Constructor Summary
 Category: Signed EventInjector.KeyEvent(int event, char c, int status, int time)
          Constructs a new KeyEvent instance
 
Method Summary
 Category: Signed  char getChar()
           
 Category: Signed  int getTime()
           
 Category: Signed  void setChar(char c)
           
 Category: Signed  void setTime(int time)
           
 
Methods inherited from class net.rim.device.api.system.EventInjector.Event
getEvent, getStatus, post, setEvent, setStatus
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_DOWN

public static final int KEY_DOWN
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

KEY_REPEAT

public static final int KEY_REPEAT
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

KEY_UP

public static final int KEY_UP
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Constructor Detail

EventInjector.KeyEvent

public EventInjector.KeyEvent(int event,
                              char c,
                              int status,
                              int time)
Constructs a new KeyEvent instance
Parameters:
event - one of KEY_DOWN, KEY_REPEAT or KEY_UP
c - the character to invoke. Special characters are defined by Characters
status - any status flags (as defined by KeypadListener)
time - the time the key is held, in milliseconds
See Also:
Characters
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.
Method Detail

setChar

public void setChar(char c)
Since:
JDE 3.6
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getChar

public char getChar()
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

setTime

public void setTime(int time)
Since:
JDE 3.6
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.

getTime

public int getTime()
Category:
Signed: This element is only accessible by signed clients. If you intend to use this element, please contact RIM to establish the necessary agreements that will allow you to have your COD files signed. Signing is only required for use on the device, development under the JDE can occur without signing the CODs.


Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.