1 /*******************************************************************************
2 * Copyright (c) 2010, 2017 IBM Corporation and others.
4 * This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License 2.0
6 * which accompanies this distribution, and is available at
7 * https://www.eclipse.org/legal/epl-2.0/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.accessibility;
19 * Instances of this class are sent as a result of accessibility clients
20 * sending AccessibleEditableText messages to an accessible object.
22 * @see AccessibleEditableTextListener
23 * @see AccessibleEditableTextAdapter
27 public class AccessibleEditableTextEvent extends EventObject {
30 * [in] 0-based start offset of the character range to perform
33 * @see AccessibleEditableTextListener#copyText
34 * @see AccessibleEditableTextListener#cutText
35 * @see AccessibleEditableTextListener#pasteText
36 * @see AccessibleEditableTextListener#replaceText
41 * [in] 0-based ending offset of the character range to perform
44 * @see AccessibleEditableTextListener#copyText
45 * @see AccessibleEditableTextListener#cutText
46 * @see AccessibleEditableTextListener#replaceText
51 * [in] a string that will replace the specified character range
53 * @see AccessibleEditableTextListener#replaceText
58 * [out] Set this field to {@link ACC#OK} if the operation
59 * was completed successfully, and <code>null</code> otherwise.
61 * @see AccessibleEditableTextListener#copyText
62 * @see AccessibleEditableTextListener#cutText
63 * @see AccessibleEditableTextListener#pasteText
64 * @see AccessibleEditableTextListener#replaceText
68 static final long serialVersionUID = -5045447704486894646L;
71 * Constructs a new instance of this class.
73 * @param source the object that fired the event
75 public AccessibleEditableTextEvent(Object source) {
80 * Returns a string containing a concise, human-readable
81 * description of the receiver.
83 * @return a string representation of the event
86 public String toString () {
87 return "AccessibleEditableTextEvent {" //$NON-NLS-1$
88 + "start=" + start //$NON-NLS-1$
89 + " end=" + end //$NON-NLS-1$
90 + " string=" + string //$NON-NLS-1$
91 + " result=" + result //$NON-NLS-1$