org.jvnet.substance.utils
Class FocusBorderListener

java.lang.Object
  extended by 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

Field Summary
protected  java.lang.Long focusAnimationFadeInstanceId
          Contains ID of the current looping animation when the trackedComponent is focused.
 
Constructor Summary
FocusBorderListener(java.awt.Component c)
          Simple constructor.
 
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
 

Field Detail

focusAnimationFadeInstanceId

protected java.lang.Long focusAnimationFadeInstanceId
Contains ID of the current looping animation when the trackedComponent is focused. Is null otherwise.

Constructor Detail

FocusBorderListener

public FocusBorderListener(java.awt.Component c)
Simple constructor.

Parameters:
c - The associated tracked component.
Method Detail

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).