root/dwt/accessibility/AccessibleEvent.d

Revision 246:fd9c62a2998e, 2.2 kB (checked in by Frank Benoit <benoit@tionex.de>, 6 months ago)

Updater SWT 3.4M7 to 3.4

Line 
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 dwt.accessibility.AccessibleEvent;
14
15
16 import dwt.internal.DWTEventObject;
17 import tango.text.convert.Format;
18 import dwt.dwthelper.utils;
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 : DWTEventObject {
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
52     //static final long serialVersionUID = 3257567304224026934L;
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 override public String toString () {
70     return Format( "AccessibleEvent {childID={} result={}}", childID, result );
71 }
72 }
Note: See TracBrowser for help on using the browser.