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