Package adams.gui.core.spreadsheettable
Class PreviewSelectedFile
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.gui.core.spreadsheettable.AbstractProcessRow
-
- adams.gui.core.spreadsheettable.PreviewSelectedFile
-
- All Implemented Interfaces:
Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,SizeOfHandler
,ProcessRow
,SpreadSheetTablePopupMenuItem
,Serializable
,Comparable<SpreadSheetTablePopupMenuItem>
public class PreviewSelectedFile extends AbstractProcessRow
Allows preview of the selected file in separate dialog.- 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
-
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 PreviewSelectedFile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
doProcessRow(SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified rows.String
getIconName()
Returns the name of the icon.String
getMenuItem()
Returns the default name for the menu item.String
globalInfo()
Returns a string describing the object.protected Properties
promptParameters(SpreadSheetTable table)
Prompts the user to configure the parameters.-
Methods inherited from class adams.gui.core.spreadsheettable.AbstractProcessRow
check, compareTo, processRow
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, 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_COLUMNS
public static final String KEY_COLUMNS
- 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 classAbstractProcessRow
- Returns:
- the name, null if none available
-
getMenuItem
public String getMenuItem()
Returns the default name for the menu item.- 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
-
doProcessRow
protected boolean doProcessRow(SpreadSheetTablePopupMenuItemHelper.TableState state)
Processes the specified rows.- Specified by:
doProcessRow
in classAbstractProcessRow
- Parameters:
state
- the table state- Returns:
- true if successful
-
-