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 aFormMouseEvent
object with all information about the mouse event.In contrast to other event listener interfaces like
FormActionListener
orFormChangeListener
, 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
mouseClicked(FormMouseEvent event)
Event notification method that is called when a mouse button is clicked.void
mouseDoubleClicked(FormMouseEvent event)
Event notification method that is called when a mouse button is double-clicked.void
mouseEntered(FormMouseEvent event)
Event notification method that is called when the mouse cursor enters the space occupied by the monitored component.void
mouseExited(FormMouseEvent event)
Event notification method that is called when the mouse cursor leaves the space occupied by the monitored component.void
mousePressed(FormMouseEvent event)
Event notification method that is called when a mouse button is pressed.void
mouseReleased(FormMouseEvent event)
Event notification method that is called when a mouse button is released.
-
-
-
Method Detail
-
mousePressed
void mousePressed(FormMouseEvent event)
Event notification method that is called when a mouse button is pressed. This method corresponds to theMOUSE_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 theMOUSE_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 theMOUSE_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 theMOUSE_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 theMOUSE_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 theMOUSE_EXITED
event type.- Parameters:
event
- the mouse event
-
-