|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.AbstractAction
rle.core.ui.UiActionBase
public abstract class UiActionBase
Base class for classes that perform an action in response to a UI event, such as a keypress. In general, any action should NOT run on the event dispatch thread, i.e. should run in a background thread.
| Field Summary | |
|---|---|
protected InfoView |
config
|
protected GameContext |
context
|
protected java.lang.String |
parameters
|
| Fields inherited from class javax.swing.AbstractAction |
|---|
changeSupport, enabled |
| Fields inherited from interface javax.swing.Action |
|---|
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON |
| Constructor Summary | |
|---|---|
UiActionBase()
|
|
| Method Summary | |
|---|---|
void |
actionPerformed(java.awt.event.ActionEvent event)
Entry method triggered by key stroke. |
InfoView |
config()
Returns the configuration InfoView used to create this PlugIn. |
GameContext |
getContext()
For convenience. |
java.awt.event.ActionEvent |
getEvent()
The AWT/Swing event that triggered this action. |
java.lang.String |
getParameters()
|
java.util.Map<java.lang.String,java.lang.String> |
paramMap()
Provide access to parameters set via setParameters(). |
void |
setConfig(InfoView view)
Set the configuring InfoView. |
void |
setParameters(java.lang.String parameters)
Set parameters. |
| Methods inherited from class javax.swing.AbstractAction |
|---|
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface rle.core.ui.UiAction |
|---|
doAction |
| Methods inherited from interface javax.swing.Action |
|---|
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled |
| Field Detail |
|---|
protected java.lang.String parameters
protected InfoView config
protected GameContext context
| Constructor Detail |
|---|
public UiActionBase()
| Method Detail |
|---|
public java.awt.event.ActionEvent getEvent()
UiAction
getEvent in interface UiActionpublic final void actionPerformed(java.awt.event.ActionEvent event)
actionPerformed in interface java.awt.event.ActionListenerpublic void setParameters(java.lang.String parameters)
PlugIn
setParameters in interface PlugInpublic java.lang.String getParameters()
public java.util.Map<java.lang.String,java.lang.String> paramMap()
PlugIn
paramMap in interface PlugInpublic GameContext getContext()
getContext in interface PlugInpublic void setConfig(InfoView view)
PlugIn
setConfig in interface PlugInpublic InfoView config()
PlugIn
config in interface PlugIn
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||