Mercurial > projects > dwt2
annotate org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/browser/TitleEvent.d @ 125:c43718956f21 default tip
Updated the snippets status.
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Thu, 11 Aug 2011 19:55:14 +0200 |
parents | 536e43f63c81 |
children |
rev | line source |
---|---|
25 | 1 /******************************************************************************* |
2 * Copyright (c) 2003, 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 * Port to the D programming language: | |
11 * John Reimer <terminal.node@gmail.com> | |
12 *******************************************************************************/ | |
13 module org.eclipse.swt.browser.TitleEvent; | |
14 | |
15 | |
16 import java.lang.all; | |
17 | |
18 import org.eclipse.swt.events.TypedEvent; | |
19 import org.eclipse.swt.widgets.Widget; | |
20 | |
21 /** | |
22 * A <code>TitleEvent</code> is sent by a {@link Browser} to | |
23 * {@link TitleListener}'s when the title of the current document | |
24 * is available or when it is modified. | |
25 * | |
26 * @since 3.0 | |
27 */ | |
28 public class TitleEvent : TypedEvent { | |
29 /** the title of the current document */ | |
30 public String title; | |
31 | |
49
7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
Frank Benoit <benoit@tionex.de>
parents:
26
diff
changeset
|
32 static const long serialVersionUID = 4121132532906340919L; |
25 | 33 |
34 this(Widget w) { | |
35 super(w); | |
36 } | |
37 | |
38 /** | |
39 * Returns a string containing a concise, human-readable | |
40 * description of the receiver. | |
41 * | |
42 * @return a string representation of the event | |
43 */ | |
44 public override String toString() { | |
120
536e43f63c81
Comprehensive update for Win32/Linux32 dmd-2.053/dmd-1.068+Tango-r5661
Denis Shelomovskij <verylonglogin.reg@gmail.com>
parents:
49
diff
changeset
|
45 return Format( "{} title = {}}", |
536e43f63c81
Comprehensive update for Win32/Linux32 dmd-2.053/dmd-1.068+Tango-r5661
Denis Shelomovskij <verylonglogin.reg@gmail.com>
parents:
49
diff
changeset
|
46 super.toString[0 .. $-1], title ); |
25 | 47 } |
48 } |