01: /*******************************************************************************
02: * Copyright (c) 2000, 2005 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.ui.forms.events;
11:
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: /**
32: * Sent when hyperlink is exited either by mouse exiting the link client
33: * area, or keyboard focus switching from the hyperlink.
34: *
35: * @param e
36: * an event containing information about the hyperlink
37: */
38: void linkExited(HyperlinkEvent e);
39:
40: /**
41: * Sent when hyperlink is activated either by mouse click inside the link
42: * client area, or by pressing 'Enter' key while hyperlink has keyboard
43: * focus.
44: *
45: * @param e
46: * an event containing information about the hyperlink
47: */
48: void linkActivated(HyperlinkEvent e);
49: }
|