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.*;
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 AccessibleTextListener
26: * @see AccessibleTextAdapter
27: *
28: * @since 3.0
29: */
30: public class AccessibleTextEvent extends SWTEventObject {
31: public int childID; // IN
32: public int offset, length; // OUT
33:
34: static final long serialVersionUID = 3977019530868308275L;
35:
36: /**
37: * Constructs a new instance of this class.
38: *
39: * @param source the object that fired the event
40: */
41: public AccessibleTextEvent(Object source) {
42: super (source);
43: }
44:
45: /**
46: * Returns a string containing a concise, human-readable
47: * description of the receiver.
48: *
49: * @return a string representation of the event
50: */
51: public String toString() {
52: return "AccessibleTextEvent {childID=" + childID + //$NON-NLS-1$
53: " offset=" + offset + //$NON-NLS-1$
54: " length=" + length + //$NON-NLS-1$
55: "}"; //$NON-NLS-1$
56: }
57: }
|