java.awt.event
Class MouseAdapter

java.lang.Object
  extended by java.awt.event.MouseAdapter
All Implemented Interfaces:
MouseListener, EventListener
Direct Known Subclasses:
BasicComboPopup.InvocationMouseHandler, BasicComboPopup.ListMouseHandler, BasicFileChooserUI.DoubleClickListener, BasicScrollBarUI.ArrowButtonListener, BasicScrollBarUI.TrackListener, BasicSplitPaneDivider.MouseHandler, BasicTabbedPaneUI.MouseHandler, BasicTreeUI.MouseHandler, FormView.MouseEventListener, HTMLEditorKit.LinkController, MetalFileChooserUI.SingleClickListener, ToolTipManager

public abstract class MouseAdapter
extends Object
implements MouseListener

This class implements MouseListener and implements all methods with empty bodies. This allows a listener interested in implementing only a subset of the MouseListener interface to extend this class and override only the desired methods.

Since:
1.1
See Also:
MouseEvent, MouseListener

Constructor Summary
MouseAdapter()
          Do nothing default constructor for subclasses.
 
Method Summary
 void mouseClicked(MouseEvent event)
          Implements this method in the interface with an empty method body.
 void mouseEntered(MouseEvent event)
          Implements this method in the interface with an empty method body.
 void mouseExited(MouseEvent event)
          Implements this method in the interface with an empty method body.
 void mousePressed(MouseEvent event)
          Implements this method in the interface with an empty method body.
 void mouseReleased(MouseEvent event)
          Implements this method in the interface with an empty method body.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseAdapter

public MouseAdapter()
Do nothing default constructor for subclasses.

Method Detail

mouseClicked

public void mouseClicked(MouseEvent event)
Implements this method in the interface with an empty method body.

Specified by:
mouseClicked in interface MouseListener
Parameters:
event - the event, ignored in this implementation

mousePressed

public void mousePressed(MouseEvent event)
Implements this method in the interface with an empty method body.

Specified by:
mousePressed in interface MouseListener
Parameters:
event - the event, ignored in this implementation

mouseReleased

public void mouseReleased(MouseEvent event)
Implements this method in the interface with an empty method body.

Specified by:
mouseReleased in interface MouseListener
Parameters:
event - the event, ignored in this implementation

mouseEntered

public void mouseEntered(MouseEvent event)
Implements this method in the interface with an empty method body.

Specified by:
mouseEntered in interface MouseListener
Parameters:
event - the event, ignored in this implementation

mouseExited

public void mouseExited(MouseEvent event)
Implements this method in the interface with an empty method body.

Specified by:
mouseExited in interface MouseListener
Parameters:
event - the event, ignored in this implementation