KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > accessibility > AccessibleControlEvent


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 package org.eclipse.swt.accessibility;
12
13
14 import org.eclipse.swt.internal.SWTEventObject;
15
16 /**
17  * Instances of this class are sent as a result of
18  * accessibility clients sending messages to controls
19  * asking for detailed information about the implementation
20  * of the control instance. Typically, only implementors
21  * of custom controls need to listen for this event.
22  * <p>
23  * Note: The meaning of each field depends on the
24  * message that was sent.
25  * </p>
26  *
27  * @see AccessibleControlListener
28  * @see AccessibleControlAdapter
29  *
30  * @since 2.0
31  */

32 public class AccessibleControlEvent extends SWTEventObject {
33     public int childID; // IN/OUT
34
public Accessible accessible; // OUT
35
public int x, y; // IN/OUT
36
public int width, height; // OUT
37
public int detail; // IN/OUT
38
public String JavaDoc result; // OUT
39
public Object JavaDoc children[]; // [OUT]
40

41     static final long serialVersionUID = 3257281444169529141L;
42     
43 /**
44  * Constructs a new instance of this class.
45  *
46  * @param source the object that fired the event
47  */

48 public AccessibleControlEvent(Object JavaDoc source) {
49     super(source);
50 }
51
52 /**
53  * Returns a string containing a concise, human-readable
54  * description of the receiver.
55  *
56  * @return a string representation of the event
57  */

58 public String JavaDoc toString () {
59     return "AccessibleControlEvent {childID=" + childID + //$NON-NLS-1$
60
" accessible=" + accessible + //$NON-NLS-1$
61
" x=" + x + //$NON-NLS-1$
62
" y=" + y + //$NON-NLS-1$
63
" width=" + width + //$NON-NLS-1$
64
" height=" + height + //$NON-NLS-1$
65
" detail=" + detail + //$NON-NLS-1$
66
" result=" + result + //$NON-NLS-1$
67
"}"; //$NON-NLS-1$
68
}
69 }
70
Popular Tags