本文整理了Java中org.eclipse.swt.accessibility.Accessible.getAccessibleObject()
方法的一些代码示例,展示了Accessible.getAccessibleObject()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Accessible.getAccessibleObject()
方法的具体详情如下:
包路径:org.eclipse.swt.accessibility.Accessible
类名称:Accessible
方法名:getAccessibleObject
暂无
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
AccessibleObject getAccessibleObject () {
if (accessibleObject == null) {
if (parent == null) {
AccessibleFactory.createAccessible(this);
} else {
accessibleObject = AccessibleFactory.createChildAccessible(this, ACC.CHILDID_SELF);
accessibleObject.parent = parent.getAccessibleObject();
}
}
return accessibleObject;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
AccessibleObject getAccessibleObject () {
if (accessibleObject == null) {
if (parent == null) {
AccessibleFactory.createAccessible(this);
} else {
accessibleObject = AccessibleFactory.createChildAccessible(this, ACC.CHILDID_SELF);
accessibleObject.parent = parent.getAccessibleObject();
}
}
return accessibleObject;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
AccessibleObject getAccessibleObject () {
if (accessibleObject == null) {
if (parent == null) {
AccessibleFactory.createAccessible(this);
} else {
accessibleObject = AccessibleFactory.createChildAccessible(this, ACC.CHILDID_SELF);
accessibleObject.parent = parent.getAccessibleObject();
}
}
return accessibleObject;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void removeRelation (int type, Accessible target) {
AccessibleObject targetAccessibleObject = target.getAccessibleObject();
if (targetAccessibleObject != null) {
/*
* FIXME: Workaround for https://bugs.eclipse.org/312451
*
* This null check is conceptually wrong and will probably cause
* inconsistent behavior, but since we don't know in what
* circumstances the target doesn't have an accessibleObject, that's
* the best way we know to avoid throwing an NPE.
*/
OS.atk_object_remove_relationship (handle, toATKRelation(type), targetAccessibleObject.handle);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void removeRelation (int type, Accessible target) {
AccessibleObject targetAccessibleObject = target.getAccessibleObject();
if (targetAccessibleObject != null) {
/*
* FIXME: Workaround for https://bugs.eclipse.org/312451
*
* This null check is conceptually wrong and will probably cause
* inconsistent behavior, but since we don't know in what
* circumstances the target doesn't have an accessibleObject, that's
* the best way we know to avoid throwing an NPE.
*/
OS.atk_object_remove_relationship (handle, toATKRelation(type), targetAccessibleObject.handle);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
void addRelation (int type, Accessible target) {
AccessibleObject targetAccessibleObject = target.getAccessibleObject();
if (targetAccessibleObject != null) {
/*
* FIXME: Workaround for https://bugs.eclipse.org/312451
*
* This null check is conceptually wrong and will probably cause
* inconsistent behavior, but since we don't know in what
* circumstances the target doesn't have an accessibleObject, that's
* the best way we know to avoid throwing an NPE.
*/
OS.atk_object_add_relationship(handle, toATKRelation(type), targetAccessibleObject.handle);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
void addRelation (int type, Accessible target) {
AccessibleObject targetAccessibleObject = target.getAccessibleObject();
if (targetAccessibleObject != null) {
/*
* FIXME: Workaround for https://bugs.eclipse.org/312451
*
* This null check is conceptually wrong and will probably cause
* inconsistent behavior, but since we don't know in what
* circumstances the target doesn't have an accessibleObject, that's
* the best way we know to avoid throwing an NPE.
*/
OS.atk_object_add_relationship(handle, toATKRelation(type), targetAccessibleObject.handle);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void addRelation (int type, Accessible target) {
AccessibleObject targetAccessibleObject = target.getAccessibleObject();
if (targetAccessibleObject != null) {
/*
* FIXME: Workaround for https://bugs.eclipse.org/312451
*
* This null check is conceptually wrong and will probably cause
* inconsistent behavior, but since we don't know in what
* circumstances the target doesn't have an accessibleObject, that's
* the best way we know to avoid throwing an NPE.
*/
OS.atk_object_add_relationship(handle, toATKRelation(type), targetAccessibleObject.handle);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
void removeRelation (int type, Accessible target) {
AccessibleObject targetAccessibleObject = target.getAccessibleObject();
if (targetAccessibleObject != null) {
/*
* FIXME: Workaround for https://bugs.eclipse.org/312451
*
* This null check is conceptually wrong and will probably cause
* inconsistent behavior, but since we don't know in what
* circumstances the target doesn't have an accessibleObject, that's
* the best way we know to avoid throwing an NPE.
*/
OS.atk_object_remove_relationship (handle, toATKRelation(type), targetAccessibleObject.handle);
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
static int /*long*/ atkHypertext_get_link (int /*long*/ atkObject, int /*long*/ link_index) {
if (DEBUG) print ("-->atkHypertext_get_link");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTextExtendedListener> listeners = accessible.accessibleTextExtendedListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTextEvent event = new AccessibleTextEvent(accessible);
event.index = (int)/*int*/link_index;
for (int i = 0; i < length; i++) {
AccessibleTextExtendedListener listener = listeners.get(i);
listener.getHyperlink(event);
}
Accessible result = event.accessible;
return result != null ? result.getAccessibleObject().handle : 0;
}
}
int /*long*/ parentResult = 0;
AtkHypertextIface iface = getHypertextIface (atkObject);
if (iface != null && iface.get_link != 0) {
parentResult = ATK.call (iface.get_link, atkObject, link_index);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
static long /*int*/ atkHypertext_get_link (long /*int*/ atkObject, long /*int*/ link_index) {
if (DEBUG) print ("-->atkHypertext_get_link");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTextExtendedListener> listeners = accessible.accessibleTextExtendedListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTextEvent event = new AccessibleTextEvent(accessible);
event.index = (int)/*int*/link_index;
for (int i = 0; i < length; i++) {
AccessibleTextExtendedListener listener = listeners.get(i);
listener.getHyperlink(event);
}
Accessible result = event.accessible;
return result != null ? result.getAccessibleObject().handle : 0;
}
}
long /*int*/ parentResult = 0;
AtkHypertextIface iface = getHypertextIface (atkObject);
if (iface != null && iface.get_link != 0) {
parentResult = ATK.call (iface.get_link, atkObject, link_index);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
static int /*long*/ atkTable_get_caption (int /*long*/ atkObject) {
if (DEBUG) print ("-->atkTable_get_caption");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTableListener> listeners = accessible.accessibleTableListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTableEvent event = new AccessibleTableEvent(accessible);
for (int i = 0; i < length; i++) {
AccessibleTableListener listener = listeners.get(i);
listener.getCaption(event);
}
Accessible result = event.accessible;
if (result != null) return result.getAccessibleObject().handle;
}
}
int /*long*/ parentResult = 0;
AtkTableIface iface = getTableIface (atkObject);
if (iface != null && iface.get_caption != 0) {
parentResult = ATK.call (iface.get_caption, atkObject);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
static int /*long*/ atkTable_get_caption (int /*long*/ atkObject) {
if (DEBUG) print ("-->atkTable_get_caption");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTableListener> listeners = accessible.accessibleTableListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTableEvent event = new AccessibleTableEvent(accessible);
for (int i = 0; i < length; i++) {
AccessibleTableListener listener = listeners.get(i);
listener.getCaption(event);
}
Accessible result = event.accessible;
if (result != null) return result.getAccessibleObject().handle;
}
}
int /*long*/ parentResult = 0;
AtkTableIface iface = getTableIface (atkObject);
if (iface != null && iface.get_caption != 0) {
parentResult = ATK.call (iface.get_caption, atkObject);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
static int /*long*/ atkTable_get_summary (int /*long*/ atkObject) {
if (DEBUG) print ("-->atkTable_get_summary");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTableListener> listeners = accessible.accessibleTableListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTableEvent event = new AccessibleTableEvent(accessible);
for (int i = 0; i < length; i++) {
AccessibleTableListener listener = listeners.get(i);
listener.getSummary(event);
}
Accessible result = event.accessible;
if (result != null) return result.getAccessibleObject().handle;
}
}
int /*long*/ parentResult = 0;
AtkTableIface iface = getTableIface (atkObject);
if (iface != null && iface.get_summary != 0) {
parentResult = ATK.call (iface.get_summary, atkObject);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
static long /*int*/ atkTable_get_caption (long /*int*/ atkObject) {
if (DEBUG) print ("-->atkTable_get_caption");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTableListener> listeners = accessible.accessibleTableListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTableEvent event = new AccessibleTableEvent(accessible);
for (int i = 0; i < length; i++) {
AccessibleTableListener listener = listeners.get(i);
listener.getCaption(event);
}
Accessible result = event.accessible;
if (result != null) return result.getAccessibleObject().handle;
}
}
long /*int*/ parentResult = 0;
AtkTableIface iface = getTableIface (atkObject);
if (iface != null && iface.get_caption != 0) {
parentResult = ATK.call (iface.get_caption, atkObject);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
static long /*int*/ atkTable_get_summary (long /*int*/ atkObject) {
if (DEBUG) print ("-->atkTable_get_summary");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTableListener> listeners = accessible.accessibleTableListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTableEvent event = new AccessibleTableEvent(accessible);
for (int i = 0; i < length; i++) {
AccessibleTableListener listener = listeners.get(i);
listener.getSummary(event);
}
Accessible result = event.accessible;
if (result != null) return result.getAccessibleObject().handle;
}
}
long /*int*/ parentResult = 0;
AtkTableIface iface = getTableIface (atkObject);
if (iface != null && iface.get_summary != 0) {
parentResult = ATK.call (iface.get_summary, atkObject);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.ppc
static int /*long*/ atkTable_get_row_header (int /*long*/ atkObject, int /*long*/ row) {
if (DEBUG) print ("-->atkTable_get_row_header");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTableListener> listeners = accessible.accessibleTableListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTableEvent event = new AccessibleTableEvent(accessible);
for (int i = 0; i < length; i++) {
AccessibleTableListener listener = listeners.get(i);
listener.getRowHeaderCells(event);
}
Accessible[] accessibles = event.accessibles;
if (accessibles != null) {
if (0 <= row && row < accessibles.length) {
return accessibles[(int)/*64*/row].getAccessibleObject().handle;
}
}
}
}
int /*long*/ parentResult = 0;
AtkTableIface iface = getTableIface (atkObject);
if (iface != null && iface.get_row_header != 0) {
parentResult = ATK.call (iface.get_row_header, atkObject, row);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.linux.s390x
static long /*int*/ atkTable_get_row_header (long /*int*/ atkObject, long /*int*/ row) {
if (DEBUG) print ("-->atkTable_get_row_header");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTableListener> listeners = accessible.accessibleTableListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTableEvent event = new AccessibleTableEvent(accessible);
for (int i = 0; i < length; i++) {
AccessibleTableListener listener = listeners.get(i);
listener.getRowHeaderCells(event);
}
Accessible[] accessibles = event.accessibles;
if (accessibles != null) {
if (0 <= row && row < accessibles.length) {
return accessibles[(int)/*64*/row].getAccessibleObject().handle;
}
}
}
}
long /*int*/ parentResult = 0;
AtkTableIface iface = getTableIface (atkObject);
if (iface != null && iface.get_row_header != 0) {
parentResult = ATK.call (iface.get_row_header, atkObject, row);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
static int /*long*/ atkTable_get_summary (int /*long*/ atkObject) {
if (DEBUG) print ("-->atkTable_get_summary");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTableListener> listeners = accessible.accessibleTableListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTableEvent event = new AccessibleTableEvent(accessible);
for (int i = 0; i < length; i++) {
AccessibleTableListener listener = listeners.get(i);
listener.getSummary(event);
}
Accessible result = event.accessible;
if (result != null) return result.getAccessibleObject().handle;
}
}
int /*long*/ parentResult = 0;
AtkTableIface iface = getTableIface (atkObject);
if (iface != null && iface.get_summary != 0) {
parentResult = ATK.call (iface.get_summary, atkObject);
}
return parentResult;
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.gtk.aix.ppc
static int /*long*/ atkHypertext_get_link (int /*long*/ atkObject, int /*long*/ link_index) {
if (DEBUG) print ("-->atkHypertext_get_link");
AccessibleObject object = getAccessibleObject (atkObject);
if (object != null) {
Accessible accessible = object.accessible;
List<AccessibleTextExtendedListener> listeners = accessible.accessibleTextExtendedListeners;
int length = size(listeners);
if (length > 0) {
AccessibleTextEvent event = new AccessibleTextEvent(accessible);
event.index = (int)/*int*/link_index;
for (int i = 0; i < length; i++) {
AccessibleTextExtendedListener listener = listeners.get(i);
listener.getHyperlink(event);
}
Accessible result = event.accessible;
return result != null ? result.getAccessibleObject().handle : 0;
}
}
int /*long*/ parentResult = 0;
AtkHypertextIface iface = getHypertextIface (atkObject);
if (iface != null && iface.get_link != 0) {
parentResult = ATK.call (iface.get_link, atkObject, link_index);
}
return parentResult;
}
内容来源于网络,如有侵权,请联系作者删除!