Top Description Constructors Methods
org.eclipse.swt.accessibility

public Class AccessibleEditableTextAdapter

extends Object
implements AccessibleEditableTextListener
Class Inheritance
All Implemented Interfaces
org.eclipse.swt.accessibility.AccessibleEditableTextListener, org.eclipse.swt.internal.SWTEventListener, java.util.EventListener

This adapter class provides default implementations for the methods in the AccessibleEditableTextListener interface.

Classes that wish to deal with AccessibleEditableText events can extend this class and override only the methods that they are interested in.

Since
3.7
See Also
AccessibleEditableTextListener, AccessibleEditableTextEvent, AccessibleTextAttributeEvent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
copyText(AccessibleEditableTextEvent
an event object containing the following information:
  • [in] start - the 0 based offset of the first character of the substring to be copied to the clipboard
  • [in] end - the 0 based offset after the last character of the substring to be copied to the clipboard
  • [out] result - set to ACC#OK if the operation was completed successfully
e
)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.copyText.

Copies the substring beginning at the specified start offset and extending to the character at offset end - 1 to the clipboard.
public void
cutText(AccessibleEditableTextEvent
an event object containing the following information:
  • [in] start - the 0 based offset of the first character of the substring to be moved to the clipboard
  • [in] end - the 0 based offset after the last character of the substring to be moved to the clipboard
  • [out] result - set to ACC#OK if the operation was completed successfully
e
)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.cutText.

Moves the substring beginning at the specified start offset and extending to the character at offset end - 1 to the clipboard.
public void
pasteText(AccessibleEditableTextEvent
an event object containing the following information:
  • [in] start - the offset at which to insert the text from the clipboard. The valid range is 0..length
  • [out] result - set to ACC#OK if the operation was completed successfully
e
)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.pasteText.

Inserts the text in the clipboard at the leading edge of the specified start offset.
public void
replaceText(AccessibleEditableTextEvent
an event object containing the following information:
  • [in] start - the 0 based offset of the first character of the substring to be replaced
  • [in] end - the 0 based offset after the last character of the substring to be replaced
  • [in] string - the string that replaces the substring beginning at start and extending to end - 1
  • [out] result - set to ACC#OK if the operation was completed successfully
e
)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.replaceText.

Replaces the substring beginning at the specified start offset and extending to the character at offset end - 1 by the specified string.
public void
setTextAttributes(AccessibleTextAttributeEvent
an event object containing the following information:
  • [in] start - the 0 based offset of the first character of the substring whose attributes are modified
  • [in] end - the 0 based offset after the last character of the substring whose attributes are modified
  • [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.
  • [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.
  • [out] result - set to ACC#OK if the operation was completed successfully
e
)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.setTextAttributes.

Replaces the set of attributes of the substring beginning at the specified start offset and extending to the character at offset end - 1 by the specified set of attributes.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AccessibleEditableTextAdapterback to summary
public AccessibleEditableTextAdapter()

Method Detail

copyTextback to summary
public void copyText(AccessibleEditableTextEvent e)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.copyText.

Copies the substring beginning at the specified start offset and extending to the character at offset end - 1 to the clipboard.

Parameters
e:AccessibleEditableTextEvent

an event object containing the following information:

  • [in] start - the 0 based offset of the first character of the substring to be copied to the clipboard
  • [in] end - the 0 based offset after the last character of the substring to be copied to the clipboard
  • [out] result - set to ACC#OK if the operation was completed successfully
Annotations
@Override
cutTextback to summary
public void cutText(AccessibleEditableTextEvent e)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.cutText.

Moves the substring beginning at the specified start offset and extending to the character at offset end - 1 to the clipboard.

Parameters
e:AccessibleEditableTextEvent

an event object containing the following information:

  • [in] start - the 0 based offset of the first character of the substring to be moved to the clipboard
  • [in] end - the 0 based offset after the last character of the substring to be moved to the clipboard
  • [out] result - set to ACC#OK if the operation was completed successfully
Annotations
@Override
pasteTextback to summary
public void pasteText(AccessibleEditableTextEvent e)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.pasteText.

Inserts the text in the clipboard at the leading edge of the specified start offset.

Parameters
e:AccessibleEditableTextEvent

an event object containing the following information:

  • [in] start - the offset at which to insert the text from the clipboard. The valid range is 0..length
  • [out] result - set to ACC#OK if the operation was completed successfully
Annotations
@Override
replaceTextback to summary
public void replaceText(AccessibleEditableTextEvent e)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.replaceText.

Replaces the substring beginning at the specified start offset and extending to the character at offset end - 1 by the specified string.

This event notification is also used to delete text if string is an empty string, or to insert text at the leading edge of the specified offset if start and end are equal.

Parameters
e:AccessibleEditableTextEvent

an event object containing the following information:

  • [in] start - the 0 based offset of the first character of the substring to be replaced
  • [in] end - the 0 based offset after the last character of the substring to be replaced
  • [in] string - the string that replaces the substring beginning at start and extending to end - 1
  • [out] result - set to ACC#OK if the operation was completed successfully
Annotations
@Override
setTextAttributesback to summary
public void setTextAttributes(AccessibleTextAttributeEvent e)

Implements org.eclipse.swt.accessibility.AccessibleEditableTextListener.setTextAttributes.

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

Parameters
e:AccessibleTextAttributeEvent

an event object containing the following information:

  • [in] start - the 0 based offset of the first character of the substring whose attributes are modified
  • [in] end - the 0 based offset after the last character of the substring whose attributes are modified
  • [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.
  • [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.
  • [out] result - set to ACC#OK if the operation was completed successfully
Annotations
@Override