com.webrenderer.event
Class MouseAdapter

java.lang.Object
  extended bycom.webrenderer.event.MouseAdapter
All Implemented Interfaces:
java.util.EventListener, MouseListener

public abstract class MouseAdapter
extends java.lang.Object
implements MouseListener

An abstract adapter class for receiving mouse events. The methods in this class are empty. This class exists as convenience for creating listener objects.

Extend this class to create a MouseEvent listener and override the methods for the events of interest. (If you implement the MouseListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you only have to define methods for events you care about.)

Create a listener object using the extended class and then register it with a browser using the browser's addMouseListener method. When a mouse event occurs, the relevant method in the listener object is invoked and the MouseEvent is passed to it.


Constructor Summary
MouseAdapter()
           
 
Method Summary
 void onClick(MouseEvent e)
          Invoked when a mouse button is clicked.
 void onDoubleClick(MouseEvent e)
          Invoked when a mouse button is double clicked.
 void onMouseDown(MouseEvent e)
          Invoked when a mouse button is pushed down.
 void onMouseUp(MouseEvent e)
          Invoked when a mouse button is released.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseAdapter

public MouseAdapter()
Method Detail

onDoubleClick

public void onDoubleClick(MouseEvent e)
Description copied from interface: MouseListener
Invoked when a mouse button is double clicked.

Specified by:
onDoubleClick in interface MouseListener

onClick

public void onClick(MouseEvent e)
Description copied from interface: MouseListener
Invoked when a mouse button is clicked.

Specified by:
onClick in interface MouseListener

onMouseDown

public void onMouseDown(MouseEvent e)
Description copied from interface: MouseListener
Invoked when a mouse button is pushed down.

Specified by:
onMouseDown in interface MouseListener

onMouseUp

public void onMouseUp(MouseEvent e)
Description copied from interface: MouseListener
Invoked when a mouse button is released.

Specified by:
onMouseUp in interface MouseListener