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