public class Accessible
extends java.lang.Object
getAccessible
, and then add an accessible listener
to override simple items like the name and help string, or they
can add an accessible control listener to override complex items.
As a rule of thumb, an application would only want to use the
accessible control listener to implement accessibility for a
custom control.Modifier and Type | Field and Description |
---|---|
(package private) java.util.Vector |
accessibleActionListeners |
(package private) java.util.Vector |
accessibleAttributeListeners |
(package private) java.util.Vector |
accessibleControlListeners |
(package private) java.util.Vector |
accessibleEditableTextListeners |
(package private) java.util.Vector |
accessibleHyperlinkListeners |
(package private) java.util.Vector |
accessibleListeners |
(package private) java.util.Vector |
accessibleTableCellListeners |
(package private) java.util.Vector |
accessibleTableListeners |
(package private) java.util.Vector |
accessibleTextExtendedListeners |
(package private) java.util.Vector |
accessibleTextListeners |
(package private) java.util.Vector |
accessibleValueListeners |
(package private) java.util.Vector |
children |
(package private) Control |
control |
(package private) static boolean |
DEBUG |
(package private) int |
enumIndex |
(package private) IAccessible |
iaccessible |
(package private) ToolItem |
item |
(package private) static int |
MAX_RELATION_TYPES |
(package private) COMObject |
objIAccessible |
(package private) COMObject |
objIAccessible2 |
(package private) COMObject |
objIAccessibleAction |
(package private) COMObject |
objIAccessibleApplication |
(package private) COMObject |
objIAccessibleEditableText |
(package private) COMObject |
objIAccessibleHyperlink |
(package private) COMObject |
objIAccessibleHypertext |
(package private) COMObject |
objIAccessibleTable2 |
(package private) COMObject |
objIAccessibleTableCell |
(package private) COMObject |
objIAccessibleText |
(package private) COMObject |
objIAccessibleValue |
(package private) COMObject |
objIEnumVARIANT |
(package private) COMObject |
objIServiceProvider |
(package private) Accessible |
parent |
(package private) static java.lang.String |
PROPERTY_USEIA2 |
(package private) int |
refCount |
(package private) Relation[] |
relations |
(package private) static int |
TABLE_MODEL_CHANGE_SIZE |
(package private) int[] |
tableChange |
(package private) static int |
TEXT_CHANGE_SIZE |
(package private) java.lang.Object[] |
textDeleted |
(package private) java.lang.Object[] |
textInserted |
(package private) int |
uniqueID |
(package private) static int |
UniqueID |
(package private) static boolean |
UseIA2 |
(package private) java.lang.Object[] |
variants |
Modifier | Constructor and Description |
---|---|
protected |
Accessible()
Deprecated.
|
|
Accessible(Accessible parent)
Constructs a new instance of this class given its parent.
|
(package private) |
Accessible(Accessible parent,
int iaccessible_address) |
(package private) |
Accessible(Control control) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
accDoDefaultAction(int varChild) |
(package private) int |
accHitTest(int xLeft,
int yTop,
int pvarChild) |
(package private) int |
accLocation(int pxLeft,
int pyTop,
int pcxWidth,
int pcyHeight,
int varChild) |
(package private) int |
accNavigate(int navDir,
int varStart,
int pvarEndUpAt) |
(package private) int |
accSelect(int flagsSelect,
int varChild) |
void |
addAccessibleActionListener(AccessibleActionListener listener)
Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleActionListener interface. |
void |
addAccessibleAttributeListener(AccessibleAttributeListener listener)
Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleAttributeListener interface. |
void |
addAccessibleControlListener(AccessibleControlListener listener)
Adds the listener to the collection of listeners who will
be notified when an accessible client asks for custom control
specific information.
|
void |
addAccessibleEditableTextListener(AccessibleEditableTextListener listener)
Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleEditableTextListener interface. |
void |
addAccessibleHyperlinkListener(AccessibleHyperlinkListener listener)
Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleHyperlinkListener interface. |
void |
addAccessibleListener(AccessibleListener listener)
Adds the listener to the collection of listeners who will
be notified when an accessible client asks for certain strings,
such as name, description, help, or keyboard shortcut.
|
void |
addAccessibleTableCellListener(AccessibleTableCellListener listener)
Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleTableCellListener interface. |
void |
addAccessibleTableListener(AccessibleTableListener listener)
Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleTableListener interface. |
void |
addAccessibleTextListener(AccessibleTextListener listener)
Adds the listener to the collection of listeners who will
be notified when an accessible client asks for custom text control
specific information.
|
void |
addAccessibleValueListener(AccessibleValueListener listener)
Adds the listener to the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleValueListener interface. |
(package private) int |
AddRef() |
void |
addRelation(int type,
Accessible target)
Adds a relation with the specified type and target
to the receiver's set of relations.
|
(package private) int |
addSelection(int startOffset,
int endOffset) |
(package private) static Accessible |
checkNull(Accessible parent) |
(package private) void |
checkUniqueID(int childID) |
(package private) void |
checkWidget() |
(package private) int |
childIDToOs(int childID) |
(package private) int |
Clone(int ppEnum) |
(package private) Color |
colorFromString(java.lang.String rgbString) |
(package private) int |
copyText(int startOffset,
int endOffset) |
(package private) void |
createIAccessible() |
(package private) void |
createIAccessible2() |
(package private) void |
createIAccessibleAction() |
(package private) void |
createIAccessibleApplication() |
(package private) void |
createIAccessibleEditableText() |
(package private) void |
createIAccessibleHyperlink() |
(package private) void |
createIAccessibleHypertext() |
(package private) void |
createIAccessibleTable2() |
(package private) void |
createIAccessibleTableCell() |
(package private) void |
createIAccessibleText() |
(package private) void |
createIAccessibleValue() |
(package private) void |
createIEnumVARIANT() |
(package private) void |
createIServiceProvider() |
(package private) int |
cutText(int startOffset,
int endOffset) |
(package private) int |
deleteText(int startOffset,
int endOffset) |
void |
dispose()
Disposes of the operating system resources associated with
the receiver, and removes the receiver from its parent's
list of children.
|
(package private) int |
doAction(int actionIndex) |
(package private) int |
eventChildID() |
(package private) int |
get_accChild(int varChild,
int ppdispChild) |
(package private) int |
get_accChildCount(int pcountChildren) |
(package private) int |
get_accDefaultAction(int varChild,
int pszDefaultAction) |
(package private) int |
get_accDescription(int varChild,
int pszDescription) |
(package private) int |
get_accFocus(int pvarChild) |
(package private) int |
get_accHelp(int varChild,
int pszHelp) |
(package private) int |
get_accHelpTopic(int pszHelpFile,
int varChild,
int pidTopic) |
(package private) int |
get_accKeyboardShortcut(int varChild,
int pszKeyboardShortcut) |
(package private) int |
get_accName(int varChild,
int pszName) |
(package private) int |
get_accParent(int ppdispParent) |
(package private) int |
get_accRole(int varChild,
int pvarRole) |
(package private) int |
get_accSelection(int pvarChildren) |
(package private) int |
get_accState(int varChild,
int pvarState) |
(package private) int |
get_accValue(int varChild,
int pszValue) |
(package private) int |
get_anchor(int index,
int pAnchor) |
(package private) int |
get_anchorTarget(int index,
int pAnchorTarget) |
(package private) int |
get_appName(int pbstrName) |
(package private) int |
get_appVersion(int pbstrVersion) |
(package private) int |
get_attributes(int pbstrAttributes) |
(package private) int |
get_attributes(int offset,
int pStartOffset,
int pEndOffset,
int pbstrTextAttributes) |
(package private) int |
get_caption(int ppAccessible) |
(package private) int |
get_caretOffset(int pOffset) |
(package private) int |
get_cellAt(int row,
int column,
int ppCell) |
(package private) int |
get_characterExtents(int offset,
int coordType,
int pX,
int pY,
int pWidth,
int pHeight) |
(package private) int |
get_columnDescription(int column,
int pbstrDescription) |
(package private) int |
get_columnExtent(int pNColumnsSpanned) |
(package private) int |
get_columnHeaderCells(int ppCellAccessibles,
int pNColumnHeaderCells) |
(package private) int |
get_columnIndex(int pColumnIndex) |
(package private) int |
get_currentValue(int pCurrentValue) |
(package private) int |
get_description(int actionIndex,
int pbstrDescription) |
(package private) int |
get_endIndex(int pIndex) |
(package private) int |
get_extendedRole(int pbstrExtendedRole) |
(package private) int |
get_extendedStates(int maxExtendedStates,
int ppbstrExtendedStates,
int pNExtendedStates) |
(package private) int |
get_groupPosition(int pGroupLevel,
int pSimilarItemsInGroup,
int pPositionInGroup) |
(package private) int |
get_hyperlink(int index,
int ppHyperlink) |
(package private) int |
get_hyperlinkIndex(int charIndex,
int pHyperlinkIndex) |
(package private) int |
get_indexInParent(int pIndexInParent) |
(package private) int |
get_isColumnSelected(int column,
int pIsSelected) |
(package private) int |
get_isRowSelected(int row,
int pIsSelected) |
(package private) int |
get_isSelected(int pIsSelected) |
(package private) int |
get_keyBinding(int actionIndex,
int nMaxBindings,
int ppbstrKeyBindings,
int pNBindings) |
(package private) int |
get_locale(int pLocale) |
(package private) int |
get_localizedExtendedRole(int pbstrLocalizedExtendedRole) |
(package private) int |
get_localizedExtendedStates(int maxLocalizedExtendedStates,
int ppbstrLocalizedExtendedStates,
int pNLocalizedExtendedStates) |
(package private) int |
get_localizedName(int actionIndex,
int pbstrLocalizedName) |
(package private) int |
get_maximumValue(int pMaximumValue) |
(package private) int |
get_minimumValue(int pMinimumValue) |
(package private) int |
get_modelChange(int pModelChange) |
(package private) int |
get_nActions(int pNActions) |
(package private) int |
get_name(int actionIndex,
int pbstrName) |
(package private) int |
get_nCharacters(int pNCharacters) |
(package private) int |
get_nColumns(int pColumnCount) |
(package private) int |
get_newText(int pNewText) |
(package private) int |
get_nExtendedStates(int pNExtendedStates) |
(package private) int |
get_nHyperlinks(int pHyperlinkCount) |
(package private) int |
get_nRelations(int pNRelations) |
(package private) int |
get_nRows(int pRowCount) |
(package private) int |
get_nSelectedCells(int pCellCount) |
(package private) int |
get_nSelectedColumns(int pColumnCount) |
(package private) int |
get_nSelectedRows(int pRowCount) |
(package private) int |
get_nSelections(int pNSelections) |
(package private) int |
get_offsetAtPoint(int x,
int y,
int coordType,
int pOffset) |
(package private) int |
get_oldText(int pOldText) |
(package private) int |
get_relation(int relationIndex,
int ppRelation) |
(package private) int |
get_relations(int maxRelations,
int ppRelations,
int pNRelations) |
(package private) int |
get_role(int pRole) |
(package private) int |
get_rowColumnExtents(int pRow,
int pColumn,
int pRowExtents,
int pColumnExtents,
int pIsSelected) |
(package private) int |
get_rowDescription(int row,
int pbstrDescription) |
(package private) int |
get_rowExtent(int pNRowsSpanned) |
(package private) int |
get_rowHeaderCells(int ppCellAccessibles,
int pNRowHeaderCells) |
(package private) int |
get_rowIndex(int pRowIndex) |
(package private) int |
get_selectedCells(int ppCells,
int pNSelectedCells) |
(package private) int |
get_selectedColumns(int ppSelectedColumns,
int pNColumns) |
(package private) int |
get_selectedRows(int ppSelectedRows,
int pNRows) |
(package private) int |
get_selection(int selectionIndex,
int pStartOffset,
int pEndOffset) |
(package private) int |
get_startIndex(int pIndex) |
(package private) int |
get_states(int pStates) |
(package private) int |
get_summary(int ppAccessible) |
(package private) int |
get_table(int ppTable) |
(package private) int |
get_text(int startOffset,
int endOffset,
int pbstrText) |
(package private) int |
get_textAfterOffset(int offset,
int boundaryType,
int pStartOffset,
int pEndOffset,
int pbstrText) |
(package private) int |
get_textAtOffset(int offset,
int boundaryType,
int pStartOffset,
int pEndOffset,
int pbstrText) |
(package private) int |
get_textBeforeOffset(int offset,
int boundaryType,
int pStartOffset,
int pEndOffset,
int pbstrText) |
(package private) int |
get_toolkitName(int pbstrName) |
(package private) int |
get_toolkitVersion(int pbstrVersion) |
(package private) int |
get_uniqueID(int pUniqueID) |
(package private) int |
get_valid(int pValid) |
(package private) int |
get_windowHandle(int pWindowHandle) |
(package private) int |
getAddress() |
(package private) int |
getCaretOffset() |
(package private) int |
getCharacterCount() |
Control |
getControl()
Returns the control for this Accessible object.
|
(package private) int |
getDefaultRole() |
(package private) java.lang.String |
getEventString(int event) |
(package private) java.lang.String |
getIA2StatesString(int ia2States) |
(package private) java.lang.Number |
getNumberVARIANT(int variant) |
(package private) int |
getRelationCount() |
(package private) int |
getRole() |
(package private) java.lang.String |
getRoleString(int role) |
(package private) java.lang.String |
getStateString(int state) |
(package private) java.lang.String |
getString(int psz) |
(package private) VARIANT |
getVARIANT(int variant) |
(package private) java.lang.String |
guidString(GUID guid) |
private java.lang.String |
hresult(int code) |
(package private) static GUID |
IIDFromString(java.lang.String lpsz) |
(package private) int |
insertText(int offset,
int pbstrText) |
(package private) boolean |
interesting(GUID guid) |
void |
internal_dispose_Accessible()
Invokes platform specific functionality to dispose an accessible object.
|
static Accessible |
internal_new_Accessible(Control control)
Invokes platform specific functionality to allocate a new accessible object.
|
int |
internal_WM_GETOBJECT(int wParam,
int lParam)
Invokes platform specific functionality to handle a window message.
|
(package private) boolean |
isValidThread() |
(package private) int |
Next(int celt,
int rgvar,
int pceltFetched) |
(package private) int |
osToChildID(int osChildID) |
(package private) int |
osToRole(int osRole) |
(package private) int |
osToState(int osState) |
(package private) int |
pasteText(int offset) |
(package private) static void |
print(java.lang.String str) |
(package private) int |
put_accName(int varChild,
int szName) |
(package private) int |
put_accValue(int varChild,
int szValue) |
(package private) int |
queryAccessible2Interfaces(GUID guid,
int ppvObject) |
(package private) int |
QueryInterface(int iid,
int ppvObject) |
(package private) int |
QueryService(int guidService,
int riid,
int ppvObject) |
(package private) int |
Release() |
void |
removeAccessibleActionListener(AccessibleActionListener listener)
Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleActionListener interface. |
void |
removeAccessibleAttributeListener(AccessibleAttributeListener listener)
Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleAttributeListener interface. |
void |
removeAccessibleControlListener(AccessibleControlListener listener)
Removes the listener from the collection of listeners who will
be notified when an accessible client asks for custom control
specific information.
|
void |
removeAccessibleEditableTextListener(AccessibleEditableTextListener listener)
Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleEditableTextListener interface. |
void |
removeAccessibleHyperlinkListener(AccessibleHyperlinkListener listener)
Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleHyperlinkListener interface. |
void |
removeAccessibleListener(AccessibleListener listener)
Removes the listener from the collection of listeners who will
be notified when an accessible client asks for certain strings,
such as name, description, help, or keyboard shortcut.
|
void |
removeAccessibleTableCellListener(AccessibleTableCellListener listener)
Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleTableCellListener interface. |
void |
removeAccessibleTableListener(AccessibleTableListener listener)
Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleTableListener interface. |
void |
removeAccessibleTextListener(AccessibleTextListener listener)
Removes the listener from the collection of listeners who will
be notified when an accessible client asks for custom text control
specific information.
|
void |
removeAccessibleValueListener(AccessibleValueListener listener)
Removes the listener from the collection of listeners that will be
notified when an accessible client asks for any of the properties
defined in the
AccessibleValueListener interface. |
void |
removeRelation(int type,
Accessible target)
Removes the relation with the specified type and target
from the receiver's set of relations.
|
(package private) int |
removeSelection(int selectionIndex) |
(package private) int |
replaceText(int startOffset,
int endOffset,
int pbstrText) |
(package private) int |
Reset() |
(package private) int |
roleToOs(int role) |
(package private) int |
scrollSubstringTo(int startIndex,
int endIndex,
int scrollType) |
(package private) int |
scrollSubstringToPoint(int startIndex,
int endIndex,
int coordinateType,
int x,
int y) |
(package private) int |
scrollTo(int scrollType) |
(package private) int |
scrollToPoint(int coordinateType,
int x,
int y) |
(package private) int |
selectColumn(int column) |
void |
selectionChanged()
Sends a message to accessible clients that the child selection
within a custom container control has changed.
|
(package private) int |
selectRow(int row) |
void |
sendEvent(int event,
java.lang.Object eventData)
Sends a message with event-specific data to accessible clients
indicating that something has changed within a custom control.
|
void |
sendEvent(int event,
java.lang.Object eventData,
int childID)
Sends a message with event-specific data and a childID
to accessible clients, indicating that something has changed
within a custom control.
|
(package private) int |
setAttributes(int startOffset,
int endOffset,
int pbstrAttributes) |
(package private) int |
setCaretOffset(int offset) |
(package private) int |
setCurrentValue(int value) |
void |
setFocus(int childID)
Sends a message to accessible clients indicating that the focus
has changed within a custom control.
|
(package private) void |
setIntVARIANT(int variant,
short vt,
int lVal) |
(package private) void |
setNumberVARIANT(int variant,
java.lang.Number number) |
(package private) void |
setPtrVARIANT(int variant,
short vt,
int lVal) |
(package private) int |
setSelection(int selectionIndex,
int startOffset,
int endOffset) |
(package private) void |
setString(int psz,
java.lang.String string) |
(package private) void |
setStringVARIANT(int variant,
java.lang.String string) |
(package private) int |
Skip(int celt) |
(package private) int |
stateToOs(int state) |
void |
textCaretMoved(int index)
Sends a message to accessible clients that the text
caret has moved within a custom control.
|
void |
textChanged(int type,
int startIndex,
int length)
Sends a message to accessible clients that the text
within a custom control has changed.
|
void |
textSelectionChanged()
Sends a message to accessible clients that the text
selection has changed within a custom control.
|
java.lang.String |
toString() |
(package private) int |
unselectColumn(int column) |
(package private) int |
unselectRow(int row) |
static final int MAX_RELATION_TYPES
static final int TABLE_MODEL_CHANGE_SIZE
static final int TEXT_CHANGE_SIZE
static final boolean DEBUG
static final java.lang.String PROPERTY_USEIA2
static boolean UseIA2
static int UniqueID
int refCount
int enumIndex
COMObject objIAccessible
COMObject objIEnumVARIANT
COMObject objIServiceProvider
COMObject objIAccessible2
COMObject objIAccessibleAction
COMObject objIAccessibleApplication
COMObject objIAccessibleEditableText
COMObject objIAccessibleHyperlink
COMObject objIAccessibleHypertext
COMObject objIAccessibleTable2
COMObject objIAccessibleTableCell
COMObject objIAccessibleText
COMObject objIAccessibleValue
IAccessible iaccessible
java.util.Vector accessibleListeners
java.util.Vector accessibleControlListeners
java.util.Vector accessibleTextListeners
java.util.Vector accessibleActionListeners
java.util.Vector accessibleEditableTextListeners
java.util.Vector accessibleHyperlinkListeners
java.util.Vector accessibleTableListeners
java.util.Vector accessibleTableCellListeners
java.util.Vector accessibleTextExtendedListeners
java.util.Vector accessibleValueListeners
java.util.Vector accessibleAttributeListeners
Relation[] relations
java.lang.Object[] variants
Accessible parent
java.util.Vector children
Control control
int uniqueID
int[] tableChange
java.lang.Object[] textDeleted
java.lang.Object[] textInserted
ToolItem item
public Accessible(Accessible parent)
parent
- the Accessible parent, which must not be nulljava.lang.IllegalArgumentException
- dispose()
,
Control.getAccessible()
protected Accessible()
Accessible(Control control)
Accessible(Accessible parent, int iaccessible_address)
static Accessible checkNull(Accessible parent)
void createIAccessible()
void createIAccessible2()
void createIAccessibleAction()
void createIAccessibleApplication()
void createIAccessibleEditableText()
void createIAccessibleHyperlink()
void createIAccessibleHypertext()
void createIAccessibleTable2()
void createIAccessibleTableCell()
void createIAccessibleText()
void createIAccessibleValue()
void createIEnumVARIANT()
void createIServiceProvider()
public static Accessible internal_new_Accessible(Control control)
IMPORTANT: This method is not part of the public
API for Accessible
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
control
- the control to get the accessible object forpublic void addAccessibleListener(AccessibleListener listener)
AccessibleListener
interface.listener
- the listener that should be notified when the receiver
is asked for a name, description, help, or keyboard shortcut stringjava.lang.IllegalArgumentException
- SWTException
- AccessibleListener
,
removeAccessibleListener(org.eclipse.swt.accessibility.AccessibleListener)
public void addAccessibleControlListener(AccessibleControlListener listener)
AccessibleControlListener
interface.listener
- the listener that should be notified when the receiver
is asked for custom control specific informationjava.lang.IllegalArgumentException
- SWTException
- AccessibleControlListener
,
removeAccessibleControlListener(org.eclipse.swt.accessibility.AccessibleControlListener)
public void addAccessibleTextListener(AccessibleTextListener listener)
AccessibleTextListener
and AccessibleTextExtendedListener
interfaces.listener
- the listener that should be notified when the receiver
is asked for custom text control specific informationjava.lang.IllegalArgumentException
- SWTException
- AccessibleTextListener
,
AccessibleTextExtendedListener
,
removeAccessibleTextListener(org.eclipse.swt.accessibility.AccessibleTextListener)
public void addAccessibleActionListener(AccessibleActionListener listener)
AccessibleActionListener
interface.listener
- the listener that should be notified when the receiver
is asked for AccessibleActionListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleActionListener
,
removeAccessibleActionListener(org.eclipse.swt.accessibility.AccessibleActionListener)
public void addAccessibleEditableTextListener(AccessibleEditableTextListener listener)
AccessibleEditableTextListener
interface.listener
- the listener that should be notified when the receiver
is asked for AccessibleEditableTextListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleEditableTextListener
,
removeAccessibleEditableTextListener(org.eclipse.swt.accessibility.AccessibleEditableTextListener)
public void addAccessibleHyperlinkListener(AccessibleHyperlinkListener listener)
AccessibleHyperlinkListener
interface.listener
- the listener that should be notified when the receiver
is asked for AccessibleHyperlinkListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleHyperlinkListener
,
removeAccessibleHyperlinkListener(org.eclipse.swt.accessibility.AccessibleHyperlinkListener)
public void addAccessibleTableListener(AccessibleTableListener listener)
AccessibleTableListener
interface.listener
- the listener that should be notified when the receiver
is asked for AccessibleTableListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleTableListener
,
removeAccessibleTableListener(org.eclipse.swt.accessibility.AccessibleTableListener)
public void addAccessibleTableCellListener(AccessibleTableCellListener listener)
AccessibleTableCellListener
interface.listener
- the listener that should be notified when the receiver
is asked for AccessibleTableCellListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleTableCellListener
,
removeAccessibleTableCellListener(org.eclipse.swt.accessibility.AccessibleTableCellListener)
public void addAccessibleValueListener(AccessibleValueListener listener)
AccessibleValueListener
interface.listener
- the listener that should be notified when the receiver
is asked for AccessibleValueListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleValueListener
,
removeAccessibleValueListener(org.eclipse.swt.accessibility.AccessibleValueListener)
public void addAccessibleAttributeListener(AccessibleAttributeListener listener)
AccessibleAttributeListener
interface.listener
- the listener that should be notified when the receiver
is asked for AccessibleAttributeListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleAttributeListener
,
removeAccessibleAttributeListener(org.eclipse.swt.accessibility.AccessibleAttributeListener)
public void addRelation(int type, Accessible target)
type
- an ACC
constant beginning with RELATION_* indicating the type of relationtarget
- the accessible that is the target for this relationpublic void dispose()
This method should be called when an accessible that was created
with the public constructor Accessible(Accessible parent)
is no longer needed. You do not need to call this when the receiver's
control is disposed, because all Accessible
instances
associated with a control are released when the control is disposed.
It is also not necessary to call this for instances of Accessible
that were retrieved with Control.getAccessible()
.
int getAddress()
public Control getControl()
public void internal_dispose_Accessible()
IMPORTANT: This method is not part of the public
API for Accessible
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
public int internal_WM_GETOBJECT(int wParam, int lParam)
IMPORTANT: This method is not part of the public
API for Accessible
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
public void removeAccessibleListener(AccessibleListener listener)
listener
- the listener that should no longer be notified when the receiver
is asked for a name, description, help, or keyboard shortcut stringjava.lang.IllegalArgumentException
- SWTException
- AccessibleListener
,
addAccessibleListener(org.eclipse.swt.accessibility.AccessibleListener)
public void removeAccessibleControlListener(AccessibleControlListener listener)
listener
- the listener that should no longer be notified when the receiver
is asked for custom control specific informationjava.lang.IllegalArgumentException
- SWTException
- AccessibleControlListener
,
addAccessibleControlListener(org.eclipse.swt.accessibility.AccessibleControlListener)
public void removeAccessibleTextListener(AccessibleTextListener listener)
listener
- the listener that should no longer be notified when the receiver
is asked for custom text control specific informationjava.lang.IllegalArgumentException
- SWTException
- AccessibleTextListener
,
AccessibleTextExtendedListener
,
addAccessibleTextListener(org.eclipse.swt.accessibility.AccessibleTextListener)
public void removeAccessibleActionListener(AccessibleActionListener listener)
AccessibleActionListener
interface.listener
- the listener that should no longer be notified when the receiver
is asked for AccessibleActionListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleActionListener
,
addAccessibleActionListener(org.eclipse.swt.accessibility.AccessibleActionListener)
public void removeAccessibleEditableTextListener(AccessibleEditableTextListener listener)
AccessibleEditableTextListener
interface.listener
- the listener that should no longer be notified when the receiver
is asked for AccessibleEditableTextListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleEditableTextListener
,
addAccessibleEditableTextListener(org.eclipse.swt.accessibility.AccessibleEditableTextListener)
public void removeAccessibleHyperlinkListener(AccessibleHyperlinkListener listener)
AccessibleHyperlinkListener
interface.listener
- the listener that should no longer be notified when the receiver
is asked for AccessibleHyperlinkListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleHyperlinkListener
,
addAccessibleHyperlinkListener(org.eclipse.swt.accessibility.AccessibleHyperlinkListener)
public void removeAccessibleTableListener(AccessibleTableListener listener)
AccessibleTableListener
interface.listener
- the listener that should no longer be notified when the receiver
is asked for AccessibleTableListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleTableListener
,
addAccessibleTableListener(org.eclipse.swt.accessibility.AccessibleTableListener)
public void removeAccessibleTableCellListener(AccessibleTableCellListener listener)
AccessibleTableCellListener
interface.listener
- the listener that should no longer be notified when the receiver
is asked for AccessibleTableCellListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleTableCellListener
,
addAccessibleTableCellListener(org.eclipse.swt.accessibility.AccessibleTableCellListener)
public void removeAccessibleValueListener(AccessibleValueListener listener)
AccessibleValueListener
interface.listener
- the listener that should no longer be notified when the receiver
is asked for AccessibleValueListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleValueListener
,
addAccessibleValueListener(org.eclipse.swt.accessibility.AccessibleValueListener)
public void removeAccessibleAttributeListener(AccessibleAttributeListener listener)
AccessibleAttributeListener
interface.listener
- the listener that should no longer be notified when the receiver
is asked for AccessibleAttributeListener
interface propertiesjava.lang.IllegalArgumentException
- SWTException
- AccessibleAttributeListener
,
addAccessibleAttributeListener(org.eclipse.swt.accessibility.AccessibleAttributeListener)
public void removeRelation(int type, Accessible target)
type
- an ACC
constant beginning with RELATION_* indicating the type of relationtarget
- the accessible that is the target for this relationpublic void sendEvent(int event, java.lang.Object eventData)
event
- an ACC
constant beginning with EVENT_* indicating the message to sendeventData
- an object containing event-specific data, or null if there is no event-specific data
(eventData is specified in the documentation for individual ACC.EVENT_* constants)SWTException
- ACC.EVENT_ACTION_CHANGED
,
ACC.EVENT_ATTRIBUTE_CHANGED
,
ACC.EVENT_DESCRIPTION_CHANGED
,
ACC.EVENT_DOCUMENT_LOAD_COMPLETE
,
ACC.EVENT_DOCUMENT_LOAD_STOPPED
,
ACC.EVENT_DOCUMENT_RELOAD
,
ACC.EVENT_HYPERLINK_ACTIVATED
,
ACC.EVENT_HYPERLINK_ANCHOR_COUNT_CHANGED
,
ACC.EVENT_HYPERLINK_END_INDEX_CHANGED
,
ACC.EVENT_HYPERLINK_SELECTED_LINK_CHANGED
,
ACC.EVENT_HYPERLINK_START_INDEX_CHANGED
,
ACC.EVENT_HYPERTEXT_LINK_COUNT_CHANGED
,
ACC.EVENT_HYPERTEXT_LINK_SELECTED
,
ACC.EVENT_LOCATION_CHANGED
,
ACC.EVENT_NAME_CHANGED
,
ACC.EVENT_PAGE_CHANGED
,
ACC.EVENT_SECTION_CHANGED
,
ACC.EVENT_SELECTION_CHANGED
,
ACC.EVENT_STATE_CHANGED
,
ACC.EVENT_TABLE_CAPTION_CHANGED
,
ACC.EVENT_TABLE_CHANGED
,
ACC.EVENT_TABLE_COLUMN_DESCRIPTION_CHANGED
,
ACC.EVENT_TABLE_COLUMN_HEADER_CHANGED
,
ACC.EVENT_TABLE_ROW_DESCRIPTION_CHANGED
,
ACC.EVENT_TABLE_ROW_HEADER_CHANGED
,
ACC.EVENT_TABLE_SUMMARY_CHANGED
,
ACC.EVENT_TEXT_ATTRIBUTE_CHANGED
,
ACC.EVENT_TEXT_CARET_MOVED
,
ACC.EVENT_TEXT_CHANGED
,
ACC.EVENT_TEXT_COLUMN_CHANGED
,
ACC.EVENT_TEXT_SELECTION_CHANGED
,
ACC.EVENT_VALUE_CHANGED
public void sendEvent(int event, java.lang.Object eventData, int childID)
event
- an ACC
constant beginning with EVENT_* indicating the message to sendeventData
- an object containing event-specific data, or null if there is no event-specific data
(eventData is specified in the documentation for individual ACC.EVENT_* constants)childID
- an identifier specifying a child of the controlSWTException
- ACC.EVENT_DESCRIPTION_CHANGED
,
ACC.EVENT_LOCATION_CHANGED
,
ACC.EVENT_NAME_CHANGED
,
ACC.EVENT_SELECTION_CHANGED
,
ACC.EVENT_STATE_CHANGED
,
ACC.EVENT_TEXT_SELECTION_CHANGED
,
ACC.EVENT_VALUE_CHANGED
public void selectionChanged()
SWTException
- public void setFocus(int childID)
childID
- an identifier specifying a child of the controlSWTException
- public void textCaretMoved(int index)
index
- the new caret index within the controlSWTException
- public void textChanged(int type, int startIndex, int length)
type
- the type of change, one of ACC.TEXT_INSERT
or ACC.TEXT_DELETE
startIndex
- the text index within the control where the insertion or deletion beginslength
- the non-negative length in characters of the insertion or deletionSWTException
- ACC.TEXT_INSERT
,
ACC.TEXT_DELETE
public void textSelectionChanged()
SWTException
- int QueryInterface(int iid, int ppvObject)
int AddRef()
int Release()
int QueryService(int guidService, int riid, int ppvObject)
int queryAccessible2Interfaces(GUID guid, int ppvObject)
int accDoDefaultAction(int varChild)
int accHitTest(int xLeft, int yTop, int pvarChild)
int accLocation(int pxLeft, int pyTop, int pcxWidth, int pcyHeight, int varChild)
int accNavigate(int navDir, int varStart, int pvarEndUpAt)
int accSelect(int flagsSelect, int varChild)
int get_accChild(int varChild, int ppdispChild)
int get_accChildCount(int pcountChildren)
int get_accDefaultAction(int varChild, int pszDefaultAction)
int get_accDescription(int varChild, int pszDescription)
int get_accFocus(int pvarChild)
int get_accHelp(int varChild, int pszHelp)
int get_accHelpTopic(int pszHelpFile, int varChild, int pidTopic)
int get_accKeyboardShortcut(int varChild, int pszKeyboardShortcut)
int get_accName(int varChild, int pszName)
int get_accParent(int ppdispParent)
int get_accRole(int varChild, int pvarRole)
int get_accSelection(int pvarChildren)
int get_accState(int varChild, int pvarState)
int get_accValue(int varChild, int pszValue)
int put_accName(int varChild, int szName)
int put_accValue(int varChild, int szValue)
int Next(int celt, int rgvar, int pceltFetched)
int Skip(int celt)
int Reset()
int Clone(int ppEnum)
int get_nRelations(int pNRelations)
int get_relation(int relationIndex, int ppRelation)
int get_relations(int maxRelations, int ppRelations, int pNRelations)
int get_role(int pRole)
int scrollTo(int scrollType)
int scrollToPoint(int coordinateType, int x, int y)
int get_groupPosition(int pGroupLevel, int pSimilarItemsInGroup, int pPositionInGroup)
int get_states(int pStates)
int get_extendedRole(int pbstrExtendedRole)
int get_localizedExtendedRole(int pbstrLocalizedExtendedRole)
int get_nExtendedStates(int pNExtendedStates)
int get_extendedStates(int maxExtendedStates, int ppbstrExtendedStates, int pNExtendedStates)
int get_localizedExtendedStates(int maxLocalizedExtendedStates, int ppbstrLocalizedExtendedStates, int pNLocalizedExtendedStates)
int get_uniqueID(int pUniqueID)
int get_windowHandle(int pWindowHandle)
int get_indexInParent(int pIndexInParent)
int get_locale(int pLocale)
int get_attributes(int pbstrAttributes)
int get_nActions(int pNActions)
int doAction(int actionIndex)
int get_description(int actionIndex, int pbstrDescription)
int get_keyBinding(int actionIndex, int nMaxBindings, int ppbstrKeyBindings, int pNBindings)
int get_name(int actionIndex, int pbstrName)
int get_localizedName(int actionIndex, int pbstrLocalizedName)
int get_appName(int pbstrName)
int get_appVersion(int pbstrVersion)
int get_toolkitName(int pbstrName)
int get_toolkitVersion(int pbstrVersion)
int copyText(int startOffset, int endOffset)
int deleteText(int startOffset, int endOffset)
int insertText(int offset, int pbstrText)
int cutText(int startOffset, int endOffset)
int pasteText(int offset)
int replaceText(int startOffset, int endOffset, int pbstrText)
int setAttributes(int startOffset, int endOffset, int pbstrAttributes)
int get_anchor(int index, int pAnchor)
int get_anchorTarget(int index, int pAnchorTarget)
int get_startIndex(int pIndex)
int get_endIndex(int pIndex)
int get_valid(int pValid)
int get_nHyperlinks(int pHyperlinkCount)
int get_hyperlink(int index, int ppHyperlink)
int get_hyperlinkIndex(int charIndex, int pHyperlinkIndex)
int get_cellAt(int row, int column, int ppCell)
int get_caption(int ppAccessible)
int get_columnDescription(int column, int pbstrDescription)
int get_nColumns(int pColumnCount)
int get_nRows(int pRowCount)
int get_nSelectedCells(int pCellCount)
int get_nSelectedColumns(int pColumnCount)
int get_nSelectedRows(int pRowCount)
int get_rowDescription(int row, int pbstrDescription)
int get_selectedCells(int ppCells, int pNSelectedCells)
int get_selectedColumns(int ppSelectedColumns, int pNColumns)
int get_selectedRows(int ppSelectedRows, int pNRows)
int get_summary(int ppAccessible)
int get_isColumnSelected(int column, int pIsSelected)
int get_isRowSelected(int row, int pIsSelected)
int selectRow(int row)
int selectColumn(int column)
int unselectRow(int row)
int unselectColumn(int column)
int get_modelChange(int pModelChange)
int get_columnExtent(int pNColumnsSpanned)
int get_columnHeaderCells(int ppCellAccessibles, int pNColumnHeaderCells)
int get_columnIndex(int pColumnIndex)
int get_rowExtent(int pNRowsSpanned)
int get_rowHeaderCells(int ppCellAccessibles, int pNRowHeaderCells)
int get_rowIndex(int pRowIndex)
int get_isSelected(int pIsSelected)
int get_rowColumnExtents(int pRow, int pColumn, int pRowExtents, int pColumnExtents, int pIsSelected)
int get_table(int ppTable)
int addSelection(int startOffset, int endOffset)
int get_attributes(int offset, int pStartOffset, int pEndOffset, int pbstrTextAttributes)
int get_caretOffset(int pOffset)
int get_characterExtents(int offset, int coordType, int pX, int pY, int pWidth, int pHeight)
int get_nSelections(int pNSelections)
int get_offsetAtPoint(int x, int y, int coordType, int pOffset)
int get_selection(int selectionIndex, int pStartOffset, int pEndOffset)
int get_text(int startOffset, int endOffset, int pbstrText)
int get_textBeforeOffset(int offset, int boundaryType, int pStartOffset, int pEndOffset, int pbstrText)
int get_textAfterOffset(int offset, int boundaryType, int pStartOffset, int pEndOffset, int pbstrText)
int get_textAtOffset(int offset, int boundaryType, int pStartOffset, int pEndOffset, int pbstrText)
int removeSelection(int selectionIndex)
int setCaretOffset(int offset)
int setSelection(int selectionIndex, int startOffset, int endOffset)
int get_nCharacters(int pNCharacters)
int scrollSubstringTo(int startIndex, int endIndex, int scrollType)
int scrollSubstringToPoint(int startIndex, int endIndex, int coordinateType, int x, int y)
int get_newText(int pNewText)
int get_oldText(int pOldText)
int get_currentValue(int pCurrentValue)
int setCurrentValue(int value)
int get_maximumValue(int pMaximumValue)
int get_minimumValue(int pMinimumValue)
int eventChildID()
void checkUniqueID(int childID)
int childIDToOs(int childID)
int osToChildID(int osChildID)
int stateToOs(int state)
int osToState(int osState)
int roleToOs(int role)
int osToRole(int osRole)
Color colorFromString(java.lang.String rgbString)
int getCaretOffset()
int getCharacterCount()
int getRelationCount()
int getRole()
int getDefaultRole()
java.lang.String getString(int psz)
VARIANT getVARIANT(int variant)
java.lang.Number getNumberVARIANT(int variant)
void setIntVARIANT(int variant, short vt, int lVal)
void setPtrVARIANT(int variant, short vt, int lVal)
void setNumberVARIANT(int variant, java.lang.Number number)
void setString(int psz, java.lang.String string)
void setStringVARIANT(int variant, java.lang.String string)
void checkWidget()
boolean isValidThread()
static void print(java.lang.String str)
java.lang.String getRoleString(int role)
java.lang.String getStateString(int state)
java.lang.String getIA2StatesString(int ia2States)
java.lang.String getEventString(int event)
private java.lang.String hresult(int code)
boolean interesting(GUID guid)
java.lang.String guidString(GUID guid)
static GUID IIDFromString(java.lang.String lpsz)
public java.lang.String toString()
toString
in class java.lang.Object