]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/accessibility/AccessibleEditableTextEvent.java
d874a0af02b628bd799ac796a14ef5fd6a047e39
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / accessibility / AccessibleEditableTextEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2010, 2017 IBM Corporation and others.
3  *
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/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.accessibility;
15
16 import java.util.*;
17
18 /**
19  * Instances of this class are sent as a result of accessibility clients
20  * sending AccessibleEditableText messages to an accessible object.
21  *
22  * @see AccessibleEditableTextListener
23  * @see AccessibleEditableTextAdapter
24  *
25  * @since 3.7
26  */
27 public class AccessibleEditableTextEvent extends EventObject {
28
29         /**
30          * [in] 0-based start offset of the character range to perform
31          * the operation on
32          *
33          * @see AccessibleEditableTextListener#copyText
34          * @see AccessibleEditableTextListener#cutText
35          * @see AccessibleEditableTextListener#pasteText
36          * @see AccessibleEditableTextListener#replaceText
37          */
38         public int start;
39
40         /**
41          * [in] 0-based ending offset of the character range to perform
42          * the operation on
43          *
44          * @see AccessibleEditableTextListener#copyText
45          * @see AccessibleEditableTextListener#cutText
46          * @see AccessibleEditableTextListener#replaceText
47          */
48         public int end;
49
50         /**
51          * [in] a string that will replace the specified character range
52          *
53          * @see AccessibleEditableTextListener#replaceText
54          */
55         public String string;
56
57         /**
58          * [out] Set this field to {@link ACC#OK} if the operation
59          * was completed successfully, and <code>null</code> otherwise.
60          *
61          * @see AccessibleEditableTextListener#copyText
62          * @see AccessibleEditableTextListener#cutText
63          * @see AccessibleEditableTextListener#pasteText
64          * @see AccessibleEditableTextListener#replaceText
65          */
66         public String result;
67
68         static final long serialVersionUID = -5045447704486894646L;
69
70 /**
71  * Constructs a new instance of this class.
72  *
73  * @param source the object that fired the event
74  */
75 public AccessibleEditableTextEvent(Object source) {
76         super(source);
77 }
78
79 /**
80  * Returns a string containing a concise, human-readable
81  * description of the receiver.
82  *
83  * @return a string representation of the event
84  */
85 @Override
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$
92                 + "}";  //$NON-NLS-1$
93 }
94 }