comparison dwt/accessibility/AccessibleControlEvent.d @ 34:943a86053d88

fix accessibility package name
author Frank Benoit <benoit@tionex.de>
date Mon, 28 Jan 2008 21:27:31 +0100
parents dwt/accessible/AccessibleControlEvent.d@92c102dd64a3
children ab60f3309436
comparison
equal deleted inserted replaced
33:39a9959ef14d 34:943a86053d88
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 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
12 *******************************************************************************/
13 module dwt.accessibility.AccessibleControlEvent;
14
15 import dwt.accessibility.Accessible;
16
17 import dwt.internal.DWTEventObject;
18 import tango.text.convert.Format;
19
20 /**
21 * Instances of this class are sent as a result of
22 * accessibility clients sending messages to controls
23 * asking for detailed information about the implementation
24 * of the control instance. Typically, only implementors
25 * of custom controls need to listen for this event.
26 * <p>
27 * Note: The meaning of each field depends on the
28 * message that was sent.
29 * </p>
30 *
31 * @see AccessibleControlListener
32 * @see AccessibleControlAdapter
33 *
34 * @since 2.0
35 */
36 public class AccessibleControlEvent : DWTEventObject {
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 char[] 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 this(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 public char[] toString () {
63 return Format( "AccessibleControlEvent {childID={} accessible={} x={} y={} width={} heigth={} detail={} result={}",
64 childID, accessible, x, y, width, height, detail, result);
65 }
66 }