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.TitleListener;
14 
15 import org.eclipse.swt.browser.TitleEvent;
16 //import java.lang.all;
17 
18 import org.eclipse.swt.internal.SWTEventListener;
19 
20 /**
21  * This listener interface may be implemented in order to receive
22  * a {@link TitleEvent} notification when the title of the document
23  * displayed in a {@link Browser} is known or has been changed.
24  * 
25  * @see Browser#addTitleListener(TitleListener)
26  * @see Browser#removeTitleListener(TitleListener)
27  * 
28  * @since 3.0
29  */
30 public interface TitleListener : SWTEventListener {
31 
32 /**
33  * This method is called when the title of the current document
34  * is available or has changed.
35  * <p>
36  *
37  * <p>The following fields in the <code>TitleEvent</code> apply:
38  * <ul>
39  * <li>(in) title the title of the current document
40  * <li>(in) widget the <code>Browser</code> whose current document's
41  * title is known or modified
42  * </ul>
43  * 
44  * @param event the <code>TitleEvent</code> that contains the title
45  * of the document currently displayed in a <code>Browser</code>
46  * 
47  * @since 3.0
48  */
49 public void changed(TitleEvent event);
50 }