01: /*******************************************************************************
02: * Copyright (c) 2000, 2004 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.accessibility;
11:
12: import org.eclipse.swt.internal.SWTEventObject;
13:
14: /**
15: * Instances of this class are sent as a result of
16: * accessibility clients sending messages to controls
17: * asking for information about the control instance.
18: * <p>
19: * Note: The meaning of the result field depends
20: * on the message that was sent.
21: * </p>
22: *
23: * @see AccessibleListener
24: * @see AccessibleAdapter
25: *
26: * @since 2.0
27: */
28: public class AccessibleEvent extends SWTEventObject {
29: /**
30: * The value of this field is set by an accessibility client
31: * before the accessible listener method is called.
32: * ChildID can be CHILDID_SELF, representing the control itself,
33: * or a 0-based integer representing a specific child of the control.
34: */
35: public int childID;
36:
37: /**
38: * The value of this field must be set in the accessible listener
39: * method before returning.
40: * What to set it to depends on the listener method called, and
41: * the childID specified by the client.
42: */
43: public String result;
44:
45: static final long serialVersionUID = 3257567304224026934L;
46:
47: /**
48: * Constructs a new instance of this class.
49: *
50: * @param source the object that fired the event
51: */
52: public AccessibleEvent(Object source) {
53: super (source);
54: }
55:
56: /**
57: * Returns a string containing a concise, human-readable
58: * description of the receiver.
59: *
60: * @return a string representation of the event
61: */
62: public String toString() {
63: return "AccessibleEvent {childID=" + childID + " result=" + result + "}"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
64: }
65: }
|