本文整理了Java中org.eclipse.swt.accessibility.Accessible.accessibleAttributeListenersSize()
方法的一些代码示例,展示了Accessible.accessibleAttributeListenersSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Accessible.accessibleAttributeListenersSize()
方法的具体详情如下:
包路径:org.eclipse.swt.accessibility.Accessible
类名称:Accessible
方法名:accessibleAttributeListenersSize
暂无
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
int get_attributes(int /*long*/ pbstrAttributes) {
AccessibleAttributeEvent event = new AccessibleAttributeEvent(this);
for (int i = 0; i < accessibleAttributeListenersSize(); i++) {
AccessibleAttributeListener listener = accessibleAttributeListeners.get(i);
listener.getAttributes(event);
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
id getStyleRangeForIndexAttribute (id parameter, int childID) {
if (accessibleAttributeListenersSize() == 0) return null;
// Parameter is an NSRange wrapped in an NSValue.
NSNumber parameterObject = new NSNumber(parameter.id);
int index = parameterObject.intValue();
AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(this);
event.offset = (int) /*64*/ index;
// Marker values -- if -1 after calling getTextAttributes, no one implemented it.
event.start = event.end = -1;
for (int i = 0; i < accessibleAttributeListenersSize(); i++) {
AccessibleAttributeListener listener = (AccessibleAttributeListener) accessibleAttributeListeners.elementAt(i);
listener.getTextAttributes(event);
}
NSRange range = new NSRange();
if (event.start == -1 && event.end == -1) {
range.location = index;
range.length = 0;
} else {
range.location = event.start;
range.length = event.end - event.start;
}
return NSValue.valueWithRange(range);
}
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
AccessibleAttributeEvent event = new AccessibleAttributeEvent(this);
event.groupLevel = event.groupCount = event.groupIndex = -1;
for (int i = 0; i < accessibleAttributeListenersSize(); i++) {
AccessibleAttributeListener listener = accessibleAttributeListeners.get(i);
listener.getAttributes(event);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
int get_attributes(int offset, int /*long*/ pStartOffset, int /*long*/ pEndOffset, int /*long*/ pbstrTextAttributes) {
AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(this);
event.offset = offset == COM.IA2_TEXT_OFFSET_LENGTH ? getCharacterCount() : offset;
for (int i = 0; i < accessibleAttributeListenersSize(); i++) {
AccessibleAttributeListener listener = accessibleAttributeListeners.get(i);
listener.getTextAttributes(event);
代码示例来源:origin: org.eclipse.swt.cocoa.macosx/x86_64
id getAttributedStringForRangeParameterizedAttribute(id parameter, int childID) {
if (accessibleAttributeListenersSize() == 0) return null;
for (int i = 0; i < accessibleAttributeListenersSize(); i++) {
AccessibleAttributeListener listener = (AccessibleAttributeListener) accessibleAttributeListeners.elementAt(i);
listener.getTextAttributes(event);
for (int i = 0; i < accessibleAttributeListenersSize(); i++) {
AccessibleAttributeListener listener = (AccessibleAttributeListener) accessibleAttributeListeners.elementAt(i);
listener.getAttributes(docAttributes);
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
if (accessibleActionListenersSize() > 0 || accessibleAttributeListenersSize() > 0 ||
accessibleHyperlinkListenersSize() > 0 || accessibleTableListenersSize() > 0 ||
accessibleTableCellListenersSize() > 0 || accessibleTextExtendedListenersSize() > 0 ||
代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.swt.win32.win32.x86
int queryAccessible2Interfaces(GUID guid, int /*long*/ ppvObject) {
if (control != null && control.isDisposed()) return COM.CO_E_OBJNOTCONNECTED;
if (COM.IsEqualGUID(guid, COM.IIDIAccessible2)) {
if (accessibleActionListenersSize() > 0 || accessibleAttributeListenersSize() > 0 ||
accessibleHyperlinkListenersSize() > 0 || accessibleTableListenersSize() > 0 ||
accessibleTableCellListenersSize() > 0 || accessibleTextExtendedListenersSize() > 0 ||
if (accessibleTextExtendedListenersSize() > 0 || accessibleAttributeListenersSize() > 0) {
if (objIAccessibleText == null) createIAccessibleText();
COM.MoveMemory(ppvObject, new int /*long*/[] { objIAccessibleText.getAddress() }, OS.PTR_SIZEOF);
内容来源于网络,如有侵权,请联系作者删除!