Mercurial > projects > dwt2
annotate org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/accessibility/AccessibleEvent.d @ 49:7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 12:59:54 +0100 |
parents | f589fc20a5f9 |
children | 536e43f63c81 |
rev | line source |
---|---|
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.AccessibleEvent; | |
14 | |
15 import java.lang.all; | |
16 | |
17 | |
18 import org.eclipse.swt.internal.SWTEventObject; | |
19 | |
20 /** | |
21 * Instances of this class are sent as a result of | |
22 * accessibility clients sending messages to controls | |
23 * asking for information about the control instance. | |
24 * <p> | |
25 * Note: The meaning of the result field depends | |
26 * on the message that was sent. | |
27 * </p> | |
28 * | |
29 * @see AccessibleListener | |
30 * @see AccessibleAdapter | |
31 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
32 * | |
33 * @since 2.0 | |
34 */ | |
35 public class AccessibleEvent : SWTEventObject { | |
36 /** | |
37 * The value of this field is set by an accessibility client | |
38 * before the accessible listener method is called. | |
39 * ChildID can be CHILDID_SELF, representing the control itself, | |
40 * or a 0-based integer representing a specific child of the control. | |
41 */ | |
42 public int childID; | |
43 | |
44 /** | |
45 * The value of this field must be set in the accessible listener | |
46 * method before returning. | |
47 * What to set it to depends on the listener method called, and | |
48 * the childID specified by the client. | |
49 */ | |
50 public String result; | |
51 | |
49
7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
Frank Benoit <benoit@tionex.de>
parents:
26
diff
changeset
|
52 //static const long serialVersionUID = 3257567304224026934L; |
25 | 53 |
54 /** | |
55 * Constructs a new instance of this class. | |
56 * | |
57 * @param source the object that fired the event | |
58 */ | |
59 public this(Object source) { | |
60 super(source); | |
61 } | |
62 | |
63 /** | |
64 * Returns a string containing a concise, human-readable | |
65 * description of the receiver. | |
66 * | |
67 * @return a string representation of the event | |
68 */ | |
69 public String toString () { | |
70 return Format( "AccessibleEvent {childID={} result={}}", childID, result ); | |
71 } | |
72 } |