Class Append
-
- All Implemented Interfaces:
Destroyable,GlobalInfoSupporter,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<AbstractDataPlugin>,SizeOfHandler,Serializable
public class Append extends AbstractSelectedSheetsDataPlugin
Appends all the selected spreadsheets.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.gui.tools.spreadsheetviewer.AbstractSelectedSheetsDataPlugin
m_SelectedPanels
-
Fields inherited from class adams.gui.tools.spreadsheetviewer.AbstractDataPlugin
m_CanceledByUser, m_CurrentPanel, m_LastSetup
-
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 Append()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanProcess(SpreadSheetPanel panel)Returns whether the panel can be processed.protected JPanelcreateConfigurationPanel(ApprovalDialog dialog)Creates the panel with the configuration (return null to suppress display).StringgetMenuIcon()Returns the file name of the icon.StringgetMenuText()Returns the text of the menu item.StringglobalInfo()Returns a string describing the object.booleanisInPlace()Returns whether the processed sheet should rather get placed ("in-place") in the same tab rather than in a new one.protected SpreadSheetprocess()Processes all the selected panels.-
Methods inherited from class adams.gui.tools.spreadsheetviewer.AbstractSelectedSheetsDataPlugin
createDialog, createListPanel, doProcess, getAllPanels, getDialogSize, hasApprovalButton, hasCancelButton
-
Methods inherited from class adams.gui.tools.spreadsheetviewer.AbstractDataPlugin
check, getCanceledByUser, getCurrentPanel, getLastSetup, getPlugins, hasLastSetup, process, setCurrentPanel, setLastSetup, shallowCopy, shallowCopy
-
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
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getMenuText
public String getMenuText()
Returns the text of the menu item.- Specified by:
getMenuTextin classAbstractDataPlugin- Returns:
- the text
-
getMenuIcon
public String getMenuIcon()
Returns the file name of the icon.- Specified by:
getMenuIconin classAbstractDataPlugin- Returns:
- the filename or null if no icon available
-
isInPlace
public boolean isInPlace()
Returns whether the processed sheet should rather get placed ("in-place") in the same tab rather than in a new one.- Specified by:
isInPlacein classAbstractDataPlugin- Returns:
- true if to replace current sheet with processed one
-
canProcess
public boolean canProcess(SpreadSheetPanel panel)
Returns whether the panel can be processed.- Overrides:
canProcessin classAbstractDataPlugin- Parameters:
panel- the panel to check- Returns:
- true if can be processed
-
createConfigurationPanel
protected JPanel createConfigurationPanel(ApprovalDialog dialog)
Creates the panel with the configuration (return null to suppress display).- Specified by:
createConfigurationPanelin classAbstractSelectedSheetsDataPlugin- Parameters:
dialog- the dialog that is being created- Returns:
- the generated panel, null to suppress
-
process
protected SpreadSheet process()
Processes all the selected panels.- Specified by:
processin classAbstractSelectedSheetsDataPlugin- Returns:
- spreadsheet if successful, otherwise null
-
-