com.webrenderer.event
Interface MouseListener

All Superinterfaces:
java.util.EventListener
All Known Implementing Classes:
MouseAdapter

public interface MouseListener
extends java.util.EventListener

The listener interface for receiving mouse events such as mouse presses.

This listener should not be confused with java.awt.event.MouseListener. You should explicitly use com.webrenderer.event.MouseListener

e.g:
browser.addMouseListener(new com.webrenderer.event.MouseListener(){...});

The class that is interested in processing a mouse event either implements this interface (and all the methods it contains) or extends the abstract MouseAdapter class (overriding only the methods of interest).

The listener object created from that class is then registered with an IBrowserCanvas using the addMouseListener method.


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.
 

Method Detail

onClick

public void onClick(MouseEvent e)
Invoked when a mouse button is clicked.


onDoubleClick

public void onDoubleClick(MouseEvent e)
Invoked when a mouse button is double clicked.


onMouseDown

public void onMouseDown(MouseEvent e)
Invoked when a mouse button is pushed down.


onMouseUp

public void onMouseUp(MouseEvent e)
Invoked when a mouse button is released.