javax.swing.plaf.basic

Class BasicListUI.MouseInputHandler

public class BasicListUI.MouseInputHandler extends Object implements MouseInputListener

A helper class which listens for {@link MouseEvent}s from the {@link JList}.
Method Summary
voidmouseClicked(MouseEvent event)
Called when a mouse button press/release cycle completes on the {@link JList}
voidmouseDragged(MouseEvent event)
Called when the mouse pointer moves over the area bounded by the {@link JList} while a button is held down.
voidmouseEntered(MouseEvent event)
Called when the mouse pointer enters the area bounded by the {@link JList}
voidmouseExited(MouseEvent event)
Called when the mouse pointer leaves the area bounded by the {@link JList}
voidmouseMoved(MouseEvent event)
Called when the mouse pointer moves over the area bounded by the {@link JList}.
voidmousePressed(MouseEvent event)
Called when a mouse button is pressed down on the {@link JList}.
voidmouseReleased(MouseEvent event)
Called when a mouse button is released on the {@link JList}

Method Detail

mouseClicked

public void mouseClicked(MouseEvent event)
Called when a mouse button press/release cycle completes on the {@link JList}

Parameters: event The event representing the mouse click

mouseDragged

public void mouseDragged(MouseEvent event)
Called when the mouse pointer moves over the area bounded by the {@link JList} while a button is held down.

Parameters: event The event representing the mouse drag

mouseEntered

public void mouseEntered(MouseEvent event)
Called when the mouse pointer enters the area bounded by the {@link JList}

Parameters: event The event representing the mouse entry

mouseExited

public void mouseExited(MouseEvent event)
Called when the mouse pointer leaves the area bounded by the {@link JList}

Parameters: event The event representing the mouse exit

mouseMoved

public void mouseMoved(MouseEvent event)
Called when the mouse pointer moves over the area bounded by the {@link JList}.

Parameters: event The event representing the mouse move

mousePressed

public void mousePressed(MouseEvent event)
Called when a mouse button is pressed down on the {@link JList}.

Parameters: event The event representing the mouse press

mouseReleased

public void mouseReleased(MouseEvent event)
Called when a mouse button is released on the {@link JList}

Parameters: event The event representing the mouse press