com.threerings.opengl.gui.event
Class FocusEvent
java.lang.Object
java.util.EventObject
com.threerings.opengl.gui.event.Event
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. |
|
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). |
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
FocusEvent
public FocusEvent(Object source,
long when,
int type)
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.