adavid.awt
Class AutoFocuser

java.lang.Object
  |
  +--adavid.awt.AutoFocuser

public class AutoFocuser
extends java.lang.Object
implements java.awt.event.MouseListener

AutoFocuser gives focus to a component when mouse enters


Constructor Summary
AutoFocuser()
           
 
Method Summary
static void add(java.awt.Component c)
          add this focuser as a listener to the component
 void mouseClicked(java.awt.event.MouseEvent e)
          useless functions from the MouseListener interface
 void mouseEntered(java.awt.event.MouseEvent e)
          MouseListener: used to grab the focus
 void mouseExited(java.awt.event.MouseEvent e)
           
 void mousePressed(java.awt.event.MouseEvent e)
           
 void mouseReleased(java.awt.event.MouseEvent e)
           
static void remove(java.awt.Component c)
          remove this focuser as a listener from the component
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AutoFocuser

public AutoFocuser()
Method Detail

add

public static void add(java.awt.Component c)
add this focuser as a listener to the component

remove

public static void remove(java.awt.Component c)
remove this focuser as a listener from the component

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent e)
MouseListener: used to grab the focus
Specified by:
mouseEntered in interface java.awt.event.MouseListener

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
useless functions from the MouseListener interface
Specified by:
mouseClicked in interface java.awt.event.MouseListener

mousePressed

public void mousePressed(java.awt.event.MouseEvent e)
Specified by:
mousePressed in interface java.awt.event.MouseListener

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Specified by:
mouseReleased in interface java.awt.event.MouseListener

mouseExited

public void mouseExited(java.awt.event.MouseEvent e)
Specified by:
mouseExited in interface java.awt.event.MouseListener