本文整理了Java中org.eclipse.swt.accessibility.Accessible.accessibleListenersSize()
方法的一些代码示例,展示了Accessible.accessibleListenersSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Accessible.accessibleListenersSize()
方法的具体详情如下:
包路径:org.eclipse.swt.accessibility.Accessible
类名称:Accessible
方法名:accessibleListenersSize
暂无
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
@Override
public void getName(AccessibleEvent e) {
if (e.childID == ACC.CHILDID_SELF) {
AccessibleEvent event = new AccessibleEvent(Accessible.this);
event.childID = childID;
for (int i = 0; i < accessibleListenersSize(); i++) {
AccessibleListener listener = accessibleListeners.get(i);
listener.getName(event);
}
e.result = event.result;
}
}
});
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
id getHelpAttribute (int childID) {
id returnValue = null;
AccessibleEvent event = new AccessibleEvent(this);
event.childID = childID;
for (int i = 0; i < accessibleListenersSize(); i++) {
AccessibleListener listener = (AccessibleListener) accessibleListeners.elementAt(i);
listener.getHelp(event);
}
if (event.result != null) {
returnValue = NSString.stringWith(event.result);
}
return returnValue;
}
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
id getDescriptionAttribute (int childID) {
AccessibleEvent event = new AccessibleEvent(this);
event.childID = childID;
event.result = null;
id returnValue = null;
for (int i = 0; i < accessibleListenersSize(); i++) {
AccessibleListener listener = (AccessibleListener) accessibleListeners.elementAt(i);
listener.getDescription(event);
}
returnValue = (event.result != null ? NSString.stringWith(event.result) : null);
// If no description was provided, and this is a composite or canvas, return a blank string
// -- otherwise, let the Cocoa control handle it.
if (returnValue == null) {
if (control instanceof Composite) returnValue = NSString.string();
}
return returnValue;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (accessibleListenersSize() == 0) return code;
if (code == COM.S_OK) {
int /*long*/[] pHelp = new int /*long*/[1];
event.childID = osToChildID(v.lVal);
event.result = osHelp;
for (int i = 0; i < accessibleListenersSize(); i++) {
AccessibleListener listener = accessibleListeners.get(i);
listener.getHelp(event);
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
id getTitleAttribute (int childID) {
id returnValue = null;
/*
* Feature of the Macintosh. The text of a Label is returned in its value,
* not its title, so ensure that the role is not Label before asking for the title.
*/
AccessibleControlEvent roleEvent = new AccessibleControlEvent(this);
roleEvent.childID = childID;
roleEvent.detail = -1;
for (int i = 0; i < accessibleControlListenersSize(); i++) {
AccessibleControlListener listener = (AccessibleControlListener) accessibleControlListeners.elementAt(i);
listener.getRole(roleEvent);
}
if (roleEvent.detail != ACC.ROLE_LABEL) {
AccessibleEvent event = new AccessibleEvent(this);
event.childID = childID;
event.result = null;
for (int i = 0; i < accessibleListenersSize(); i++) {
AccessibleListener listener = (AccessibleListener) accessibleListeners.elementAt(i);
listener.getName(event);
}
if (event.result != null)
returnValue = NSString.stringWith(event.result);
}
return returnValue;
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (code == COM.E_INVALIDARG) code = COM.S_FALSE; // proxy doesn't know about app childID
if (accessibleListenersSize() == 0 && !(control instanceof TabFolder)) return code;
if (code == COM.S_OK) {
int /*long*/[] pKeyboardShortcut = new int /*long*/[1];
event.result = SWT.getMessage ("SWT_SwitchPage_Shortcut"); //$NON-NLS-1$
for (int i = 0; i < accessibleListenersSize(); i++) {
AccessibleListener listener = accessibleListeners.get(i);
listener.getKeyboardShortcut(event);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (accessibleListenersSize() == 0 && !(control instanceof Text)) {
if (DEBUG) print(this + ".IAccessible::get_accName(" + v.lVal + ") returning name=" + osName + " from super" + hresult(code));
return code;
event.result = ((Text) control).getMessage();
for (int i = 0; i < accessibleListenersSize(); i++) {
AccessibleListener listener = accessibleListeners.get(i);
listener.getName(event);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (code == COM.E_INVALIDARG) code = COM.S_FALSE; // proxy doesn't know about app childID
if (accessibleListenersSize() == 0 && !(control instanceof Tree)) {
if (DEBUG) print(this + ".IAccessible::get_accDescription(" + v.lVal + ") returning super" + hresult(code));
return code;
for (int i = 0; i < accessibleListenersSize(); i++) {
AccessibleListener listener = accessibleListeners.get(i);
listener.getDescription(event);
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
e.childID = childID;
e.result = null;
for (int i = 0; i < accessibleListenersSize(); i++) {
AccessibleListener listener = (AccessibleListener) accessibleListeners.elementAt(i);
listener.getName(e);
内容来源于网络,如有侵权,请联系作者删除!