de.kosi.gui.swing
Class CActionMap
java.lang.Object
|
+--javax.swing.ActionMap
|
+--de.kosi.gui.swing.CActionMap
- All Implemented Interfaces:
- java.io.Serializable
- public class CActionMap
- extends javax.swing.ActionMap
An extension of @see javax#swing#ActionMap.
- See Also:
- Serialized Form
Constructor Summary |
CActionMap()
Doesn't do anything. |
Method Summary |
javax.swing.Action |
get(java.lang.String key)
Returns the action the key points to. |
void |
put(CAction action)
Puts the given action into this action map
using it's name as it's associated key. |
void |
putAll(java.lang.Object object)
Creates actions to all of object's methods of the signature
public void methodName(ActionEvent) and puts them
into this action map. |
void |
run(java.lang.String key)
Runs the action the key points to. |
Methods inherited from class javax.swing.ActionMap |
allKeys, clear, get, getParent, keys, put, remove, setParent, size |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CActionMap
public CActionMap()
- Doesn't do anything.
run
public void run(java.lang.String key)
- Runs the action the key points to.
- Parameters:
key
- the key of the action to perform.
get
public javax.swing.Action get(java.lang.String key)
- Returns the action the key points to.
- Parameters:
key
- the key of the wanted action.- Returns:
- the action the key points to.
put
public void put(CAction action)
- Puts the given action into this action map
using it's name as it's associated key.
- Parameters:
action
- the action to add to this action map.
putAll
public void putAll(java.lang.Object object)
- Creates actions to all of object's methods of the signature
public void methodName(ActionEvent)
and puts them
into this action map. The key methodName
points to an
action that invokes the method methodName
.
- Parameters:
object
- the object to retrieve the actions from.