org.jvnet.substance
Class FocusBorderListener

java.lang.Object
  extended by org.jvnet.substance.FocusBorderListener
All Implemented Interfaces:
FocusListener, EventListener

public class FocusBorderListener
extends Object
implements FocusListener

Listener for changing border on focus events.

Author:
Kirill Grouchnikov

Constructor Summary
FocusBorderListener(Component c)
          Simple constructor.
 
Method Summary
 void focusGained(FocusEvent e)
           
 void focusLost(FocusEvent e)
           
static boolean isFocused(Component comp)
          Checks whether the specified component owns focus.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusBorderListener

public FocusBorderListener(Component c)
Simple constructor.

Parameters:
c - The associated tracked component.
Method Detail

focusGained

public void focusGained(FocusEvent e)
Specified by:
focusGained in interface FocusListener

focusLost

public void focusLost(FocusEvent e)
Specified by:
focusLost in interface FocusListener

isFocused

public static boolean isFocused(Component comp)
Checks whether the specified component owns focus.

Parameters:
comp - Component.
Returns:
true if the specified component owns focus, false otherwise.