cz.cuni.amis.nb.pogamut.base
Class NamedAction
java.lang.Object
javax.swing.AbstractAction
cz.cuni.amis.nb.pogamut.base.NamedAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Direct Known Subclasses:
- AgentAction, ServerNode.ServerUpAction
public abstract class NamedAction
- extends AbstractAction
Action getting the text from resource bundle according to the supplied
string key.
- Author:
- ik
- See Also:
- Serialized Form
| 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 |
NamedAction
public NamedAction(String key)
NamedAction
public NamedAction(String key,
Class cls)
- Parameters:
key - cls - Class used to get the bundle with localized resources
getStr
protected static String getStr(String key,
Class cls)
throws MissingResourceException
- Throws:
MissingResourceException
init
protected void init(String key,
Class cls)
actionPerformed
public void actionPerformed(ActionEvent e)
action
protected abstract void action(ActionEvent e)
throws cz.cuni.amis.utils.exception.PogamutException
- Throws:
cz.cuni.amis.utils.exception.PogamutException
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.