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