diva.gui.toolbox
Class FocusMouseListener
java.lang.Object
diva.gui.toolbox.FocusMouseListener
- All Implemented Interfaces:
- java.awt.event.MouseListener, java.util.EventListener
public class FocusMouseListener
- extends java.lang.Object
- implements java.awt.event.MouseListener
A mouse listener that requests focus for the source of any
mouse event it receives. Yes, I Know this is simple, but I think it
is useful. Attach it to a component and the component gets when pressed.
- Version:
- $Id: FocusMouseListener.java 38798 2005-07-08 20:00:01Z cxh $
- Author:
- Steve Neuendorffer
Method Summary |
void |
mouseClicked(java.awt.event.MouseEvent event)
|
void |
mouseEntered(java.awt.event.MouseEvent event)
|
void |
mouseExited(java.awt.event.MouseEvent event)
|
void |
mousePressed(java.awt.event.MouseEvent event)
Grab the keyboard focus when the component that this listener is
attached to is clicked on. |
void |
mouseReleased(java.awt.event.MouseEvent event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FocusMouseListener
public FocusMouseListener()
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent event)
- Specified by:
mouseReleased
in interface java.awt.event.MouseListener
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent event)
- Specified by:
mouseEntered
in interface java.awt.event.MouseListener
mouseExited
public void mouseExited(java.awt.event.MouseEvent event)
- Specified by:
mouseExited
in interface java.awt.event.MouseListener
mousePressed
public void mousePressed(java.awt.event.MouseEvent event)
- Grab the keyboard focus when the component that this listener is
attached to is clicked on.
- Specified by:
mousePressed
in interface java.awt.event.MouseListener
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent event)
- Specified by:
mouseClicked
in interface java.awt.event.MouseListener