Mercurial > projects > dwt-mac
comparison dwt/browser/StatusTextEvent.d @ 45:d8635bb48c7c
Merge with SWT 3.5
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Mon, 01 Dec 2008 17:07:00 +0100 |
parents | f565d3a95c0a |
children | 5583f8eeee6c |
comparison
equal
deleted
inserted
replaced
44:ca5e494f2bbf | 45:d8635bb48c7c |
---|---|
1 /******************************************************************************* | 1 /******************************************************************************* |
2 * Copyright (c) 2003, 2004 IBM Corporation and others. | 2 * Copyright (c) 2003, 2008 IBM Corporation and others. |
3 * All rights reserved. This program and the accompanying materials | 3 * All rights reserved. This program and the accompanying materials |
4 * are made available under the terms of the Eclipse Public License v1.0 | 4 * are made available under the terms of the Eclipse Public License v1.0 |
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * | 10 * |
11 * Port to the D programming language: | 11 * Port to the D programming language: |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | 12 * Jacob Carlborg <doob@me.com> |
13 *******************************************************************************/ | 13 *******************************************************************************/ |
14 module dwt.browser.StatusTextEvent; | 14 module dwt.browser.StatusTextEvent; |
15 | 15 |
16 import dwt.dwthelper.string; | 16 import dwt.dwthelper.string; |
17 import dwt.dwthelper.utils; | 17 import dwt.dwthelper.utils; |
22 * A <code>StatusTextEvent</code> is sent by a {@link Browser} to | 22 * A <code>StatusTextEvent</code> is sent by a {@link Browser} to |
23 * {@link StatusTextListener}'s when the status text is changed. | 23 * {@link StatusTextListener}'s when the status text is changed. |
24 * The status text is typically displayed in the status bar of | 24 * The status text is typically displayed in the status bar of |
25 * a browser application. | 25 * a browser application. |
26 * | 26 * |
27 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
28 * | |
27 * @since 3.0 | 29 * @since 3.0 |
28 */ | 30 */ |
29 public class StatusTextEvent : TypedEvent { | 31 public class StatusTextEvent : TypedEvent { |
30 /** status text */ | 32 /** status text */ |
31 public String text; | 33 public String text; |
35 this (Widget w) { | 37 this (Widget w) { |
36 super(w); | 38 super(w); |
37 } | 39 } |
38 | 40 |
39 /** | 41 /** |
40 * Returns a String containing a concise, human-readable | 42 * Returns a string containing a concise, human-readable |
41 * description of the receiver. | 43 * description of the receiver. |
42 * | 44 * |
43 * @return a String representation of the event | 45 * @return a string representation of the event |
44 */ | 46 */ |
45 public String toString () { | 47 public String toString () { |
46 String String = super.toString(); | 48 String string = super.toString(); |
47 return String.substring(0, String.length() - 1) // remove trailing '}' | 49 return string.substring(0, string.length() - 1) // remove trailing '}' |
48 + " text=" + text + "}"; | 50 + " text=" + text + "}"; |
49 } | 51 } |
50 } | 52 } |