diva.gui.toolbox
Class FocusMouseListener
java.lang.Object
diva.gui.toolbox.FocusMouseListener
- All Implemented Interfaces:
- java.util.EventListener, java.awt.event.MouseListener
- 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,v 1.7 2004/04/13 18:48:19 cxh Exp $
- 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