com.jmex.bui.event
Class FocusEvent
java.lang.Object
java.util.EventObject
com.jmex.bui.event.BEvent
com.jmex.bui.event.FocusEvent
- All Implemented Interfaces:
- java.io.Serializable
public class FocusEvent
- extends BEvent
An event dispatched to a component when it receives or loses the focus.
- See Also:
- Serialized Form
|
Field Summary |
protected int |
_type
|
static int |
FOCUS_GAINED
Indicates that a component gained the focus. |
static int |
FOCUS_LOST
Indicates that a component lost the focus. |
| Fields inherited from class com.jmex.bui.event.BEvent |
_when |
| Fields inherited from class java.util.EventObject |
source |
|
Constructor Summary |
FocusEvent(java.lang.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 java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
_type
protected int _type
FocusEvent
public FocusEvent(java.lang.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:
BEvent
- 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 BEvent
Copyright © 2011 Michael Bayne.
All Rights Reserved.