com.jmex.bui.event
Class ActionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.jmex.bui.event.BEvent
          extended by com.jmex.bui.event.InputEvent
              extended by com.jmex.bui.event.ActionEvent
All Implemented Interfaces:
Serializable

public class ActionEvent
extends InputEvent

Dispatched by a component when some sort of component-specific action has occurred.

See Also:
Serialized Form

Field Summary
protected  String _action
           
 
Fields inherited from class com.jmex.bui.event.InputEvent
_modifiers, ALT_DOWN_MASK, BUTTON1_DOWN_MASK, BUTTON2_DOWN_MASK, BUTTON3_DOWN_MASK, CTRL_DOWN_MASK, META_DOWN_MASK, SHIFT_DOWN_MASK
 
Fields inherited from class com.jmex.bui.event.BEvent
_when
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ActionEvent(Object source, long when, int modifiers, String action)
           
 
Method Summary
 void dispatch(ComponentListener listener)
          Instructs this event to notify the supplied listener if they implement an interface appropriate to this event.
 String getAction()
          Returns the action associated with this 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).
protected  void toString(StringBuffer buf)
           
 
Methods inherited from class com.jmex.bui.event.InputEvent
getModifiers
 
Methods inherited from class com.jmex.bui.event.BEvent
getWhen, 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

_action

protected String _action
Constructor Detail

ActionEvent

public ActionEvent(Object source,
                   long when,
                   int modifiers,
                   String action)
Method Detail

getAction

public String getAction()
Returns the action associated with this event.


dispatch

public void dispatch(ComponentListener listener)
Description copied from class: BEvent
Instructs this event to notify the supplied listener if they implement an interface appropriate to this event.

Overrides:
dispatch in class BEvent

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

toString

protected void toString(StringBuffer buf)
Overrides:
toString in class InputEvent


Copyright © 2008 Michael Bayne. All Rights Reserved.