org.jdesktop.animation.timing.triggers
Class ComponentFocusEvent

java.lang.Object
  extended by org.jdesktop.animation.timing.triggers.TriggerEvent
      extended by org.jdesktop.animation.timing.triggers.ComponentFocusEvent

public class ComponentFocusEvent
extends TriggerEvent


Field Summary
static ComponentFocusEvent FOCUS_IN
          Event fired when Component receives focus
static ComponentFocusEvent FOCUS_OUT
          Event fired when Component loses focus
 
Constructor Summary
protected ComponentFocusEvent(java.lang.String name)
          Protected constructor; this helps ensure type-safe use of pre-define TriggerEvent objects.
 
Method Summary
 TriggerEvent getOppositeEvent()
          This method finds the opposite of the current event.: FOCUS_IN -> FOCUS_OUT and FOCUS_OUT -> FOCUS_IN.
 
Methods inherited from class org.jdesktop.animation.timing.triggers.TriggerEvent
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FOCUS_IN

public static final ComponentFocusEvent FOCUS_IN
Event fired when Component receives focus


FOCUS_OUT

public static final ComponentFocusEvent FOCUS_OUT
Event fired when Component loses focus

Constructor Detail

ComponentFocusEvent

protected ComponentFocusEvent(java.lang.String name)
Protected constructor; this helps ensure type-safe use of pre-define TriggerEvent objects.

Method Detail

getOppositeEvent

public TriggerEvent getOppositeEvent()
This method finds the opposite of the current event.: FOCUS_IN -> FOCUS_OUT and FOCUS_OUT -> FOCUS_IN.

Overrides:
getOppositeEvent in class TriggerEvent