1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 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.ui.forms.events; 12 /** 13 * Classes that implement this interface will be notified when hyperlinks are 14 * entered, exited and activated. 15 * 16 * @see org.eclipse.ui.forms.widgets.Hyperlink 17 * @see org.eclipse.ui.forms.widgets.ImageHyperlink 18 * @see org.eclipse.ui.forms.widgets.FormText 19 * @since 3.0 20 */ 21 public interface IHyperlinkListener { 22 /** 23 * Sent when hyperlink is entered either by mouse entering the link client 24 * area, or keyboard focus switching to the hyperlink. 25 * 26 * @param e 27 * an event containing information about the hyperlink 28 */ 29 void linkEntered(HyperlinkEvent e); 30 /** 31 * Sent when hyperlink is exited either by mouse exiting the link client 32 * area, or keyboard focus switching from the hyperlink. 33 * 34 * @param e 35 * an event containing information about the hyperlink 36 */ 37 void linkExited(HyperlinkEvent e); 38 /** 39 * Sent when hyperlink is activated either by mouse click inside the link 40 * client area, or by pressing 'Enter' key while hyperlink has keyboard 41 * focus. 42 * 43 * @param e 44 * an event containing information about the hyperlink 45 */ 46 void linkActivated(HyperlinkEvent e); 47 } 48