1 /*******************************************************************************
2  * Copyright (c) 2000, 2008 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  * Port to the D programming language:
11  *     Frank Benoit <benoit@tionex.de>
12  *******************************************************************************/
13 module org.eclipse.swt.accessibility.AccessibleTextEvent;
14 
15 
16 import org.eclipse.swt.internal.SWTEventObject;
17 import java.lang.all;
18 
19 /**
20  * Instances of this class are sent as a result of
21  * accessibility clients sending messages to controls
22  * asking for detailed information about the implementation
23  * of the control instance. Typically, only implementors
24  * of custom controls need to listen for this event.
25  * <p>
26  * Note: The meaning of each field depends on the
27  * message that was sent.
28  * </p>
29  *
30  * @see AccessibleTextListener
31  * @see AccessibleTextAdapter
32  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
33  *
34  * @since 3.0
35  */
36 public class AccessibleTextEvent : SWTEventObject {
37     public int childID;             // IN
38     public int offset, length;      // OUT
39 
40     //static final long serialVersionUID = 3977019530868308275L;
41 
42 /**
43  * Constructs a new instance of this class.
44  *
45  * @param source the object that fired the event
46  */
47 public this (Object source) {
48     super (source);
49 }
50 
51 /**
52  * Returns a string containing a concise, human-readable
53  * description of the receiver.
54  *
55  * @return a string representation of the event
56  */
57 override public String toString () {
58     return Format( "AccessibleTextEvent {{childID={} offset={} length={}}",
59         childID,
60         offset,
61         length);
62 }
63 }