Mercurial > projects > dwt-mac
comparison dwt/accessibility/AccessibleEvent.d @ 0:380af2bdd8e5
Upload of whole dwt tree
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sat, 09 Aug 2008 17:00:02 +0200 |
parents | |
children | f565d3a95c0a |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:380af2bdd8e5 |
---|---|
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 * Port to the D Programming language: | |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | |
13 *******************************************************************************/ | |
14 module dwt.accessibility.AccessibleEvent; | |
15 | |
16 import dwt.dwthelper.utils; | |
17 import dwt.internal.DWTEventObject; | |
18 | |
19 /** | |
20 * Instances of this class are sent as a result of | |
21 * accessibility clients sending messages to controls | |
22 * asking for information about the control instance. | |
23 * <p> | |
24 * Note: The meaning of the result field depends | |
25 * on the message that was sent. | |
26 * </p> | |
27 * | |
28 * @see AccessibleListener | |
29 * @see AccessibleAdapter | |
30 * | |
31 * @since 2.0 | |
32 */ | |
33 public class AccessibleEvent : DWTEventObject { | |
34 /** | |
35 * The value of this field is set by an accessibility client | |
36 * before the accessible listener method is called. | |
37 * ChildID can be CHILDID_SELF, representing the control itself, | |
38 * or a 0-based integer representing a specific child of the control. | |
39 */ | |
40 public int childID; | |
41 | |
42 /** | |
43 * The value of this field must be set in the accessible listener | |
44 * method before returning. | |
45 * What to set it to depends on the listener method called, and | |
46 * the childID specified by the client. | |
47 */ | |
48 public String result; | |
49 | |
50 static final long serialVersionUID = 3257567304224026934L; | |
51 | |
52 /** | |
53 * Constructs a new instance of this class. | |
54 * | |
55 * @param source the object that fired the event | |
56 */ | |
57 public this (Object source) { | |
58 super(source); | |
59 } | |
60 | |
61 /** | |
62 * Returns a String containing a concise, human-readable | |
63 * description of the receiver. | |
64 * | |
65 * @return a String representation of the event | |
66 */ | |
67 public String toString () { | |
68 return "AccessibleEvent {childID=" + childID + " result=" + result + "}"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ | |
69 } | |
70 } |