de.jreality.ui.viewerapp.actions.edit
Class SaveSelected
java.lang.Object
javax.swing.AbstractAction
de.jreality.ui.viewerapp.actions.AbstractJrAction
de.jreality.ui.viewerapp.actions.AbstractSelectionListenerAction
de.jreality.ui.viewerapp.actions.edit.SaveSelected
- All Implemented Interfaces:
- SelectionListener, ActionListener, Serializable, Cloneable, EventListener, Action
public class SaveSelected
- extends AbstractSelectionListenerAction
Saves the selected SceneGraphComponent into a file
(if no SceneGraphComponent is selected, this action is disabled).
- Author:
- msommer
- 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 |
SaveSelected
public SaveSelected(String name,
SelectionManagerInterface sm,
Component parentComp)
actionPerformed
public void actionPerformed(ActionEvent e)
- Specified by:
actionPerformed
in interface ActionListener
- Specified by:
actionPerformed
in class AbstractJrAction
isEnabled
public boolean isEnabled(SelectionEvent e)
- Description copied from class:
AbstractSelectionListenerAction
- Override this method to specify when to disable or enable the action
based on the current selection.
This method is called in AbstractSelectionListenerAction.selectionChanged(SelectionEvent)
.
- Overrides:
isEnabled
in class AbstractSelectionListenerAction
- Parameters:
e
- the selection event
- Returns:
- true iff the action is enabled based on the current selection
- See Also:
AbstractSelectionListenerAction.selectionChanged(SelectionEvent)