org.jvnet.substance.utils
Class FocusBorderListener
java.lang.Object
org.jvnet.substance.utils.FocusBorderListener
- All Implemented Interfaces:
- java.awt.event.FocusListener, java.util.EventListener
public class FocusBorderListener
- extends java.lang.Object
- implements java.awt.event.FocusListener
Listener for changing border on focus events. This class is for internal
use only.
- Author:
- Kirill Grouchnikov
Method Summary |
void |
cancelAnimations()
Cancels the currently executing animation (if any). |
void |
focusGained(java.awt.event.FocusEvent e)
|
void |
focusLost(java.awt.event.FocusEvent e)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
focusAnimationFadeInstanceId
protected java.lang.Long focusAnimationFadeInstanceId
- Contains ID of the current looping animation when the
trackedComponent
is focused. Is null
otherwise.
FocusBorderListener
public FocusBorderListener(java.awt.Component c)
- Simple constructor.
- Parameters:
c
- The associated tracked component.
focusGained
public void focusGained(java.awt.event.FocusEvent e)
- Specified by:
focusGained
in interface java.awt.event.FocusListener
focusLost
public void focusLost(java.awt.event.FocusEvent e)
- Specified by:
focusLost
in interface java.awt.event.FocusListener
cancelAnimations
public void cancelAnimations()
- Cancels the currently executing animation (if any).