T - Type of data node on which the menu action will be performedpublic abstract class AbstractMenuAction<T extends cz.cuni.amis.pogamut.sposh.elements.PoshElement> extends AbstractAction
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.| Modifier and Type | Field and Description |
|---|---|
protected T |
dataNode |
protected PoshWidget |
widget |
changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
AbstractMenuAction(String desc,
T dataNode) |
AbstractMenuAction(String desc,
T dataNode,
PoshWidget widget) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
errorDialog(String message)
Display user an error that occured during
|
String |
getDescription() |
protected String |
getIdentifierFromDialog(String purposeTitle) |
protected void |
setDescription(String newDesc) |
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitactionPerformedprotected T extends cz.cuni.amis.pogamut.sposh.elements.PoshElement dataNode
protected PoshWidget widget
public AbstractMenuAction(String desc, T dataNode, PoshWidget widget)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.