Package adams.gui.scripting
Class Visible
-
- All Implemented Interfaces:
LoggingSupporter
,SizeOfHandler
,Stoppable
,StoppableWithFeedback
,UndoHandler
,Serializable
,Comparable
public class Visible extends AbstractVisibilityScriplet
Action parameters:
visible <comma-separated list of 1-based indices>
Description:Sets the visibility of the specified spectrums to true. NB: index is based on the order the spectrums haven beeen loaded into the system, includes all spectrums, not just visible ones.
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
ACTION
the action to execute.-
Fields inherited from class adams.gui.scripting.AbstractScriptlet
m_DataProvider, m_Owner, m_Parameters, m_Stopped
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description Visible()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
doProcess(String options)
Processes the options.String
getAction()
Returns the action string used in the command processor.String
getDescription()
Returns the full description of the action.-
Methods inherited from class adams.gui.scripting.AbstractVisibilityScriplet
getOptionsDescription, process
-
Methods inherited from class adams.gui.scripting.AbstractDataContainerPanelScriptlet
getDataContainerPanel, getRequirements
-
Methods inherited from class adams.gui.scripting.AbstractUndoScriptlet
addUndoPoint, getUndo, isUndoSupported, setUndo
-
Methods inherited from class adams.gui.scripting.AbstractScriptlet
compareTo, equals, forName, getBasePanel, getDataProvider, getOwner, getParameter, getParameterDescription, getScriptlets, hashCode, hasOwner, hasParameter, initialize, isStopped, process, setDataProvider, setOwner, setParameter, showStatus, stopExecution, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Field Detail
-
ACTION
public static final String ACTION
the action to execute.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAction
public String getAction()
Returns the action string used in the command processor.- Specified by:
getAction
in classAbstractScriptlet
- Returns:
- the action string
-
getDescription
public String getDescription()
Returns the full description of the action.- Specified by:
getDescription
in classAbstractScriptlet
- Returns:
- the full description
-
doProcess
protected String doProcess(String options) throws Exception
Processes the options.- Specified by:
doProcess
in classAbstractScriptlet
- Parameters:
options
- additional/optional options for the action- Returns:
- null if no error, otherwise error message
- Throws:
Exception
- if something goes wrong
-
-