42
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2004 IBM Corporation and others.
|
|
3 * All rights reserved. This program and the accompanying materials
|
|
4 * are made available under the terms of the Eclipse Public License v1.0
|
|
5 * which accompanies this distribution, and is available at
|
|
6 * http://www.eclipse.org/legal/epl-v10.html
|
|
7 *
|
|
8 * Contributors:
|
|
9 * IBM Corporation - initial API and implementation
|
|
10 *******************************************************************************/
|
|
11 module dwt.accessibility.AccessibleControlEvent;
|
|
12
|
|
13 import dwt.accessibility.Accessible;
|
|
14
|
|
15 import dwt.internal.SWTEventObject;
|
|
16 import tango.text.convert.Format;
|
|
17
|
|
18 /**
|
|
19 * Instances of this class are sent as a result of
|
|
20 * accessibility clients sending messages to controls
|
|
21 * asking for detailed information about the implementation
|
|
22 * of the control instance. Typically, only implementors
|
|
23 * of custom controls need to listen for this event.
|
|
24 * <p>
|
|
25 * Note: The meaning of each field depends on the
|
|
26 * message that was sent.
|
|
27 * </p>
|
|
28 *
|
|
29 * @see AccessibleControlListener
|
|
30 * @see AccessibleControlAdapter
|
|
31 *
|
|
32 * @since 2.0
|
|
33 */
|
|
34 public class AccessibleControlEvent : SWTEventObject {
|
|
35 public int childID; // IN/OUT
|
|
36 public Accessible accessible; // OUT
|
|
37 public int x, y; // IN/OUT
|
|
38 public int width, height; // OUT
|
|
39 public int detail; // IN/OUT
|
|
40 public char[] result; // OUT
|
|
41 public Object children[]; // [OUT]
|
|
42
|
|
43 //static final long serialVersionUID = 3257281444169529141L;
|
|
44
|
|
45 /**
|
|
46 * Constructs a new instance of this class.
|
|
47 *
|
|
48 * @param source the object that fired the event
|
|
49 */
|
|
50 public this(Object source) {
|
|
51 super(source);
|
|
52 }
|
|
53
|
|
54 /**
|
|
55 * Returns a string containing a concise, human-readable
|
|
56 * description of the receiver.
|
|
57 *
|
|
58 * @return a string representation of the event
|
|
59 */
|
|
60 public char[] toString () {
|
|
61 return Format( "AccessibleControlEvent {childID={} accessible={} x={} y={} width={} heigth={} detail={} result={}",
|
|
62 childID, accessible, x, y, width, height, detail, result);
|
|
63 }
|
|
64 }
|