diva.gui.toolbox
Class FocusMouseListener

java.lang.Object
  extended by diva.gui.toolbox.FocusMouseListener
All Implemented Interfaces:
MouseListener, EventListener

public class FocusMouseListener
extends Object
implements 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:
$Revision: 1.2 $
Author:
Steve Neuendorffer (neuendor@eecs.berkeley.edu)

Constructor Summary
FocusMouseListener()
           
 
Method Summary
 void mouseClicked(MouseEvent event)
           
 void mouseEntered(MouseEvent event)
           
 void mouseExited(MouseEvent event)
           
 void mousePressed(MouseEvent event)
          Grab the keyboard focus when the component that this listener is attached to is clicked on.
 void mouseReleased(MouseEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusMouseListener

public FocusMouseListener()
Method Detail

mouseReleased

public void mouseReleased(MouseEvent event)
Specified by:
mouseReleased in interface MouseListener

mouseEntered

public void mouseEntered(MouseEvent event)
Specified by:
mouseEntered in interface MouseListener

mouseExited

public void mouseExited(MouseEvent event)
Specified by:
mouseExited in interface MouseListener

mousePressed

public void mousePressed(MouseEvent event)
Grab the keyboard focus when the component that this listener is attached to is clicked on.

Specified by:
mousePressed in interface MouseListener

mouseClicked

public void mouseClicked(MouseEvent event)
Specified by:
mouseClicked in interface MouseListener


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.