Class ActionSaveTab
java.lang.Object
gov.nih.mipav.model.scripting.actions.ActionSaveTab
- All Implemented Interfaces:
ScriptableActionInterface
A script action which records saves the text contained in one of the output frame's tabs.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the dynamic instantiation and execution of the SaveTab script action.ActionSaveTab(String tabName) Constructor used to record the SaveTab script action line. -
Method Summary
Modifier and TypeMethodDescriptionvoidIf a script is being recorded and the action (read: algorithm) is done, add an entry for this action.voidscriptRun(ParameterTable parameters) Sets up the action dialog state and then executes it.voidsetTabName(String tabName) Changes the name of the tab being saved.
-
Field Details
-
DIR_LABEL
The (optional) label to use for the directory in which to save the tab contents.- See Also:
-
TAB_NAME_LABEL
The label to use for the tab name parameter.- See Also:
-
recordingTabName
The name of the tab to record the saving of.
-
-
Constructor Details
-
ActionSaveTab
public ActionSaveTab()Constructor for the dynamic instantiation and execution of the SaveTab script action. -
ActionSaveTab
Constructor used to record the SaveTab script action line.- Parameters:
tabName- The name of the tab being saved.
-
-
Method Details
-
insertScriptLine
public void insertScriptLine()If a script is being recorded and the action (read: algorithm) is done, add an entry for this action.- Specified by:
insertScriptLinein interfaceScriptableActionInterface
-
scriptRun
Sets up the action dialog state and then executes it.- Specified by:
scriptRunin interfaceScriptableActionInterface- Parameters:
parameters- Table of parameters for the script to use.
-
setTabName
Changes the name of the tab being saved.- Parameters:
tabName- The name of the tab being saved.
-