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 SummaryFields 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 SummaryConstructors 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 SummaryAll 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_LABELprivate 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_LABELprivate static final java.lang.String TAB_NAME_LABEL The label to use for the tab name parameter.- See Also:
- Constant Field Values
 
 - 
recordingTabNameprivate java.lang.String recordingTabName The name of the tab to record the saving of.
 
- 
 - 
Constructor Detail- 
ActionSaveTabpublic ActionSaveTab() Constructor for the dynamic instantiation and execution of the SaveTab script action.
 - 
ActionSaveTabpublic 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- 
insertScriptLinepublic void insertScriptLine() If a script is being recorded and the action (read: algorithm) is done, add an entry for this action.- Specified by:
- insertScriptLinein interface- ScriptableActionInterface
 
 - 
scriptRunpublic void scriptRun(ParameterTable parameters) Sets up the action dialog state and then executes it.- Specified by:
- scriptRunin interface- ScriptableActionInterface
- Parameters:
- parameters- Table of parameters for the script to use.
 
 - 
setTabNamepublic void setTabName(java.lang.String tabName) Changes the name of the tab being saved.- Parameters:
- tabName- The name of the tab being saved.
 
 
- 
 
-