Package adams.gui.core.spreadsheettable
Class CopySelectedFiles
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.core.spreadsheettable.AbstractProcessSelectedRows
-
- adams.gui.core.spreadsheettable.CopySelectedFiles
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,ProcessSelectedRows
,SpreadSheetTablePopupMenuItem
,Serializable
,Comparable<SpreadSheetTablePopupMenuItem>
public class CopySelectedFiles extends AbstractProcessSelectedRows
Allows copying of the selected files to a target directory.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
KEY_COLUMN
static String
KEY_TARGETDIR
-
Fields inherited from class adams.gui.core.spreadsheettable.AbstractProcessSelectedRows
m_MenuItemText
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description CopySelectedFiles()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doProcessSelectedRows(SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified rows.protected String
getDefaultMenuItem()
Returns the default name for the menu item.String
getIconName()
Returns the name of the icon.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.protected Properties
promptParameters(SpreadSheetTable table)
Prompts the user to configure the parameters.-
Methods inherited from class adams.gui.core.spreadsheettable.AbstractProcessSelectedRows
check, compareTo, defineOptions, 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 adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
KEY_COLUMN
public static final String KEY_COLUMN
- See Also:
- Constant Field Values
-
KEY_TARGETDIR
public static final String KEY_TARGETDIR
- See Also:
- Constant Field Values
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getIconName
public String getIconName()
Returns the name of the icon.- Specified by:
getIconName
in interfaceSpreadSheetTablePopupMenuItem
- Overrides:
getIconName
in classAbstractProcessSelectedRows
- Returns:
- the name, null if none available
-
minNumRows
public int minNumRows()
Returns the minimum number of rows that the plugin requires.- Returns:
- the minimum
-
maxNumRows
public int maxNumRows()
Returns the maximum number of rows that the plugin requires.- Returns:
- the maximum, -1 for none
-
getDefaultMenuItem
protected String getDefaultMenuItem()
Returns the default name for the menu item.- Specified by:
getDefaultMenuItem
in classAbstractProcessSelectedRows
- Returns:
- the name
-
promptParameters
protected Properties promptParameters(SpreadSheetTable table)
Prompts the user to configure the parameters.- Parameters:
table
- the table to do this for- Returns:
- the parameters, null if cancelled
-
doProcessSelectedRows
protected boolean doProcessSelectedRows(SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified rows.- Specified by:
doProcessSelectedRows
in classAbstractProcessSelectedRows
- Parameters:
state
- the table state- Returns:
- true if successful
-
-