|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webrenderer.event.MouseAdapter
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 |
public MouseAdapter()
| Method Detail |
public void onDoubleClick(MouseEvent e)
MouseListener
onDoubleClick in interface MouseListenerpublic void onClick(MouseEvent e)
MouseListener
onClick in interface MouseListenerpublic void onMouseDown(MouseEvent e)
MouseListener
onMouseDown in interface MouseListenerpublic void onMouseUp(MouseEvent e)
MouseListener
onMouseUp in interface MouseListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||