1 /*******************************************************************************
2 * Copyright (c) 2000, 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;
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.
26 * Note: The meaning of each field depends on the
27 * message that was sent.
30 * @see AccessibleControlListener
31 * @see AccessibleControlAdapter
32 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
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]
45 static final long serialVersionUID = 3257281444169529141L;
48 * Constructs a new instance of this class.
50 * @param source the object that fired the event
52 public AccessibleControlEvent(Object source) {
57 * Returns a string containing a concise, human-readable
58 * description of the receiver.
60 * @return a string representation of the event
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$