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
|
|
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 public String toString () {
|
|
70 return Format( "AccessibleEvent {childID={} result={}}", childID, result );
|
|
71 }
|
|
72 }
|