AccessibleEditableTextAdapter.setTextAttributes

Replaces the set of attributes of the substring beginning at the specified <code>start</code> offset and extending to the character at offset <code>end - 1</code> by the specified set of attributes.

@param e an event object containing the following information:<ul> <li>in start - the 0 based offset of the first character of the substring whose attributes are modified</li> <li>in end - the 0 based offset after the last character of the substring whose attributes are modified</li> <li>in textStyle - the TextStyle which contains attributes that replace the old set of attributes. The foreground, background, and font fields of this TextStyle are only valid for the duration of the event. The value of this field may be null if none of the attributes to be set correspond to TextStyle fields.</li> <li>in attributes - an array of alternating key and value Strings that represent the complete set of attributes to replace the old set of attributes. The value of this field may be null if no attributes are to be set.</li> <li>out result - set to {@link ACC#OK} if the operation was completed successfully</li> </ul>

class AccessibleEditableTextAdapter
void
setTextAttributes

Meta