|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.swing.ActionMap
org.brains2b.swingext.action.ExtActionMap
public class ExtActionMap
An Abstract ActionMap with an easy way to add actions
This actionMap takes an ActionListener that handles all actions in this Map.
This actionmap is based on SortedMap to allow for keys returned in the order where they where added in.
SortedMap
,
DefaultAction
,
ActionMap
,
Serialized FormConstructor Summary | |
---|---|
ExtActionMap(java.awt.event.ActionListener parent)
Create an FwActionMap. |
Method Summary | |
---|---|
void |
addAction(java.lang.Object actionCommand,
java.lang.String label,
java.lang.String description,
java.lang.String icon,
java.lang.String accelerator,
char mnemomic)
adds an Action to the Map |
java.lang.Object[] |
allKeys()
|
void |
clear()
|
javax.swing.Action |
get(java.lang.Object key)
|
java.awt.event.ActionListener |
getListener()
get the ActionListener belonging to this map |
org.brains2b.collection.SortedMap |
getMap()
get the SortedMap this ActionMap is based on |
java.lang.Object[] |
keys()
|
void |
put(java.lang.Object key,
javax.swing.Action action)
|
void |
remove(java.lang.Object key)
|
static void |
setDefaultSystemActions(ExtActionMap map)
sets Default system actions. |
int |
size()
|
Methods inherited from class javax.swing.ActionMap |
---|
getParent, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExtActionMap(java.awt.event.ActionListener parent)
parent
- ActionHandler, the ActionHandler handling fired actions.Method Detail |
---|
public static final void setDefaultSystemActions(ExtActionMap map)
public void addAction(java.lang.Object actionCommand, java.lang.String label, java.lang.String description, java.lang.String icon, java.lang.String accelerator, char mnemomic)
actionCommand
- String, the actionCommand to perform, also the key with which to find the action in the maplabel
- String, the name that will show up as labeldescription
- String, the description displayed as tooltip.icon
- javax.swing.Icon, an optional image to display with this actionaccelerator
- String , accelarator key as String, refer to KeyStroke for a description of KeyStrokes as text.mnemomic
- char, the mnemonic or shortcut key used.public java.awt.event.ActionListener getListener()
public java.lang.Object[] allKeys()
allKeys
in class javax.swing.ActionMap
public void clear()
clear
in class javax.swing.ActionMap
public javax.swing.Action get(java.lang.Object key)
get
in class javax.swing.ActionMap
public java.lang.Object[] keys()
keys
in class javax.swing.ActionMap
public void put(java.lang.Object key, javax.swing.Action action)
put
in class javax.swing.ActionMap
public void remove(java.lang.Object key)
remove
in class javax.swing.ActionMap
public int size()
size
in class javax.swing.ActionMap
public org.brains2b.collection.SortedMap getMap()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |