net.rim.device.api.ui
Class AccessibleEventDispatcher

java.lang.Object
  extended by net.rim.device.api.ui.AccessibleEventDispatcher

public class AccessibleEventDispatcher
extends Object

Accessible event dispatcher

Since:
BlackBerry API 4.6.1

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:
BlackBerry API 4.6.1

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 AccessibleEventDispatcher.dispatchAccessibleEvent(int, Object, Object, AccessibleContext) method call.

Returns:
true assistive technology is enabled, false otherwise
Since:
BlackBerry API 4.6.1





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.