Package adams.flow.execution
Class AbstractFlowExecutionListenerWithTable
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.execution.AbstractFlowExecutionListener
-
- adams.flow.execution.AbstractGraphicalFlowExecutionListener
-
- adams.flow.execution.AbstractFlowExecutionListenerWithTable
-
- All Implemented Interfaces:
CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<FlowExecutionListener>
,SizeOfHandler
,FlowExecutionListener
,GraphicalFlowExecutionListener
,Serializable
,Comparable
- Direct Known Subclasses:
AbstractTimedFlowExecutionListenerWithTable
public abstract class AbstractFlowExecutionListenerWithTable extends AbstractGraphicalFlowExecutionListener
Ancestor for graphical listeners that display their data in a table.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SpreadSheetFileChooser
m_FileChooser
the file chooser for saving the spreadsheet.protected SortableAndSearchableTable
m_Table
the table to update.-
Fields inherited from class adams.flow.execution.AbstractGraphicalFlowExecutionListener
m_ListenerPanel
-
Fields inherited from class adams.flow.execution.AbstractFlowExecutionListener
m_Owner
-
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 AbstractFlowExecutionListenerWithTable()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract TableModel
createTableModel()
Creates a new table model with the current data.protected SpreadSheetFileChooser
getFileChooser()
Returns the filechooser for saving the table as spreadsheet.SpreadSheet
getSheet()
Returns the table as spreadsheet.protected void
initialize()
Initializes the members.BasePanel
newListenerPanel()
Returns the panel to use.protected void
updateGUI()
Updates the table in the GUI with a new table model.-
Methods inherited from class adams.flow.execution.AbstractGraphicalFlowExecutionListener
finishListening, getDefaultFrameSize, getDisposeOnFinish, newListenerPanelIfNecessary
-
Methods inherited from class adams.flow.execution.AbstractFlowExecutionListener
cleanUp, compareTo, equals, getListeners, getOwner, postExecute, postInput, postOutput, preExecute, preInput, preOutput, setOwner, shallowCopy, shallowCopy, startListening
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, globalInfo, 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, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.CleanUpHandler
cleanUp
-
Methods inherited from interface adams.flow.execution.FlowExecutionListener
getOwner, postExecute, postInput, postOutput, preExecute, preInput, preOutput, setOwner, startListening
-
Methods inherited from interface adams.flow.execution.GraphicalFlowExecutionListener
getListenerTitle
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
-
-
-
Field Detail
-
m_Table
protected SortableAndSearchableTable m_Table
the table to update.
-
m_FileChooser
protected transient SpreadSheetFileChooser m_FileChooser
the file chooser for saving the spreadsheet.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classAbstractOptionHandler
-
createTableModel
protected abstract TableModel createTableModel()
Creates a new table model with the current data.- Returns:
- the model with the current data
-
newListenerPanel
public BasePanel newListenerPanel()
Returns the panel to use.- Specified by:
newListenerPanel
in interfaceGraphicalFlowExecutionListener
- Specified by:
newListenerPanel
in classAbstractGraphicalFlowExecutionListener
- Returns:
- the panel, null if none available
-
getFileChooser
protected SpreadSheetFileChooser getFileChooser()
Returns the filechooser for saving the table as spreadsheet.- Returns:
- the filechooser
-
getSheet
public SpreadSheet getSheet()
Returns the table as spreadsheet.- Returns:
- the spread sheet
-
updateGUI
protected void updateGUI()
Updates the table in the GUI with a new table model.- Specified by:
updateGUI
in classAbstractGraphicalFlowExecutionListener
- See Also:
createTableModel()
-
-