Package adams.flow.sink
Class SpreadSheetDisplay
-
- All Implemented Interfaces:
AdditionalInformationHandler
,CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,QuickInfoSupporter
,ShallowCopySupporter<Actor>
,SizeOfHandler
,Stoppable
,StoppableWithFeedback
,TextSupporter
,VariablesInspectionHandler
,SpreadSheetSupporter
,VariableChangeListener
,Actor
,ClearableDisplay
,DisplayTypeSupporter
,ErrorHandler
,InputConsumer
,ComponentSupplier
,DisplayPanelProvider
,TextSupplier
,MenuBarProvider
,SendToActionSupporter
,Serializable
,Comparable
public class SpreadSheetDisplay extends AbstractTextualDisplay implements DisplayPanelProvider, SpreadSheetSupporter, ComponentSupplier
Actor for displaying a spreadsheet.
Custom background for negative/positive values can be specified as well.
Input/output:
- accepts:
adams.data.spreadsheet.SpreadSheet
adams.data.spreadsheet.SpreadSheetSupporter
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-name <java.lang.String> (property: name) The name of the actor. default: SpreadSheetDisplay
-annotation <adams.core.base.BaseAnnotation> (property: annotations) The annotations to attach to this actor. default:
-skip <boolean> (property: skip) If set to true, transformation is skipped and the input token is just forwarded as it is. default: false
-stop-flow-on-error <boolean> (property: stopFlowOnError) If set to true, the flow execution at this level gets stopped in case this actor encounters an error; the error gets propagated; useful for critical actors. default: false
-silent <boolean> (property: silent) If enabled, then no errors are output in the console; Note: the enclosing actor handler must have this enabled as well. default: false
-short-title <boolean> (property: shortTitle) If enabled uses just the name for the title instead of the actor's full name. default: false
-display-type <adams.flow.core.displaytype.AbstractDisplayType> (property: displayType) Determines how to show the display, eg as standalone frame (default) or in the Flow editor window. default: adams.flow.core.displaytype.Default
-width <int> (property: width) The width of the dialog. default: 640 minimum: -1
-height <int> (property: height) The height of the dialog. default: 480 minimum: -1
-x <int> (property: x) The X position of the dialog (>=0: absolute, -1: left, -2: center, -3: right ). default: -1 minimum: -3
-y <int> (property: y) The Y position of the dialog (>=0: absolute, -1: top, -2: center, -3: bottom ). default: -1 minimum: -3
-font <java.awt.Font> (property: font) The font of the dialog. default: Monospaced-PLAIN-12
-num-decimals <int> (property: numDecimals) The number of decimals for numeric values. default: 3 minimum: -1
-cell-rendering-customizer <adams.gui.core.spreadsheettable.CellRenderingCustomizer> (property: cellRenderingCustomizer) The customizer for the cell rendering. default: adams.gui.core.spreadsheettable.DefaultCellRenderingCustomizer
-show-row-index-col <boolean> (property: showRowIndexColumn) Whether to show the row index column. default: true
-show-formulas <boolean> (property: showFormulas) Whether to show the formulas or the calculated values. default: false
-use-simple-header <boolean> (property: useSimpleHeader) Whether to use a simple table header (and also suppress the combobox for jumping to a column). default: false
-allow-search <boolean> (property: allowSearch) Whether to allow the user to search the table. default: false
-optimal-column-width <boolean> (property: optimalColumnWidth) Whether to calculate the optimal column width whenever a token is displayed (= enabled) or only when flow finishes. default: true
-read-only <boolean> (property: readOnly) Whether cells are read-only or editable. default: true
-writer <adams.data.io.output.AbstractTextWriter> (property: writer) The writer to use for storing the textual output. default: adams.data.io.output.NullWriter
-selected-rows-processor <adams.gui.core.spreadsheettable.ProcessSelectedRows> [-selected-rows-processor ...] (property: selectedRowsProcessors) The schemes that allow processing of the selected rows. default:
-preview <adams.gui.core.spreadsheetpreview.AbstractSpreadSheetPreview> (property: preview) The preview to use for selected rows. default: adams.gui.core.spreadsheetpreview.NullPreview
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpreadSheetDisplay.SpreadSheetDisplayPanel
CustomDisplayPanel
.
-
Field Summary
Fields Modifier and Type Field Description protected boolean
m_AllowSearch
whether to allow searching.protected CellRenderingCustomizer
m_CellRenderingCustomizer
the custom cell renderer.protected int
m_NumDecimals
the number of decimals for numeric values.protected boolean
m_OptimalColumnWidth
whether to optimize the column width whenever a token is displayed.protected SearchPanel
m_PanelSearch
the search panel.protected AbstractSpreadSheetPreview
m_Preview
the preview to use.protected boolean
m_ReadOnly
whether the table is read only.protected ProcessSelectedRows[]
m_SelectedRowsProcessors
for processing the selected rows.protected boolean
m_ShowFormulas
whether to show the formulas instead of the calculated values.protected boolean
m_ShowRowIndexColumn
whether to show the column with the row index.protected SpreadSheetTable
m_Table
the table.protected SpreadSheetTableModel
m_TableModel
the table model.protected boolean
m_UseSimpleHeader
whether to use the simple header.-
Fields inherited from class adams.flow.sink.AbstractTextualDisplay
m_AlwaysClear, m_FileChooser, m_Font, m_MenuBar, m_MenuItemFileClear, m_MenuItemFileClose, m_MenuItemFileSaveAs, m_MenuItemFlowPauseResume, m_MenuItemFlowStop, m_ShowFlowControlSubMenu, m_Writer
-
Fields inherited from class adams.flow.core.AbstractDisplay
BACKUP_INPUT, m_CreateFrame, m_DisplayType, m_Frame, m_Height, m_InputToken, m_KeepOpen, m_Panel, m_ShortTitle, m_Updating, m_Width, m_X, m_Y
-
Fields inherited from class adams.flow.core.AbstractActor
m_Annotations, m_BackupState, m_DetectedObjectVariables, m_DetectedVariables, m_ErrorHandler, m_Executed, m_Executing, m_ExecutionListeningSupporter, m_FullName, m_LoggingPrefix, m_Name, m_Parent, m_ScopeHandler, m_Self, m_Silent, m_Skip, m_StopFlowOnError, m_StopMessage, m_Stopped, m_StorageHandler, m_VariablesUpdated
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
Fields inherited from interface adams.flow.core.Actor
FILE_EXTENSION, FILE_EXTENSION_GZ
-
-
Constructor Summary
Constructors Constructor Description SpreadSheetDisplay()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]
accepts()
Returns the class that the consumer accepts.String
allowSearchTipText()
Returns the tip text for this property.String
cellRenderingCustomizerTipText()
Returns the tip text for this property.void
clearPanel()
Clears the content of the panel.AbstractDisplayPanel
createDisplayPanel(Token token)
Creates a new panel for the token.void
defineOptions()
Adds options to the internal list of options.protected void
display(Token token)
Displays the token (the panel and dialog have already been created at this stage).boolean
displayPanelRequiresScrollPane()
Returns whether the created display panel requires a scroll pane or not.protected String
doExecute()
Executes the flow item.boolean
getAllowSearch()
Returns whether to allow the user to search the table.CellRenderingCustomizer
getCellRenderingCustomizer()
Returns the cell rendering customizer.ExtensionFileFilter
getCustomTextFileFilter()
Returns a custom file filter for the file chooser.protected int
getDefaultHeight()
Returns the default height for the dialog.protected int
getDefaultWidth()
Returns the default width for the dialog.int
getNumDecimals()
Returns the currently set number of decimals to display.boolean
getOptimalColumnWidth()
Returns whether calculate the optimal column widht whenever a token is displayed (= true) or just when the flow finishes.AbstractSpreadSheetPreview
getPreview()
Returns the preview to use for selected rows.String
getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI.boolean
getReadOnly()
Returns whether cells are readonly or editable.ProcessSelectedRows[]
getSelectedRowsProcessors()
Returns the processors for the selected rows.Class[]
getSendToClasses()
Returns the classes that the supporter generates.Object
getSendToItem(Class[] cls)
Returns the object to send.boolean
getShowFormulas()
Returns whether to show the formulas or the calculated values.boolean
getShowRowIndexColumn()
Returns whether to show the column with the row indices.boolean
getUseSimpleHeader()
Returns whether to use a simple table (and also suppress the combobox for jumping to a column).String
globalInfo()
Returns a string describing the object.BasePanel
newPanel()
Creates the panel to display in the dialog.String
numDecimalsTipText()
Returns the tip text for this property.String
optimalColumnWidthTipText()
Returns the tip text for this property.String
previewTipText()
Returns the tip text for this property.String
readOnlyTipText()
Returns the tip text for this property.String
selectedRowsProcessorsTipText()
Returns the tip text for this property.void
setAllowSearch(boolean value)
Sets whether to allow the user to search the table.void
setCellRenderingCustomizer(CellRenderingCustomizer value)
Sets the cell rendering customizer.void
setNumDecimals(int value)
Sets the number of decimals to display.void
setOptimalColumnWidth(boolean value)
Sets whether calculate the optimal column widht whenever a token is displayed (= true) or just when the flow finishes.void
setPreview(AbstractSpreadSheetPreview value)
Sets the preview to use for selected rows.void
setReadOnly(boolean value)
Sets whether cells are readonly or editable.void
setSelectedRowsProcessors(ProcessSelectedRows[] value)
Sets the processors for the selected rows.void
setShowFormulas(boolean value)
Sets whether to show the formulas or the calculated values.void
setShowRowIndexColumn(boolean value)
Sets whether to show the column with the row indices.void
setUseSimpleHeader(boolean value)
Sets whether to use a simple table (and also suppress the combobox for jumping to a column).String
showFormulasTipText()
Returns the tip text for this property.String
showRowIndexColumnTipText()
Returns the tip text for this property.JComponent
supplyComponent()
Supplies the component.String
supplyText()
Returns the text to save.SpreadSheet
toSpreadSheet()
Returns the content as spreadsheet.String
useSimpleHeaderTipText()
Returns the tip text for this property.void
wrapUp()
Cleans up after the execution has finished.-
Methods inherited from class adams.flow.sink.AbstractTextualDisplay
alwaysClearTipText, canPauseOrResume, cleanUp, cleanUpGUI, clear, close, createFileMenu, createFlowMenu, createMenuBar, fontTipText, getAlwaysClear, getCustomSupplyTextMenuItemCaption, getDefaultFont, getFileChooser, getFont, getMenuBar, getShowFlowControlSubMenu, getWriter, hasSendToItem, indexOfMenuItem, initialize, isPaused, pauseResumeFlow, preDisplay, saveAs, setAlwaysClear, setFont, setShowFlowControlSubMenu, setWriter, showFlowControlSubMenuTipText, stopFlow, supportsClear, updateMenu, writerTipText
-
Methods inherited from class adams.flow.sink.AbstractDisplay
newDisplayRunnable, postDisplay
-
Methods inherited from class adams.flow.core.AbstractDisplay
backupState, cleanUpGUIKeepOpen, closeFrame, createFrame, createTitle, currentInput, deregisterInWrapUp, deregisterWindow, deregisterWithEditor, displayTypeTipText, doCreateFrame, getCreateFrame, getDefaultDisplayType, getDefaultShortTitle, getDefaultX, getDefaultY, getDisplayType, getFrame, getFrameDefaultCloseOperation, getHeight, getKeepOpen, getPanel, getShortTitle, getWidth, getX, getY, hasInput, heightTipText, input, postCreateFrame, preCreateFrame, registerWindow, registerWithEditor, reset, restoreState, setCreateFrame, setDisplayType, setHeight, setKeepOpen, setShortTitle, setWidth, setX, setY, shortTitleTipText, stopExecution, widthTipText, xTipText, yTipText
-
Methods inherited from class adams.flow.core.AbstractActor
annotationsTipText, canInspectOptions, canPerformSetUpCheck, compareTo, configureLogger, destroy, equals, execute, finalUpdateVariables, findVariables, findVariables, forceVariables, forCommandLine, forName, forName, getAdditionalInformation, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFlowActors, getFlowExecutionListeningSupporter, getFullName, getName, getNextSibling, getParent, getParentComponent, getPreviousSibling, getRoot, getScopeHandler, getSilent, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, handleException, hasErrorHandler, hasStopMessage, index, isBackedUp, isExecuted, isExecuting, isFinished, isHeadless, isStopped, nameTipText, performSetUpChecks, performVariableChecks, postExecute, preExecute, pruneBackup, pruneBackup, setAnnotations, setErrorHandler, setName, setParent, setSilent, setSkip, setStopFlowOnError, setUp, setVariables, shallowCopy, shallowCopy, silentTipText, sizeOf, skipTipText, stopExecution, stopFlowOnErrorTipText, updateDetectedVariables, updatePrefix, updateVariables, variableChanged
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.flow.core.Actor
cleanUp, compareTo, destroy, equals, execute, findVariables, getAnnotations, getDefaultName, getDetectedVariables, getErrorHandler, getFlowExecutionListeningSupporter, getFullName, getName, getNextSibling, getParent, getParentComponent, getPreviousSibling, getRoot, getScopeHandler, getSilent, getSkip, getStopFlowOnError, getStopMessage, getStorageHandler, getVariables, handleError, hasErrorHandler, hasStopMessage, index, isExecuted, isFinished, isHeadless, isStopped, setAnnotations, setErrorHandler, setName, setParent, setSilent, setSkip, setStopFlowOnError, setUp, setVariables, shallowCopy, shallowCopy, sizeOf, stopExecution, stopExecution, toCommandLine, variableChanged
-
Methods inherited from interface adams.core.AdditionalInformationHandler
getAdditionalInformation
-
Methods inherited from interface adams.flow.core.InputConsumer
currentInput, hasInput, input
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel, setLoggingLevel
-
Methods inherited from interface adams.core.logging.LoggingSupporter
getLogger, isLoggingEnabled
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, getOptionManager
-
Methods inherited from interface adams.core.VariablesInspectionHandler
canInspectOptions
-
-
-
-
Field Detail
-
m_Table
protected SpreadSheetTable m_Table
the table.
-
m_TableModel
protected SpreadSheetTableModel m_TableModel
the table model.
-
m_PanelSearch
protected SearchPanel m_PanelSearch
the search panel.
-
m_NumDecimals
protected int m_NumDecimals
the number of decimals for numeric values.
-
m_CellRenderingCustomizer
protected CellRenderingCustomizer m_CellRenderingCustomizer
the custom cell renderer.
-
m_ShowRowIndexColumn
protected boolean m_ShowRowIndexColumn
whether to show the column with the row index.
-
m_ShowFormulas
protected boolean m_ShowFormulas
whether to show the formulas instead of the calculated values.
-
m_UseSimpleHeader
protected boolean m_UseSimpleHeader
whether to use the simple header.
-
m_AllowSearch
protected boolean m_AllowSearch
whether to allow searching.
-
m_OptimalColumnWidth
protected boolean m_OptimalColumnWidth
whether to optimize the column width whenever a token is displayed.
-
m_ReadOnly
protected boolean m_ReadOnly
whether the table is read only.
-
m_SelectedRowsProcessors
protected ProcessSelectedRows[] m_SelectedRowsProcessors
for processing the selected rows.
-
m_Preview
protected AbstractSpreadSheetPreview m_Preview
the preview to use.
-
-
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
-
defineOptions
public void defineOptions()
Adds options to the internal list of options.- Specified by:
defineOptions
in interfaceOptionHandler
- Overrides:
defineOptions
in classAbstractTextualDisplay
-
getQuickInfo
public String getQuickInfo()
Returns a quick info about the actor, which will be displayed in the GUI.- Specified by:
getQuickInfo
in interfaceActor
- Specified by:
getQuickInfo
in interfaceQuickInfoSupporter
- Overrides:
getQuickInfo
in classAbstractTextualDisplay
- Returns:
- null if no info available, otherwise short string
-
setNumDecimals
public void setNumDecimals(int value)
Sets the number of decimals to display.- Parameters:
value
- the number of decimals
-
getNumDecimals
public int getNumDecimals()
Returns the currently set number of decimals to display.- Returns:
- the number of decimals
-
numDecimalsTipText
public String numDecimalsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setCellRenderingCustomizer
public void setCellRenderingCustomizer(CellRenderingCustomizer value)
Sets the cell rendering customizer.- Parameters:
value
- the customizer
-
getCellRenderingCustomizer
public CellRenderingCustomizer getCellRenderingCustomizer()
Returns the cell rendering customizer.- Returns:
- the customizer
-
cellRenderingCustomizerTipText
public String cellRenderingCustomizerTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setShowFormulas
public void setShowFormulas(boolean value)
Sets whether to show the formulas or the calculated values.- Parameters:
value
- true if to show formulas
-
getShowFormulas
public boolean getShowFormulas()
Returns whether to show the formulas or the calculated values.- Returns:
- true if to show formulas
-
showFormulasTipText
public String showFormulasTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setShowRowIndexColumn
public void setShowRowIndexColumn(boolean value)
Sets whether to show the column with the row indices.- Parameters:
value
- true if to show the column
-
getShowRowIndexColumn
public boolean getShowRowIndexColumn()
Returns whether to show the column with the row indices.- Returns:
- true if to show the column
-
showRowIndexColumnTipText
public String showRowIndexColumnTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setUseSimpleHeader
public void setUseSimpleHeader(boolean value)
Sets whether to use a simple table (and also suppress the combobox for jumping to a column).- Parameters:
value
- true if to use
-
getUseSimpleHeader
public boolean getUseSimpleHeader()
Returns whether to use a simple table (and also suppress the combobox for jumping to a column).- Returns:
- true if to use
-
useSimpleHeaderTipText
public String useSimpleHeaderTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setAllowSearch
public void setAllowSearch(boolean value)
Sets whether to allow the user to search the table.- Parameters:
value
- true if to allow search
-
getAllowSearch
public boolean getAllowSearch()
Returns whether to allow the user to search the table.- Returns:
- true if to allow search
-
allowSearchTipText
public String allowSearchTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setOptimalColumnWidth
public void setOptimalColumnWidth(boolean value)
Sets whether calculate the optimal column widht whenever a token is displayed (= true) or just when the flow finishes.- Parameters:
value
- true if to always recaculate
-
getOptimalColumnWidth
public boolean getOptimalColumnWidth()
Returns whether calculate the optimal column widht whenever a token is displayed (= true) or just when the flow finishes.- Returns:
- true if to always recalculate
-
optimalColumnWidthTipText
public String optimalColumnWidthTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setReadOnly
public void setReadOnly(boolean value)
Sets whether cells are readonly or editable.- Parameters:
value
- true if read only
-
getReadOnly
public boolean getReadOnly()
Returns whether cells are readonly or editable.- Returns:
- true if read only
-
readOnlyTipText
public String readOnlyTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setSelectedRowsProcessors
public void setSelectedRowsProcessors(ProcessSelectedRows[] value)
Sets the processors for the selected rows.- Parameters:
value
- the processors
-
getSelectedRowsProcessors
public ProcessSelectedRows[] getSelectedRowsProcessors()
Returns the processors for the selected rows.- Returns:
- the processors
-
selectedRowsProcessorsTipText
public String selectedRowsProcessorsTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
setPreview
public void setPreview(AbstractSpreadSheetPreview value)
Sets the preview to use for selected rows.- Parameters:
value
- the preview
-
getPreview
public AbstractSpreadSheetPreview getPreview()
Returns the preview to use for selected rows.- Returns:
- the preview
-
previewTipText
public String previewTipText()
Returns the tip text for this property.- Returns:
- tip text for this property suitable for displaying in the GUI or for listing the options.
-
getDefaultWidth
protected int getDefaultWidth()
Returns the default width for the dialog.- Overrides:
getDefaultWidth
in classAbstractDisplay
- Returns:
- the default width
-
getDefaultHeight
protected int getDefaultHeight()
Returns the default height for the dialog.- Overrides:
getDefaultHeight
in classAbstractDisplay
- Returns:
- the default height
-
clearPanel
public void clearPanel()
Clears the content of the panel.- Specified by:
clearPanel
in classAbstractDisplay
-
newPanel
public BasePanel newPanel()
Creates the panel to display in the dialog.- Specified by:
newPanel
in classAbstractDisplay
- Returns:
- the panel
-
accepts
public Class[] accepts()
Returns the class that the consumer accepts.- Specified by:
accepts
in interfaceInputConsumer
- Returns:
- adams.data.spreadsheet.SpreadSheet.class, adams.data.spreadsheet.SpreadSheetSupporter.class
-
display
protected void display(Token token)
Displays the token (the panel and dialog have already been created at this stage).- Specified by:
display
in classAbstractDisplay
- Parameters:
token
- the token to display
-
createDisplayPanel
public AbstractDisplayPanel createDisplayPanel(Token token)
Creates a new panel for the token.- Specified by:
createDisplayPanel
in interfaceDisplayPanelProvider
- Parameters:
token
- the token to display in a new panel, can be null- Returns:
- the generated panel
-
displayPanelRequiresScrollPane
public boolean displayPanelRequiresScrollPane()
Returns whether the created display panel requires a scroll pane or not.- Specified by:
displayPanelRequiresScrollPane
in interfaceDisplayPanelProvider
- Returns:
- true if the display panel requires a scroll pane
-
doExecute
protected String doExecute()
Executes the flow item.
Outputs the token on the command-line in headless mode.- Overrides:
doExecute
in classAbstractTextualDisplay
- Returns:
- null if everything is fine, otherwise error message
-
getCustomTextFileFilter
public ExtensionFileFilter getCustomTextFileFilter()
Returns a custom file filter for the file chooser.- Specified by:
getCustomTextFileFilter
in interfaceTextSupplier
- Overrides:
getCustomTextFileFilter
in classAbstractTextualDisplay
- Returns:
- the file filter, null if to use default one
-
supplyText
public String supplyText()
Returns the text to save.- Specified by:
supplyText
in interfaceTextSupplier
- Specified by:
supplyText
in interfaceTextSupporter
- Specified by:
supplyText
in classAbstractTextualDisplay
- Returns:
- the text, null if no text available
-
supplyComponent
public JComponent supplyComponent()
Supplies the component. May get called even before actor has been executed.- Specified by:
supplyComponent
in interfaceComponentSupplier
- Returns:
- the component, null if none available
-
getSendToClasses
public Class[] getSendToClasses()
Returns the classes that the supporter generates.- Specified by:
getSendToClasses
in interfaceSendToActionSupporter
- Overrides:
getSendToClasses
in classAbstractTextualDisplay
- Returns:
- the classes
-
getSendToItem
public Object getSendToItem(Class[] cls)
Returns the object to send.- Specified by:
getSendToItem
in interfaceSendToActionSupporter
- Overrides:
getSendToItem
in classAbstractTextualDisplay
- Parameters:
cls
- the classes to retrieve the item for- Returns:
- the item to send
-
toSpreadSheet
public SpreadSheet toSpreadSheet()
Returns the content as spreadsheet.- Specified by:
toSpreadSheet
in interfaceSpreadSheetSupporter
- Returns:
- the content, null if not available
-
wrapUp
public void wrapUp()
Cleans up after the execution has finished.- Specified by:
wrapUp
in interfaceActor
- Overrides:
wrapUp
in classAbstractTextualDisplay
-
-