nsIAccessibleEvent

IID:87F29033-C4A6-40a3-AC7A-3BA391F9992D
Inherits From:nsISupports
Status:UNDER_REVIEW

An interface for accessibility events listened to by in-process accessibility clients, which can be used to find out how to get accessibility and DOM interfaces for the event and its target. To listen to in-process accessibility invents, make your object an nsIObserver, and listen for accessible-event by using code something like this: nsCOMPtr observerService = do_GetService("@mozilla.org/observer-service;1", &rv;); if (NS_SUCCEEDED(rv)) rv = observerService->AddObserver(this, "accessible-event", PR_TRUE);


Constants

PRUint32 EVENT_CREATE = 32768
PRUint32 EVENT_DESTROY = 32769
PRUint32 EVENT_SHOW = 32770
PRUint32 EVENT_HIDE = 32771
PRUint32 EVENT_REORDER = 32772
PRUint32 EVENT_FOCUS = 32773
PRUint32 EVENT_STATE_CHANGE = 32778
PRUint32 EVENT_LOCATION_CHANGE = 32779
PRUint32 EVENT_NAME_CHANGE = 32780
PRUint32 EVENT_DESCRIPTIONCHANGE = 32781
PRUint32 EVENT_VALUE_CHANGE = 32782
PRUint32 EVENT_PARENTCHANGE = 32783
PRUint32 EVENT_HELPCHANGE = 32784
PRUint32 EVENT_DEFACTIONCHANGE = 32785
PRUint32 EVENT_ACCELERATORCHANGE = 32786
PRUint32 EVENT_SELECTION = 32774
PRUint32 EVENT_SELECTION_ADD = 32775
PRUint32 EVENT_SELECTION_REMOVE = 32776
PRUint32 EVENT_SELECTION_WITHIN = 32777
PRUint32 EVENT_ALERT = 2
PRUint32 EVENT_FOREGROUND = 3
PRUint32 EVENT_MENUSTART = 4
PRUint32 EVENT_MENUEND = 5
PRUint32 EVENT_MENUPOPUPSTART = 6
PRUint32 EVENT_MENUPOPUPEND = 7
PRUint32 EVENT_CAPTURESTART = 8
PRUint32 EVENT_CAPTUREEND = 9
PRUint32 EVENT_MOVESIZESTART = 10
PRUint32 EVENT_MOVESIZEEND = 11
PRUint32 EVENT_CONTEXTHELPSTART = 12
PRUint32 EVENT_CONTEXTHELPEND = 13
PRUint32 EVENT_DRAGDROPSTART = 14
PRUint32 EVENT_DRAGDROPEND = 15
PRUint32 EVENT_DIALOGSTART = 16
PRUint32 EVENT_DIALOGEND = 17
PRUint32 EVENT_SCROLLINGSTART = 18
PRUint32 EVENT_SCROLLINGEND = 19
PRUint32 EVENT_MINIMIZESTART = 22
PRUint32 EVENT_MINIMIZEEND = 23
PRUint32 EVENT_ATK_PROPERTY_CHANGE = 256
PRUint32 EVENT_ATK_SELECTION_CHANGE = 257
PRUint32 EVENT_ATK_TEXT_CHANGE = 258
PRUint32 EVENT_ATK_TEXT_SELECTION_CHANGE = 259
PRUint32 EVENT_ATK_TEXT_CARET_MOVE = 260
PRUint32 EVENT_ATK_VISIBLE_DATA_CHANGE = 261
PRUint32 EVENT_ATK_TABLE_MODEL_CHANGE = 272
PRUint32 EVENT_ATK_TABLE_ROW_INSERT = 273
PRUint32 EVENT_ATK_TABLE_ROW_DELETE = 274
PRUint32 EVENT_ATK_TABLE_ROW_REORDER = 275
PRUint32 EVENT_ATK_TABLE_COLUMN_INSERT = 276
PRUint32 EVENT_ATK_TABLE_COLUMN_DELETE = 277
PRUint32 EVENT_ATK_TABLE_COLUMN_REORDER = 278
PRUint32 EVENT_ATK_LINK_SELECTED = 279
PRUint32 EVENT_ATK_WINDOW_ACTIVATE = 280
PRUint32 EVENT_ATK_WINDOW_CREATE = 281
PRUint32 EVENT_ATK_WINDOW_DEACTIVATE = 288
PRUint32 EVENT_ATK_WINDOW_DESTROY = 289
PRUint32 EVENT_ATK_WINDOW_MAXIMIZE = 290
PRUint32 EVENT_ATK_WINDOW_MINIMIZE = 291
PRUint32 EVENT_ATK_WINDOW_RESIZE = 292
PRUint32 EVENT_ATK_WINDOW_RESTORE = 293

Properties

readonly nsIAccessible accessible

The nsIAccessible associated with the event. May return null if no accessible is available

readonly nsIAccessibleDocument accessibleDocument

The nsIAccessibleDocument that the event target nsIAccessible resides in. This can be used to get the DOM window, the DOM document and the window handler, among other things.

readonly nsIDOMNode DOMNode

The nsIDOMNode associated with the event May return null if accessible for event has been shut down

readonly PRUint32 eventType

The type of event, based on the enumerated event values defined in this interface.

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com