cz.cuni.pogamut.posh.widget.kidview
Class AbstractMenuAction<T extends PoshElement>
java.lang.Object
javax.swing.AbstractAction
cz.cuni.pogamut.posh.widget.kidview.AbstractMenuAction<T>
- Type Parameters:
T - Type of data node on which the menu action will be performed
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
public abstract class AbstractMenuAction<T extends PoshElement>
- extends AbstractAction
Ancestor of (most) Shed menu actions. Basically every menu action will modify
underlying data node in some way, this class provides link to the data node
(dataNode) and possibly to the widget
(widget) on which the action is being performed
on. It also provides handy method (errorDialog(java.lang.String)) for displaying message to the user if action is for some reason impossible
to perform.
- Author:
- HonzaH
- 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 |
dataNode
protected T extends PoshElement dataNode
widget
protected ShedWidget widget
AbstractMenuAction
public AbstractMenuAction(String desc,
T dataNode,
ShedWidget widget)
AbstractMenuAction
public AbstractMenuAction(String desc,
T dataNode)
getDescription
public final String getDescription()
setDescription
protected final void setDescription(String newDesc)
getIdentifierFromDialog
protected final String getIdentifierFromDialog(String purposeTitle)
errorDialog
protected final void errorDialog(String message)
- Display user an error that occured during
- Parameters:
message - message with error
Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.