comparison dwt/accessibility/AccessibleTextEvent.d @ 0:380af2bdd8e5

Upload of whole dwt tree
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sat, 09 Aug 2008 17:00:02 +0200
parents
children f565d3a95c0a
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
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 * Port to the D Programming language:
12 * Jacob Carlborg <jacob.carlborg@gmail.com>
13 *******************************************************************************/
14 module dwt.accessibility.AccessibleTextEvent;
15
16 import dwt.dwthelper.utils;
17 import dwt.internal.DWTEventObject;
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 *
33 * @since 3.0
34 */
35 public class AccessibleTextEvent : DWTEventObject {
36 public int childID; // IN
37 public int offset, length; // OUT
38
39 static final long serialVersionUID = 3977019530868308275L;
40
41 /**
42 * Constructs a new instance of this class.
43 *
44 * @param source the object that fired the event
45 */
46 public this (Object source) {
47 super(source);
48 }
49
50 /**
51 * Returns a String containing a concise, human-readable
52 * description of the receiver.
53 *
54 * @return a String representation of the event
55 */
56 public String toString () {
57 return "AccessibleTextEvent {childID=" ~ childID + //$NON-NLS-1$
58 " offset=" + offset + //$NON-NLS-1$
59 " length=" + length + //$NON-NLS-1$
60 "}"; //$NON-NLS-1$
61 }
62 }