net.rim.device.api.ui
Class AccessibleEventDispatcher

java.lang.Object
  |
  +--net.rim.device.api.ui.AccessibleEventDispatcher

public class AccessibleEventDispatcher
extends Object

Accessible event dispatcher

Since:
JDE 4.7.0

Method Summary
static boolean dispatchAccessibleEvent(int event, Object oldValue, Object newValue, AccessibleContext context)
          Invoke to send accessibility event to accessibility listener
static boolean isAssistiveTechnologyEnabled()
          Returns whether an assistive technology is currently enabled.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

dispatchAccessibleEvent

public static boolean dispatchAccessibleEvent(int event,
                                              Object oldValue,
                                              Object newValue,
                                              AccessibleContext context)
Invoke to send accessibility event to accessibility listener
Parameters:
event - - type of event (TEXT_CHANGED, STATE_CHANGED etc)
oldValue - - old value of the field that changed - may be null
newValue - - new value of the field that changed - may be null
context - - field that changed
Returns:
true if there is an accessibility listener and event is sent, false otherwise
Since:
JDE 4.7.0

isAssistiveTechnologyEnabled

public static boolean isAssistiveTechnologyEnabled()
Returns whether an assistive technology is currently enabled. This method may be used to skip heavy computations before firing an accessible event through dispatchAccessibleEvent(int, Object, Object, AccessibleContext) method call.
Returns:
true assistive technology is enabled, false otherwise
Since:
JDE 4.7.0



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.