Mercurial > projects > dwt-linux
comparison dwt/accessibility/AccessibleEvent.d @ 42:787b5413b0ce
accessibility package
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Jan 2008 05:07:22 +0100 |
parents | |
children | 8cec8f536af3 |
comparison
equal
deleted
inserted
replaced
41:c83c51423d03 | 42:787b5413b0ce |
---|---|
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 module dwt.accessibility.AccessibleEvent; | |
12 | |
13 | |
14 import dwt.internal.SWTEventObject; | |
15 import tango.text.convert.Format; | |
16 | |
17 /** | |
18 * Instances of this class are sent as a result of | |
19 * accessibility clients sending messages to controls | |
20 * asking for information about the control instance. | |
21 * <p> | |
22 * Note: The meaning of the result field depends | |
23 * on the message that was sent. | |
24 * </p> | |
25 * | |
26 * @see AccessibleListener | |
27 * @see AccessibleAdapter | |
28 * | |
29 * @since 2.0 | |
30 */ | |
31 public class AccessibleEvent : SWTEventObject { | |
32 /** | |
33 * The value of this field is set by an accessibility client | |
34 * before the accessible listener method is called. | |
35 * ChildID can be CHILDID_SELF, representing the control itself, | |
36 * or a 0-based integer representing a specific child of the control. | |
37 */ | |
38 public int childID; | |
39 | |
40 /** | |
41 * The value of this field must be set in the accessible listener | |
42 * method before returning. | |
43 * What to set it to depends on the listener method called, and | |
44 * the childID specified by the client. | |
45 */ | |
46 public char[] result; | |
47 | |
48 //static final long serialVersionUID = 3257567304224026934L; | |
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) { | |
56 super(source); | |
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 */ | |
65 public char[] toString () { | |
66 return Format( "AccessibleEvent {childID={} result={}}", childID, result ); | |
67 } | |
68 } |