Mercurial > projects > dwt-linux
comparison dwt/accessibility/AccessibleTextEvent.d @ 42:787b5413b0ce
accessibility package
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Jan 2008 05:07:22 +0100 |
parents | |
children | 8cec8f536af3 |
comparison
equal
deleted
inserted
replaced
41:c83c51423d03 | 42:787b5413b0ce |
---|---|
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 module dwt.accessibility.AccessibleTextEvent; | |
12 | |
13 | |
14 import dwt.internal.SWTEventObject; | |
15 import tango.text.convert.Format; | |
16 | |
17 /** | |
18 * Instances of this class are sent as a result of | |
19 * accessibility clients sending messages to controls | |
20 * asking for detailed information about the implementation | |
21 * of the control instance. Typically, only implementors | |
22 * of custom controls need to listen for this event. | |
23 * <p> | |
24 * Note: The meaning of each field depends on the | |
25 * message that was sent. | |
26 * </p> | |
27 * | |
28 * @see AccessibleTextListener | |
29 * @see AccessibleTextAdapter | |
30 * | |
31 * @since 3.0 | |
32 */ | |
33 public class AccessibleTextEvent : SWTEventObject { | |
34 public int childID; // IN | |
35 public int offset, length; // OUT | |
36 | |
37 //static final long serialVersionUID = 3977019530868308275L; | |
38 | |
39 /** | |
40 * Constructs a new instance of this class. | |
41 * | |
42 * @param source the object that fired the event | |
43 */ | |
44 public this (Object source) { | |
45 super (source); | |
46 } | |
47 | |
48 /** | |
49 * Returns a string containing a concise, human-readable | |
50 * description of the receiver. | |
51 * | |
52 * @return a string representation of the event | |
53 */ | |
54 public char[] toString () { | |
55 return Format( "AccessibleTextEvent {{childID={} offset={} length={}}", | |
56 childID, | |
57 offset, | |
58 length); | |
59 } | |
60 } |