]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/accessibility/AccessibleActionEvent.java
Work around SWT 4.13 - 4.18 Win32 DnD bug 567422
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / accessibility / AccessibleActionEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2009, 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 AccessibleAction messages to an accessible object.
21  *
22  * @see AccessibleActionListener
23  * @see AccessibleActionAdapter
24  *
25  * @since 3.6
26  */
27 public class AccessibleActionEvent extends EventObject {
28
29         /**
30          * The value of this field must be set in the accessible action listener method
31          * before returning. What to set it to depends on the listener method called.
32          */
33         public String result;
34         public int count;
35         public int index;
36         public boolean localized;
37
38         static final long serialVersionUID = 2849066792640153087L;
39
40 /**
41  * Constructs a new instance of this class.
42  *
43  * @param source the object that fired the event
44  */
45 public AccessibleActionEvent(Object source) {
46         super(source);
47 }
48
49 /**
50  * Returns a string containing a concise, human-readable
51  * description of the receiver.
52  *
53  * @return a string representation of the event
54  */
55 @Override
56 public String toString () {
57         return "AccessibleActionEvent {" //$NON-NLS-1$
58                 + "string=" + result   //$NON-NLS-1$
59                 + " count=" + count   //$NON-NLS-1$
60                 + " index=" + index   //$NON-NLS-1$
61                 + "}";  //$NON-NLS-1$
62 }
63 }