SHOW Signed
 

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

java.lang.Object
  |
  +--net.rim.device.api.system.EventInjector.Event
Direct Known Subclasses:
EventInjector.KeyCodeEvent, EventInjector.KeyEvent, EventInjector.NavigationEvent, EventInjector.TrackwheelEvent
Enclosing class:
EventInjector

public abstract static class EventInjector.Event
extends Object

The base class for events.

Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

Since:
JDE 3.6.0
See Also:
EventInjector, EventInjector.KeyEvent, EventInjector.KeyCodeEvent, EventInjector.TrackwheelEvent, EventInjector.NavigationEvent

Method Summary
 Category: Signed  int getEvent()
          Returns the event.
 Category: Signed  int getStatus()
          Returns the status.
 Category: Signed  int getTime()
          Returns the time of the event.
 Category: Signed  void post()
          Posts the event to the application currently accepting input (typically the foreground application).
 Category: Signed  void setEvent(int event)
          Sets the specified event.
 Category: Signed  void setStatus(int status)
          Sets the status.
 Category: Signed  void setTimeToCurrent()
          Sets the time of this event to the current device uptime.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getEvent

public int getEvent()
Returns the event.

Returns:
An integer representing the event.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getStatus

public int getStatus()
Returns the status.

Returns:
An integer representing the status.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

getTime

public int getTime()
Returns the time of the event.

Returns:
An integer representing the time of the event.
Since:
JDE 4.5.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

post

public void post()
Posts the event to the application currently accepting input (typically the foreground application).
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

setEvent

public void setEvent(int event)
Sets the specified event.

Parameters:
event - The event to set.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

setStatus

public void setStatus(int status)
Sets the status.

Parameters:
status - An integer representing the status.
Since:
JDE 3.6.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.

setTimeToCurrent

public void setTimeToCurrent()
Sets the time of this event to the current device uptime. Useful if an Event object is to be invoked/posted several times, and it is desired that the event's time be updated to the current time before each invocation/posting.
Since:
JDE 4.5.0
Category:
Signed: This element is only accessible by signed applications. If you intend to use this element, please visit http://www.blackberry.com/go/codesigning to obtain a set of code signing keys. Code signing is only required for applications running on BlackBerry smartphones; development on BlackBerry Smartphone Simulators can occur without code signing.



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