]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/browser/TitleEvent.java
Remove invalid SHA-256-Digests
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / browser / TitleEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2003, 2009 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.browser;
15
16 import org.eclipse.swt.widgets.*;
17 import org.eclipse.swt.events.*;
18
19 /**
20  * A <code>TitleEvent</code> is sent by a {@link Browser} to
21  * {@link TitleListener}'s when the title of the current document
22  * is available or when it is modified.
23  *
24  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
25  *
26  * @since 3.0
27  */
28 public class TitleEvent extends TypedEvent {
29         /** the title of the current document */
30         public String title;
31
32         static final long serialVersionUID = 4121132532906340919L;
33
34 /**
35  * Constructs a new instance of this class.
36  *
37  * @param widget the widget that fired the event
38  *
39  * @since 3.5
40  */
41 public TitleEvent(Widget widget) {
42         super(widget);
43 }
44
45 /**
46  * Returns a string containing a concise, human-readable
47  * description of the receiver.
48  *
49  * @return a string representation of the event
50  */
51 @Override
52 public String toString() {
53         String string = super.toString ();
54         return string.substring (0, string.length() - 1) // remove trailing '}'
55                 + " title=" + title
56                 + "}";
57 }
58 }