Package adams.gui.scripting
Class SelectWaveNumber
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.gui.scripting.AbstractScriptlet
-
- adams.gui.scripting.AbstractUndoScriptlet
-
- adams.gui.scripting.AbstractSpectrumPanelScriptlet
-
- adams.gui.scripting.SelectWaveNumber
-
- All Implemented Interfaces:
adams.core.logging.LoggingSupporter,adams.core.SizeOfHandler,adams.core.Stoppable,adams.core.StoppableWithFeedback,adams.gui.core.UndoHandler,Serializable,Comparable
public class SelectWaveNumber extends AbstractSpectrumPanelScriptlet
Action parameters:
select-wave-number <wave number>
Description:Selects a wave number.
- Version:
- $Revision: 2242 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SelectWaveNumber()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringdoProcess(String options)Processes the options.StringgetAction()Returns the action string used in the command processor.StringgetDescription()Returns the full description of the action.protected StringgetOptionsDescription()Returns a one-line listing of the options of the action.-
Methods inherited from class adams.gui.scripting.AbstractSpectrumPanelScriptlet
getRequirements, getSpectrumPanel
-
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, requiresDataProvider, setDataProvider, setOwner, setParameter, showStatus, stopExecution, toString
-
-
-
-
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:
getActionin classadams.gui.scripting.AbstractScriptlet- Returns:
- the action string
-
getOptionsDescription
protected String getOptionsDescription()
Returns a one-line listing of the options of the action.- Overrides:
getOptionsDescriptionin classadams.gui.scripting.AbstractScriptlet- Returns:
- the options or null if none
-
getDescription
public String getDescription()
Returns the full description of the action.- Specified by:
getDescriptionin classadams.gui.scripting.AbstractScriptlet- Returns:
- the full description
-
doProcess
protected String doProcess(String options) throws Exception
Processes the options.- Specified by:
doProcessin classadams.gui.scripting.AbstractScriptlet- Parameters:
options- additional/optional options for the action- Returns:
- null if no error, otherwise error message
- Throws:
Exception- if something goes wrong
-
-