25
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2008 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 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module org.eclipse.swt.accessibility.AccessibleControlEvent;
|
|
14
|
|
15 import java.lang.all;
|
|
16
|
|
17 import org.eclipse.swt.accessibility.Accessible;
|
|
18
|
|
19 import org.eclipse.swt.internal.SWTEventObject;
|
|
20
|
|
21 /**
|
|
22 * Instances of this class are sent as a result of
|
|
23 * accessibility clients sending messages to controls
|
|
24 * asking for detailed information about the implementation
|
|
25 * of the control instance. Typically, only implementors
|
|
26 * of custom controls need to listen for this event.
|
|
27 * <p>
|
|
28 * Note: The meaning of each field depends on the
|
|
29 * message that was sent.
|
|
30 * </p>
|
|
31 *
|
|
32 * @see AccessibleControlListener
|
|
33 * @see AccessibleControlAdapter
|
|
34 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
|
|
35 *
|
|
36 * @since 2.0
|
|
37 */
|
|
38 public class AccessibleControlEvent : SWTEventObject {
|
|
39 public int childID; // IN/OUT
|
|
40 public Accessible accessible; // OUT
|
|
41 public int x, y; // IN/OUT
|
|
42 public int width, height; // OUT
|
|
43 public int detail; // IN/OUT
|
|
44 public String result; // OUT
|
|
45 public Object children[]; // [OUT]
|
|
46
|
|
47 //static final long serialVersionUID = 3257281444169529141L;
|
|
48
|
|
49 /**
|
|
50 * Constructs a new instance of this class.
|
|
51 *
|
|
52 * @param source the object that fired the event
|
|
53 */
|
|
54 public this(Object source) {
|
|
55 super(source);
|
|
56 }
|
|
57
|
|
58 /**
|
|
59 * Returns a string containing a concise, human-readable
|
|
60 * description of the receiver.
|
|
61 *
|
|
62 * @return a string representation of the event
|
|
63 */
|
|
64 public override String toString () {
|
|
65 return Format( "AccessibleControlEvent {childID={} accessible={} x={} y={} width={} heigth={} detail={} result={}",
|
|
66 childID, accessible, x, y, width, height, detail, result);
|
|
67 }
|
|
68 }
|