Interface FormMouseListener

  • All Superinterfaces:
    EventListener, FormEventListener

    public interface FormMouseListener
    extends FormEventListener

    Definition of interface for mouse listeners.

    Objects implementing this interface can register themselves as mouse listeners at components. They are then notified about mouse actions related to those components.

    This interface defines a bunch of methods that correspond to the event types defined by FormMouseEvent. All methods are passed a FormMouseEvent object with all information about the mouse event.

    In contrast to other event listener interfaces like FormActionListener or FormChangeListener , mouse listeners are more low-level. They deal with physical input events rather than logic events that have already been pre-processed by input components. Implementations should be aware of this fact.

    Version:
    $Id: FormMouseListener.java 205 2012-01-29 18:29:57Z oheger $
    Author:
    Oliver Heger
    • Method Detail

      • mousePressed

        void mousePressed​(FormMouseEvent event)
        Event notification method that is called when a mouse button is pressed. This method corresponds to the MOUSE_PRESSED event type.
        Parameters:
        event - the mouse event
      • mouseReleased

        void mouseReleased​(FormMouseEvent event)
        Event notification method that is called when a mouse button is released. This method corresponds to the MOUSE_RELEASED event type.
        Parameters:
        event - the mouse event
      • mouseClicked

        void mouseClicked​(FormMouseEvent event)
        Event notification method that is called when a mouse button is clicked. A click means that the button is pressed and then released. This method corresponds to the MOUSE_CLICKED event type.
        Parameters:
        event - the mouse event
      • mouseDoubleClicked

        void mouseDoubleClicked​(FormMouseEvent event)
        Event notification method that is called when a mouse button is double-clicked. This means that the button was clicked twice in an OS-specific interval. This method corresponds to the MOUSE_DOUBLE_CLICKED event type.
        Parameters:
        event - the mouse event
      • mouseEntered

        void mouseEntered​(FormMouseEvent event)
        Event notification method that is called when the mouse cursor enters the space occupied by the monitored component. This method corresponds to the MOUSE_ENTERED event type.
        Parameters:
        event - the mouse event
      • mouseExited

        void mouseExited​(FormMouseEvent event)
        Event notification method that is called when the mouse cursor leaves the space occupied by the monitored component. This method corresponds to the MOUSE_EXITED event type.
        Parameters:
        event - the mouse event