Class ActionSaveTab
- java.lang.Object
-
- gov.nih.mipav.model.scripting.actions.ActionSaveTab
-
- All Implemented Interfaces:
ScriptableActionInterface
public class ActionSaveTab extends java.lang.Object implements ScriptableActionInterface
A script action which records saves the text contained in one of the output frame's tabs.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.StringDIR_LABELThe (optional) label to use for the directory in which to save the tab contents.private java.lang.StringrecordingTabNameThe name of the tab to record the saving of.private static java.lang.StringTAB_NAME_LABELThe label to use for the tab name parameter.
-
Constructor Summary
Constructors Constructor Description ActionSaveTab()Constructor for the dynamic instantiation and execution of the SaveTab script action.ActionSaveTab(java.lang.String tabName)Constructor used to record the SaveTab script action line.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinsertScriptLine()If 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(java.lang.String tabName)Changes the name of the tab being saved.
-
-
-
Field Detail
-
DIR_LABEL
private static final java.lang.String DIR_LABEL
The (optional) label to use for the directory in which to save the tab contents.- See Also:
- Constant Field Values
-
TAB_NAME_LABEL
private static final java.lang.String TAB_NAME_LABEL
The label to use for the tab name parameter.- See Also:
- Constant Field Values
-
recordingTabName
private java.lang.String recordingTabName
The name of the tab to record the saving of.
-
-
Constructor Detail
-
ActionSaveTab
public ActionSaveTab()
Constructor for the dynamic instantiation and execution of the SaveTab script action.
-
ActionSaveTab
public ActionSaveTab(java.lang.String tabName)
Constructor used to record the SaveTab script action line.- Parameters:
tabName- The name of the tab being saved.
-
-
Method Detail
-
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
public void scriptRun(ParameterTable parameters)
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
public void setTabName(java.lang.String tabName)
Changes the name of the tab being saved.- Parameters:
tabName- The name of the tab being saved.
-
-