KickJava   Java API By Example, From Geeks To Geeks.

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


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.*;
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 AccessibleTextListener
28  * @see AccessibleTextAdapter
29  *
30  * @since 3.0
31  */

32 public class AccessibleTextEvent extends SWTEventObject {
33     public int childID; // IN
34
public int offset, length; // OUT
35

36     static final long serialVersionUID = 3977019530868308275L;
37     
38 /**
39  * Constructs a new instance of this class.
40  *
41  * @param source the object that fired the event
42  */

43 public AccessibleTextEvent (Object JavaDoc source) {
44     super (source);
45 }
46
47 /**
48  * Returns a string containing a concise, human-readable
49  * description of the receiver.
50  *
51  * @return a string representation of the event
52  */

53 public String JavaDoc toString () {
54     return "AccessibleTextEvent {childID=" + childID + //$NON-NLS-1$
55
" offset=" + offset + //$NON-NLS-1$
56
" length=" + length + //$NON-NLS-1$
57
"}"; //$NON-NLS-1$
58
}
59 }
60
Popular Tags