/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ @Override public String toString () { return "AccessibleAttributeEvent {" //$NON-NLS-1$ + " offset=" + offset //$NON-NLS-1$ + " start=" + start //$NON-NLS-1$ + " end=" + end //$NON-NLS-1$ + " textStyle=" + textStyle //$NON-NLS-1$ + " attributes=" + toAttributeString(attributes) //$NON-NLS-1$ + " result=" + result //$NON-NLS-1$ + "}"; //$NON-NLS-1$ }
int setAttributes(int startOffset, int endOffset, int /*long*/ pbstrAttributes) { if (DEBUG) print(this + ".IAccessibleEditableText::setAttributes, start=" + startOffset + ", end=" + endOffset + ", pbstrAttributes=" + pbstrAttributes); AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(this); String string = getString(pbstrAttributes); if (string != null && string.length() > 0) {
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); }
AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(accessible); event.start = (int)/*64*/start_offset; event.end = (int)/*64*/end_offset;
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ @Override public String toString () { return "AccessibleAttributeEvent {" //$NON-NLS-1$ + " offset=" + offset //$NON-NLS-1$ + " start=" + start //$NON-NLS-1$ + " end=" + end //$NON-NLS-1$ + " textStyle=" + textStyle //$NON-NLS-1$ + " attributes=" + toAttributeString(attributes) //$NON-NLS-1$ + " result=" + result //$NON-NLS-1$ + "}"; //$NON-NLS-1$ }
AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(accessible); event.start = (int)/*64*/start_offset; event.end = (int)/*64*/end_offset;
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ public String toString () { return "AccessibleAttributeEvent {" //$NON-NLS-1$ + " offset=" + offset //$NON-NLS-1$ + " start=" + start //$NON-NLS-1$ + " end=" + end //$NON-NLS-1$ // + " textStyle=" + textStyle //$NON-NLS-1$ + " attributes=" + toAttributeString(attributes) //$NON-NLS-1$ + " result=" + result //$NON-NLS-1$ + "}"; //$NON-NLS-1$ }
AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(accessible); event.start = (int)/*64*/start_offset; event.end = (int)/*64*/end_offset;
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ public String toString () { return "AccessibleAttributeEvent {" //$NON-NLS-1$ + " offset=" + offset //$NON-NLS-1$ + " start=" + start //$NON-NLS-1$ + " end=" + end //$NON-NLS-1$ + " textStyle=" + textStyle //$NON-NLS-1$ + " attributes=" + toAttributeString(attributes) //$NON-NLS-1$ + " result=" + result //$NON-NLS-1$ + "}"; //$NON-NLS-1$ }
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++) {
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ @Override public String toString () { return "AccessibleAttributeEvent {" //$NON-NLS-1$ + " offset=" + offset //$NON-NLS-1$ + " start=" + start //$NON-NLS-1$ + " end=" + end //$NON-NLS-1$ + " textStyle=" + textStyle //$NON-NLS-1$ + " attributes=" + toAttributeString(attributes) //$NON-NLS-1$ + " result=" + result //$NON-NLS-1$ + "}"; //$NON-NLS-1$ }
NSRange range = parameterObject.rangeValue(); AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(this);
/** * Returns a string containing a concise, human-readable * description of the receiver. * * @return a string representation of the event */ @Override public String toString () { return "AccessibleAttributeEvent {" //$NON-NLS-1$ + " offset=" + offset //$NON-NLS-1$ + " start=" + start //$NON-NLS-1$ + " end=" + end //$NON-NLS-1$ + " textStyle=" + textStyle //$NON-NLS-1$ + " attributes=" + toAttributeString(attributes) //$NON-NLS-1$ + " result=" + result //$NON-NLS-1$ + "}"; //$NON-NLS-1$ }
int length = size(listeners); if (length > 0) { AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(accessible); event.offset = (int)/*64*/offset; for (int i = 0; i < length; i++) {
int length = size(listeners); if (length > 0) { AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(accessible); event.offset = (int)/*64*/offset; for (int i = 0; i < length; i++) {
int length = size(listeners); if (length > 0) { AccessibleTextAttributeEvent event = new AccessibleTextAttributeEvent(accessible); event.offset = (int)/*64*/offset; for (int i = 0; i < length; i++) {