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 detailed information about the implementation
18: * of the control instance. Typically, only implementors
19: * of custom controls need to listen for this event.
20: * <p>
21: * Note: The meaning of each field depends on the
22: * message that was sent.
23: * </p>
24: *
25: * @see AccessibleControlListener
26: * @see AccessibleControlAdapter
27: *
28: * @since 2.0
29: */
30: public class AccessibleControlEvent extends SWTEventObject {
31: public int childID; // IN/OUT
32: public Accessible accessible; // OUT
33: public int x, y; // IN/OUT
34: public int width, height; // OUT
35: public int detail; // IN/OUT
36: public String result; // OUT
37: public Object children[]; // [OUT]
38:
39: static final long serialVersionUID = 3257281444169529141L;
40:
41: /**
42: * Constructs a new instance of this class.
43: *
44: * @param source the object that fired the event
45: */
46: public AccessibleControlEvent(Object source) {
47: super (source);
48: }
49:
50: /**
51: * Returns a string containing a concise, human-readable
52: * description of the receiver.
53: *
54: * @return a string representation of the event
55: */
56: public String toString() {
57: return "AccessibleControlEvent {childID=" + childID + //$NON-NLS-1$
58: " accessible=" + accessible + //$NON-NLS-1$
59: " x=" + x + //$NON-NLS-1$
60: " y=" + y + //$NON-NLS-1$
61: " width=" + width + //$NON-NLS-1$
62: " height=" + height + //$NON-NLS-1$
63: " detail=" + detail + //$NON-NLS-1$
64: " result=" + result + //$NON-NLS-1$
65: "}"; //$NON-NLS-1$
66: }
67: }
|