com.jmex.bui.event
Class FocusEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jmex.bui.event.BEvent
          extended by com.jmex.bui.event.FocusEvent
All Implemented Interfaces:
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(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.jmex.bui.event.BEvent
dispatch, getWhen, toString, toString
 
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
 

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

_type

protected int _type
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: 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 © 2008 Michael Bayne. All Rights Reserved.