Package adams.gui.core.spreadsheettable
Class ExportSpectra
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.core.spreadsheettable.AbstractProcessSelectedRows
-
- adams.gui.core.spreadsheettable.ExportSpectra
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,adams.gui.core.spreadsheettable.ProcessRow
,adams.gui.core.spreadsheettable.ProcessSelectedRows
,adams.gui.core.spreadsheettable.SpreadSheetTablePopupMenuItem
,Serializable
,Comparable<adams.gui.core.spreadsheettable.SpreadSheetTablePopupMenuItem>
public class ExportSpectra extends adams.gui.core.spreadsheettable.AbstractProcessSelectedRows implements adams.gui.core.spreadsheettable.ProcessRow
Exports the selected rows as spectra.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_COLUMNS
static String
KEY_DIRECTORY
static String
KEY_EXTRACTWAVENOS
static String
KEY_SAMPLEID
static String
KEY_WAVENOGROUP
static String
KEY_WAVENOREGEXP
static String
KEY_WRITER
-
Constructor Summary
Constructors Constructor Description ExportSpectra()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doProcessSelectedRows(adams.gui.core.spreadsheettable.SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified row.protected String
getDefaultMenuItem()
Returns the default name for the menu item.String
globalInfo()
Returns a string describing the object.int
maxNumRows()
Returns the maximum number of rows that the plugin requires.int
minNumRows()
Returns the minimum number of rows that the plugin requires.boolean
processRow(adams.gui.core.spreadsheettable.SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified row.protected adams.core.Properties
promptParameters(adams.gui.core.SpreadSheetTable table)
Prompts the user for parameters.-
Methods inherited from class adams.gui.core.spreadsheettable.AbstractProcessSelectedRows
check, compareTo, defineOptions, getIconName, getMenuItem, getMenuItemText, menuItemTextTipText, processSelectedRows, setMenuItemText
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
Field Detail
-
KEY_SAMPLEID
public static final String KEY_SAMPLEID
- See Also:
- Constant Field Values
-
KEY_COLUMNS
public static final String KEY_COLUMNS
- See Also:
- Constant Field Values
-
KEY_EXTRACTWAVENOS
public static final String KEY_EXTRACTWAVENOS
- See Also:
- Constant Field Values
-
KEY_WAVENOREGEXP
public static final String KEY_WAVENOREGEXP
- See Also:
- Constant Field Values
-
KEY_WAVENOGROUP
public static final String KEY_WAVENOGROUP
- See Also:
- Constant Field Values
-
KEY_WRITER
public static final String KEY_WRITER
- See Also:
- Constant Field Values
-
KEY_DIRECTORY
public static final String KEY_DIRECTORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getDefaultMenuItem
protected String getDefaultMenuItem()
Returns the default name for the menu item.- Specified by:
getDefaultMenuItem
in classadams.gui.core.spreadsheettable.AbstractProcessSelectedRows
- Returns:
- the name
-
minNumRows
public int minNumRows()
Returns the minimum number of rows that the plugin requires.- Specified by:
minNumRows
in interfaceadams.gui.core.spreadsheettable.ProcessSelectedRows
- Returns:
- the minimum
-
maxNumRows
public int maxNumRows()
Returns the maximum number of rows that the plugin requires.- Specified by:
maxNumRows
in interfaceadams.gui.core.spreadsheettable.ProcessSelectedRows
- Returns:
- the maximum, -1 for none
-
promptParameters
protected adams.core.Properties promptParameters(adams.gui.core.SpreadSheetTable table)
Prompts the user for parameters.- Parameters:
table
- the table this is for- Returns:
- the parameters, null if cancelled dialog
-
doProcessSelectedRows
protected boolean doProcessSelectedRows(adams.gui.core.spreadsheettable.SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified row.- Specified by:
doProcessSelectedRows
in classadams.gui.core.spreadsheettable.AbstractProcessSelectedRows
- Parameters:
state
- the table state- Returns:
- true if successful
-
processRow
public boolean processRow(adams.gui.core.spreadsheettable.SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified row.- Specified by:
processRow
in interfaceadams.gui.core.spreadsheettable.ProcessRow
- Parameters:
state
- the table state- Returns:
- true if successful
-
-