]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/accessibility/AccessibleControlEvent.java
8ca3cccebec026726b15805ea34e8850947fb270
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / accessibility / AccessibleControlEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 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
17 import java.util.*;
18
19 /**
20  * Instances of this class are sent as a result of
21  * accessibility clients sending messages to controls
22  * asking for detailed information about the implementation
23  * of the control instance. Typically, only implementors
24  * of custom controls need to listen for this event.
25  * <p>
26  * Note: The meaning of each field depends on the
27  * message that was sent.
28  * </p>
29  *
30  * @see AccessibleControlListener
31  * @see AccessibleControlAdapter
32  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
33  *
34  * @since 2.0
35  */
36 public class AccessibleControlEvent extends EventObject {
37         public int childID;                     // IN/OUT
38         public Accessible accessible;   // OUT
39         public int x, y;                                // IN/OUT
40         public int width, height;               // OUT
41         public int detail;                      // IN/OUT
42         public String result;                   // OUT
43         public Object children[];               // [OUT]
44
45         static final long serialVersionUID = 3257281444169529141L;
46
47 /**
48  * Constructs a new instance of this class.
49  *
50  * @param source the object that fired the event
51  */
52 public AccessibleControlEvent(Object source) {
53         super(source);
54 }
55
56 /**
57  * Returns a string containing a concise, human-readable
58  * description of the receiver.
59  *
60  * @return a string representation of the event
61  */
62 @Override
63 public String toString () {
64         return "AccessibleControlEvent {childID=" + childID +  //$NON-NLS-1$
65                 " accessible=" + accessible +  //$NON-NLS-1$
66                 " x=" + x +  //$NON-NLS-1$
67                 " y=" + y +  //$NON-NLS-1$
68                 " width=" + width +  //$NON-NLS-1$
69                 " height=" + height +  //$NON-NLS-1$
70                 " detail=" + detail +  //$NON-NLS-1$
71                 " result=" + result +  //$NON-NLS-1$
72                 "}"; //$NON-NLS-1$
73 }
74 }