comparison dwt/browser.old/TitleEvent.d @ 288:4ee8c4237614

old branches... commit by mistake
author John Reimer<terminal.node@gmail.com>
date Tue, 05 Aug 2008 18:00:50 -0700
parents
children
comparison
equal deleted inserted replaced
287:9cbe6285f746 288:4ee8c4237614
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 module dwt.browser.TitleEvent;
12
13 import dwt.dwthelper.utils;
14
15 import dwt.events.TypedEvent;
16 import dwt.widgets.Widget;
17
18 /**
19 * A <code>TitleEvent</code> is sent by a {@link Browser} to
20 * {@link TitleListener}'s when the title of the current document
21 * is available or when it is modified.
22 *
23 * @since 3.0
24 */
25 public class TitleEvent extends TypedEvent {
26 /** the title of the current document */
27 public String title;
28
29 static final long serialVersionUID = 4121132532906340919L;
30
31 TitleEvent(Widget w) {
32 super(w);
33 }
34
35 /**
36 * Returns a string containing a concise, human-readable
37 * description of the receiver.
38 *
39 * @return a string representation of the event
40 */
41 public String toString() {
42 String string = super.toString ();
43 return string.substring (0, string.length() - 1) // remove trailing '}'
44 + " title=" + title
45 + "}";
46 }
47 }