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 aFormMouseEventobject with all information about the mouse event.In contrast to other event listener interfaces like
FormActionListenerorFormChangeListener, 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 voidmouseClicked(FormMouseEvent event)Event notification method that is called when a mouse button is clicked.voidmouseDoubleClicked(FormMouseEvent event)Event notification method that is called when a mouse button is double-clicked.voidmouseEntered(FormMouseEvent event)Event notification method that is called when the mouse cursor enters the space occupied by the monitored component.voidmouseExited(FormMouseEvent event)Event notification method that is called when the mouse cursor leaves the space occupied by the monitored component.voidmousePressed(FormMouseEvent event)Event notification method that is called when a mouse button is pressed.voidmouseReleased(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_PRESSEDevent 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_RELEASEDevent 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_CLICKEDevent 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_CLICKEDevent 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_ENTEREDevent 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_EXITEDevent type.- Parameters:
event- the mouse event
-
-