com.threerings.opengl.gui.event
Class ActionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by com.threerings.opengl.gui.event.Event
          extended by com.threerings.opengl.gui.event.InputEvent
              extended by com.threerings.opengl.gui.event.ActionEvent
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CommandEvent

public class ActionEvent
extends InputEvent

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.threerings.opengl.gui.event.InputEvent
ALT_DOWN_MASK, BUTTON1_DOWN_MASK, BUTTON2_DOWN_MASK, BUTTON3_DOWN_MASK, CTRL_DOWN_MASK, META_DOWN_MASK, SHIFT_DOWN_MASK
 
Constructor Summary
ActionEvent(Object source, long when, int modifiers, String action)
           
ActionEvent(Object source, long when, int modifiers, String action, Object argument)
           
 
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.
 Object getArgument()
          Returns the argument 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).
 
Methods inherited from class com.threerings.opengl.gui.event.InputEvent
getModifiers, isAltDown, isControlDown, isMetaDown, isShiftDown
 
Methods inherited from class com.threerings.opengl.gui.event.Event
consume, 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
 

Constructor Detail

ActionEvent

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

ActionEvent

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

getAction

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


getArgument

public Object getArgument()
Returns the argument associated with this event.


dispatch

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

Overrides:
dispatch in class 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.