public class AccessibleEditableTextAdapter extends java.lang.Object implements AccessibleEditableTextListener
AccessibleEditableTextListener
interface.
Classes that wish to deal with AccessibleEditableText
events can
extend this class and override only the methods that they are
interested in.
AccessibleEditableTextListener
,
AccessibleEditableTextEvent
,
AccessibleTextAttributeEvent
Constructor and Description |
---|
AccessibleEditableTextAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
copyText(AccessibleEditableTextEvent e)
Copies the substring beginning at the specified
start offset
and extending to the character at offset end - 1 to the clipboard. |
void |
cutText(AccessibleEditableTextEvent e)
Moves the substring beginning at the specified
start offset
and extending to the character at offset end - 1 to the clipboard. |
void |
pasteText(AccessibleEditableTextEvent e)
Inserts the text in the clipboard at the leading edge of the specified
start offset. |
void |
replaceText(AccessibleEditableTextEvent e)
Replaces the substring beginning at the specified
start offset
and extending to the character at offset end - 1 by the specified string. |
void |
setTextAttributes(AccessibleTextAttributeEvent e)
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. |
public void copyText(AccessibleEditableTextEvent e)
start
offset
and extending to the character at offset end - 1
to the clipboard.copyText
in interface AccessibleEditableTextListener
e
- an event object containing the following information:ACC.OK
if the operation was completed successfullypublic void cutText(AccessibleEditableTextEvent e)
start
offset
and extending to the character at offset end - 1
to the clipboard.cutText
in interface AccessibleEditableTextListener
e
- an event object containing the following information:ACC.OK
if the operation was completed successfullypublic void pasteText(AccessibleEditableTextEvent e)
start
offset.pasteText
in interface AccessibleEditableTextListener
e
- an event object containing the following information:ACC.OK
if the operation was completed successfullypublic void replaceText(AccessibleEditableTextEvent e)
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.
replaceText
in interface AccessibleEditableTextListener
e
- an event object containing the following information:start
and extending to end - 1
ACC.OK
if the operation was completed successfullypublic void setTextAttributes(AccessibleTextAttributeEvent e)
start
offset
and extending to the character at offset end - 1
by the specified set of attributes.setTextAttributes
in interface AccessibleEditableTextListener
e
- an event object containing the following information:ACC.OK
if the operation was completed successfully
Copyright (c) EclipseSource and others 2002, 2017.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0