1 /*******************************************************************************
2 * Copyright (c) 2003, 2016 IBM Corporation and others.
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/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.browser;
16 import org.eclipse.swt.internal.*;
19 * This listener interface may be implemented in order to receive
20 * a {@link TitleEvent} notification when the title of the document
21 * displayed in a {@link Browser} is known or has been changed.
23 * @see Browser#addTitleListener(TitleListener)
24 * @see Browser#removeTitleListener(TitleListener)
29 public interface TitleListener extends SWTEventListener {
32 * This method is called when the title of the current document
33 * is available or has changed.
35 * <p>The following fields in the <code>TitleEvent</code> apply:</p>
37 * <li>(in) title the title of the current document
38 * <li>(in) widget the <code>Browser</code> whose current document's
39 * title is known or modified
42 * @param event the <code>TitleEvent</code> that contains the title
43 * of the document currently displayed in a <code>Browser</code>
47 public void changed(TitleEvent event);