comparison dwt/browser/TitleEvent.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) 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 *
11 * Port to the D Programming language:
12 * Jacob Carlborg <jacob.carlborg@gmail.com>
13 *******************************************************************************/
14 module dwt.browser.TitleEvent;
15
16 import dwt.dwthelper.utils;
17 import dwt.dwthelper.string;
18 import dwt.events.TypedEvent;
19 import dwt.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
32 static const long serialVersionUID = 4121132532906340919L;
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 String toString () {
45 String str = super.toString();
46 return str.substring(0, String.length() - 1) // remove trailing '}'
47 + " title=" + title + "}";
48 }
49 }