com.jmex.awt.swingui
Class JMEAction
java.lang.Object
com.jme.input.action.InputAction
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)
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMEAction
public JMEAction(java.lang.String name,
InputHandler inputHandler)
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