Home » openjdk-7 » sun » awt » [javadoc | source]
sun.awt
public class: CausedFocusEvent [javadoc | source]
java.lang.Object
   java.util.EventObject
      java.awt.AWTEvent
         java.awt.event.ComponentEvent
            java.awt.event.FocusEvent
               sun.awt.CausedFocusEvent

All Implemented Interfaces:
    Serializable

This class represents FocusEvents with a known "cause" - reason why this event happened. It can be mouse press, traversal, activation, and so on - all causes are described as Cause enum. The event with the cause can be constructed in two ways - explicitly through constructor of CausedFocusEvent class or implicitly, by calling appropriate requestFocusXXX method with "cause" parameter. The default cause is UNKNOWN.
Nested Class Summary:
public enum class  CausedFocusEvent.Cause   
Fields inherited from java.awt.event.FocusEvent:
FOCUS_FIRST,  FOCUS_LAST,  FOCUS_GAINED,  FOCUS_LOST,  temporary,  opposite
Fields inherited from java.awt.event.ComponentEvent:
COMPONENT_FIRST,  COMPONENT_LAST,  COMPONENT_MOVED,  COMPONENT_RESIZED,  COMPONENT_SHOWN,  COMPONENT_HIDDEN
Fields inherited from java.awt.AWTEvent:
id,  consumed,  focusManagerIsDispatching,  isPosted,  COMPONENT_EVENT_MASK,  CONTAINER_EVENT_MASK,  FOCUS_EVENT_MASK,  KEY_EVENT_MASK,  MOUSE_EVENT_MASK,  MOUSE_MOTION_EVENT_MASK,  WINDOW_EVENT_MASK,  ACTION_EVENT_MASK,  ADJUSTMENT_EVENT_MASK,  ITEM_EVENT_MASK,  TEXT_EVENT_MASK,  INPUT_METHOD_EVENT_MASK,  INPUT_METHODS_ENABLED_MASK,  PAINT_EVENT_MASK,  INVOCATION_EVENT_MASK,  HIERARCHY_EVENT_MASK,  HIERARCHY_BOUNDS_EVENT_MASK,  MOUSE_WHEEL_EVENT_MASK,  WINDOW_STATE_EVENT_MASK,  WINDOW_FOCUS_EVENT_MASK,  RESERVED_ID_MAX
Fields inherited from java.util.EventObject:
source
Constructor:
 public CausedFocusEvent(Component source,
    int id,
    boolean temporary,
    Component opposite,
    Cause cause) 
Method from sun.awt.CausedFocusEvent Summary:
getCause,   retarget,   toString
Methods from java.awt.event.FocusEvent:
getOppositeComponent,   isTemporary,   paramString
Methods from java.awt.event.ComponentEvent:
getComponent,   paramString
Methods from java.awt.AWTEvent:
access$000,   access$002,   consume,   convertToOld,   copyPrivateDataInto,   dispatched,   getID,   isConsumed,   paramString,   setSource,   toString
Methods from java.util.EventObject:
getSource,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from sun.awt.CausedFocusEvent Detail:
 public Cause getCause() 
 public static FocusEvent retarget(FocusEvent e,
    Component newSource) 
    Retargets the original focus event to the new target. If the original focus event is CausedFocusEvent, it remains such and cause is copied. Otherwise, new CausedFocusEvent is created, with cause as RETARGETED.
 public String toString()