com.jmex.awt.swingui
Class JMEAction

java.lang.Object
  extended by com.jme.input.action.InputAction
      extended by com.jmex.awt.swingui.JMEAction
All Implemented Interfaces:
InputActionInterface, java.awt.event.ActionListener, java.util.EventListener, javax.swing.Action

public abstract class JMEAction
extends InputAction
implements javax.swing.Action, java.awt.event.ActionListener

This class is used to execute an action in jMEs update thread instead of the Swing thread.

See Also:
InputActionInterface.performAction(com.jme.input.action.InputActionEvent)

Field Summary
 
Fields inherited from class com.jme.input.action.InputAction
speed
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
JMEAction(java.lang.String name, InputHandler inputHandler)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 SyntheticButton getButton()
           
 java.lang.Object getValue(java.lang.String key)
           
 boolean isEnabled()
           
 void putValue(java.lang.String key, java.lang.Object value)
           
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
           
 void setEnabled(boolean b)
           
 
Methods inherited from class com.jme.input.action.InputAction
getSpeed, setSpeed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jme.input.action.InputActionInterface
performAction
 

Constructor Detail

JMEAction

public JMEAction(java.lang.String name,
                 InputHandler inputHandler)
Method Detail

getButton

public SyntheticButton getButton()

actionPerformed

public final void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

addPropertyChangeListener

public final void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
addPropertyChangeListener in interface javax.swing.Action

getValue

public final java.lang.Object getValue(java.lang.String key)
Specified by:
getValue in interface javax.swing.Action

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface javax.swing.Action

putValue

public final void putValue(java.lang.String key,
                           java.lang.Object value)
Specified by:
putValue in interface javax.swing.Action

removePropertyChangeListener

public final void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Specified by:
removePropertyChangeListener in interface javax.swing.Action

setEnabled

public void setEnabled(boolean b)
Specified by:
setEnabled in interface javax.swing.Action