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