view dwtx/ui/forms/events/IHyperlinkListener.d @ 75:5d489b9f966c

Fix continue porting
author Frank Benoit <benoit@tionex.de>
date Sat, 24 May 2008 05:11:16 +0200
parents
children
line wrap: on
line source

/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 * Port to the D programming language:
 *     Frank Benoit <benoit@tionex.de>
 *******************************************************************************/
module dwtx.ui.forms.events.IHyperlinkListener;

import dwtx.ui.forms.events.HyperlinkEvent;

/**
 * Classes that implement this interface will be notified when hyperlinks are
 * entered, exited and activated.
 *
 * @see dwtx.ui.forms.widgets.Hyperlink
 * @see dwtx.ui.forms.widgets.ImageHyperlink
 * @see dwtx.ui.forms.widgets.FormText
 * @since 3.0
 */
public interface IHyperlinkListener {
    /**
     * Sent when hyperlink is entered either by mouse entering the link client
     * area, or keyboard focus switching to the hyperlink.
     *
     * @param e
     *            an event containing information about the hyperlink
     */
    void linkEntered(HyperlinkEvent e);
    /**
     * Sent when hyperlink is exited either by mouse exiting the link client
     * area, or keyboard focus switching from the hyperlink.
     *
     * @param e
     *            an event containing information about the hyperlink
     */
    void linkExited(HyperlinkEvent e);
    /**
     * Sent when hyperlink is activated either by mouse click inside the link
     * client area, or by pressing 'Enter' key while hyperlink has keyboard
     * focus.
     *
     * @param e
     *            an event containing information about the hyperlink
     */
    void linkActivated(HyperlinkEvent e);
}