Mercurial > projects > dwt-linux
annotate dwt/accessibility/AccessibleControlEvent.d @ 259:c0d810de7093
Update SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 29 Jun 2008 14:33:38 +0200 |
parents | 380bad9f6852 |
children |
rev | line source |
---|---|
72 | 1 /******************************************************************************* |
259 | 2 * Copyright (c) 2000, 2008 IBM Corporation and others. |
42 | 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 | |
72 | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | |
42 | 12 *******************************************************************************/ |
13 module dwt.accessibility.AccessibleControlEvent; | |
14 | |
238 | 15 import dwt.dwthelper.utils; |
16 | |
42 | 17 import dwt.accessibility.Accessible; |
18 | |
71 | 19 import dwt.internal.DWTEventObject; |
42 | 20 import tango.text.convert.Format; |
21 | |
22 /** | |
23 * Instances of this class are sent as a result of | |
24 * accessibility clients sending messages to controls | |
25 * asking for detailed information about the implementation | |
26 * of the control instance. Typically, only implementors | |
27 * of custom controls need to listen for this event. | |
28 * <p> | |
29 * Note: The meaning of each field depends on the | |
30 * message that was sent. | |
31 * </p> | |
32 * | |
33 * @see AccessibleControlListener | |
34 * @see AccessibleControlAdapter | |
259 | 35 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
42 | 36 * |
37 * @since 2.0 | |
38 */ | |
71 | 39 public class AccessibleControlEvent : DWTEventObject { |
59
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
42
diff
changeset
|
40 public int childID; // IN/OUT |
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
42
diff
changeset
|
41 public Accessible accessible; // OUT |
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
42
diff
changeset
|
42 public int x, y; // IN/OUT |
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
42
diff
changeset
|
43 public int width, height; // OUT |
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
42
diff
changeset
|
44 public int detail; // IN/OUT |
238 | 45 public String result; // OUT |
59
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
42
diff
changeset
|
46 public Object children[]; // [OUT] |
42 | 47 |
59
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
42
diff
changeset
|
48 //static final long serialVersionUID = 3257281444169529141L; |
42 | 49 |
50 /** | |
51 * Constructs a new instance of this class. | |
52 * | |
53 * @param source the object that fired the event | |
54 */ | |
55 public this(Object source) { | |
59
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
42
diff
changeset
|
56 super(source); |
42 | 57 } |
58 | |
59 /** | |
60 * Returns a string containing a concise, human-readable | |
61 * description of the receiver. | |
62 * | |
63 * @return a string representation of the event | |
64 */ | |
238 | 65 public override String toString () { |
59
8cec8f536af3
All D sources complete gvim retab (4 spaces), bug with Composite moveAbove/moveBelow fixed.
Frank Benoit <benoit@tionex.de>
parents:
42
diff
changeset
|
66 return Format( "AccessibleControlEvent {childID={} accessible={} x={} y={} width={} heigth={} detail={} result={}", |
42 | 67 childID, accessible, x, y, width, height, detail, result); |
68 } | |
69 } |