org.jvnet.substance
Class FocusBorderListener
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FocusBorderListener
public FocusBorderListener(Component c)
- Simple constructor.
- Parameters:
c - The associated tracked component.
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.