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.TouchEvent, EventInjector.TrackwheelEvent
- Enclosing class:
- EventInjector
public abstract static class EventInjector.Event
- extends Object
The base class for events.
- See Also:
EventInjector
,
EventInjector.KeyEvent
,
EventInjector.KeyCodeEvent
,
EventInjector.TrackwheelEvent
,
EventInjector.NavigationEvent
- 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:
- BlackBerry API 3.6.0
Method Summary |
|
int |
getEvent()
Returns the event. |
|
int |
getStatus()
Returns the status. |
|
int |
getTime()
Returns the time of the event. |
|
void |
post()
Posts the event to the application currently accepting input (typically the foreground application). |
|
void |
setEvent(int event)
Sets the specified event. |
|
void |
setStatus(int status)
Sets the status. |
|
void |
setTimeToCurrent()
Sets the time of this event to the current device uptime. |
post
public void post()
- Posts the event to the application currently accepting input (typically the foreground application).
- 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:
- BlackBerry API 3.6.0
setEvent
public void setEvent(int event)
- Sets the specified event.
- Parameters:
event
- The event to set.- 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:
- BlackBerry API 3.6.0
getEvent
public int getEvent()
- Returns the event.
- Returns:
- An integer representing the event.
- 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:
- BlackBerry API 3.6.0
setStatus
public void setStatus(int status)
- Sets the status.
- Parameters:
status
- An integer representing the status (as defined by KeypadListener
).- 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:
- BlackBerry API 3.6.0
getStatus
public int getStatus()
- Returns the status.
- Returns:
- An integer representing the status (as defined by
KeypadListener
). - 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:
- BlackBerry API 3.6.0
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.
- 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:
- BlackBerry API 4.5.0
getTime
public int getTime()
- Returns the time of the event.
- Returns:
- An integer representing the time of the event.
- 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:
- BlackBerry API 4.5.0
Copyright 1999-2010 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. All Rights Reserved.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark of Sun Microsystems, Inc.