com.threerings.opengl.gui.event
Class FocusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.threerings.opengl.gui.event.Event
          extended by com.threerings.opengl.gui.event.FocusEvent
All Implemented Interfaces:
Serializable

public class FocusEvent
extends Event

An event dispatched to a component when it receives or loses the focus.

See Also:
Serialized Form

Field Summary
static int FOCUS_GAINED
          Indicates that a component gained the focus.
static int FOCUS_LOST
          Indicates that a component lost the focus.
 
Constructor Summary
FocusEvent(Object source, long when, int type)
           
 
Method Summary
 int getType()
          Indicates whether this was a FOCUS_GAINED or FOCUS_LOST event.
 boolean propagateUpHierarchy()
          Returns true if this event should be propagated up the interface hierarchy (input events) or false if it should be considered processed once it is dispatched on its originating component (derivative events like action or text events).
 
Methods inherited from class com.threerings.opengl.gui.event.Event
consume, dispatch, getWhen, isConsumed, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FOCUS_GAINED

public static final int FOCUS_GAINED
Indicates that a component gained the focus.

See Also:
Constant Field Values

FOCUS_LOST

public static final int FOCUS_LOST
Indicates that a component lost the focus.

See Also:
Constant Field Values
Constructor Detail

FocusEvent

public FocusEvent(Object source,
                  long when,
                  int type)
Method Detail

getType

public int getType()
Indicates whether this was a FOCUS_GAINED or FOCUS_LOST event.


propagateUpHierarchy

public boolean propagateUpHierarchy()
Description copied from class: Event
Returns true if this event should be propagated up the interface hierarchy (input events) or false if it should be considered processed once it is dispatched on its originating component (derivative events like action or text events).

Overrides:
propagateUpHierarchy in class Event


Copyright © 2011. All Rights Reserved.