Package 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$
- Author:
- Steve Neuendorffer
-
-
Constructor Summary
Constructors Constructor Description FocusMouseListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Method Detail
-
mouseReleased
public void mouseReleased(java.awt.event.MouseEvent event)
- Specified by:
mouseReleased
in interfacejava.awt.event.MouseListener
-
mouseEntered
public void mouseEntered(java.awt.event.MouseEvent event)
- Specified by:
mouseEntered
in interfacejava.awt.event.MouseListener
-
mouseExited
public void mouseExited(java.awt.event.MouseEvent event)
- Specified by:
mouseExited
in interfacejava.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 interfacejava.awt.event.MouseListener
-
mouseClicked
public void mouseClicked(java.awt.event.MouseEvent event)
- Specified by:
mouseClicked
in interfacejava.awt.event.MouseListener
-
-