Package adams.gui.tools
Class SpreadSheetViewerPanel
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- javax.swing.JComponent
-
- javax.swing.JPanel
-
- adams.gui.core.BasePanel
-
- adams.gui.core.ToolBarPanel
-
- adams.gui.tools.SpreadSheetViewerPanel
-
- All Implemented Interfaces:
CleanUpHandler
,MenuBarProvider
,SendToActionSupporter
,ImageObserver
,MenuContainer
,Serializable
,Accessible
public class SpreadSheetViewerPanel extends ToolBarPanel implements MenuBarProvider, SendToActionSupporter, CleanUpHandler
A panel for viewing SpreadSheet files.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class adams.gui.core.ToolBarPanel
ToolBarPanel.ToolBarLocation
-
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
-
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
-
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
-
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILENAME
the name of the props file.static String
FILENAME_MENU
the name of the menu props file.protected SpreadSheetViewerAction
m_ActionDataChart
the "Chart" menu item.protected SpreadSheetViewerAction
m_ActionDataComputeDifference
the "compute difference" menu item.protected SpreadSheetViewerAction
m_ActionDataConvert
the "Convert" menu item.protected SpreadSheetViewerAction
m_ActionDataFilterColumns
the "filter columns" menu item.protected SpreadSheetViewerAction
m_ActionDataFilterRows
the "filter rows" menu item.protected SpreadSheetViewerAction
m_ActionDataSort
the "Sort" menu item.protected SpreadSheetViewerAction
m_ActionDataTransform
the "Transform" menu item.protected SpreadSheetViewerAction
m_ActionEditClearClipboard
the "clear clipboard" menu item.protected SpreadSheetViewerAction
m_ActionEditPasteFromClipboard
the "paste from clipboard" menu item.protected SpreadSheetViewerAction
m_ActionFileClosePage
the "close" menu item.protected SpreadSheetViewerAction
m_ActionFileExit
the "exit" menu item.protected SpreadSheetViewerAction
m_ActionFileGarbageCollectionOnClose
the "use GC" menu item.protected SpreadSheetViewerAction
m_ActionFileOpen
the "open" menu item.protected SpreadSheetViewerAction
m_ActionFileSave
the "save" menu item.protected SpreadSheetViewerAction
m_ActionFileSaveAs
the "save as" menu item.protected SpreadSheetViewerAction
m_ActionHelpFormulas
the "formulas" help menu item.protected List<SpreadSheetViewerAction>
m_Actions
menu items.protected SpreadSheetViewerAction
m_ActionViewApplyToAll
the "apply to all" menu item.protected SpreadSheetViewerAction
m_ActionViewCellRenderingCustomizer
the "rendering" menu item.protected SpreadSheetViewerAction
m_ActionViewDisplayedDecimals
the "displayed decimals" menu item.protected SpreadSheetViewerAction
m_ActionViewOptimalColumnWidth
the "optimal column widths" menu item.protected SpreadSheetViewerAction
m_ActionViewSetColumnWidth
the "set column widths" menu item.protected SpreadSheetViewerAction
m_ActionViewShowCellTypes
the "show cell types" menu item.protected SpreadSheetViewerAction
m_ActionViewShowFormulas
the "show formulas" menu item.protected boolean
m_ApplyToAll
whether to apply settings to all tabs or just current one.protected List<AbstractDataPlugin>
m_DataPlugins
the data plugins.protected SpreadSheetFileChooser
m_FileChooser
the filedialog for loading CSV files.protected JMenuBar
m_MenuBar
the menu bar, if used.protected JMenu
m_MenuFileOpenRecent
the "load recent" submenu.protected List<JMenuItem>
m_MenuItemDataPlugins
the data plugin menu items.protected SpreadSheetViewerAction
m_MenuItemHelpQuery
the "query" help menu item.protected List<JMenuItem>
m_MenuItemViewPlugins
the view plugin menu items.protected MultiPagePane
m_MultiPagePane
the multi-page pane for displaying the spreadsheets.protected static Properties
m_Properties
the properties.protected static Properties
m_PropertiesMenu
the menu properties.protected RecentFilesHandlerWithCommandline<JMenu>
m_RecentFilesHandler
the recent files handler.protected BaseSplitPane
m_SplitPane
the split pane.protected ViewerTabManager
m_ViewerTabs
the viewer tabs.protected List<AbstractViewPlugin>
m_ViewPlugins
the view plugins.static String
SESSION_FILE
the file to store the recent files in.-
Fields inherited from class adams.gui.core.ToolBarPanel
m_ContentPanel, m_Location, m_ToolBar
-
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
-
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
-
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
-
Constructor Summary
Constructors Constructor Description SpreadSheetViewerPanel()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkForModified()
Returns whether we can proceed with the operation or not, depending on whether the user saved the sheet or discarded the changes.boolean
checkForModified(SpreadSheetPanel panel)
Returns whether we can proceed with the operation or not, depending on whether the user saved the sheet or discarded the changes.void
cleanUp()
Cleans up data structures, frees up memory.void
close()
Closes the dialog or frame.void
closeFile()
Closes the current active tab.void
enterNumDecimals(boolean applyAll)
Alows the user to enter the number of decimals to display.void
filterData(String oldTitle, Object input, Actor filter)
Filters the data with the transformer and adds the generated output as new tab.SpreadSheetPanel[]
getAllPanels()
Returns all the image panels.boolean
getApplyToAll()
Returns whether to apply settings to all tabs or just current one.SpreadSheetPanel
getCurrentPanel()
Returns the currently selected panel.JMenuBar
getMenuBar()
Creates a menu bar (singleton per panel object).MultiPagePane
getMultiPagePane()
Returns the spreadsheet tabbed pane.static Properties
getProperties()
Returns the properties that define the editor.static Properties
getPropertiesMenu()
Returns the properties that define the menu.Class[]
getSendToClasses()
Returns the classes that the supporter generates.Object
getSendToItem(Class[] cls)
Returns the object to send.ViewerTabManager
getViewerTabs()
Returns the viewer tabs.boolean
hasSendToItem(Class[] cls)
Checks whether something to send is available.protected void
initActions()
Initializes the actions.protected void
initGUI()
Initializes the widgets.protected void
initialize()
Initializes the members.protected void
initToolBar()
Sets up the toolbar, using the actions.void
load(SpreadSheetReader reader, File file)
Loads the specified file.void
load(File file)
Loads the specified file.SpreadSheetViewerPanel
newWindow()
Displays a new preview window/frame.void
open()
Opens one or more CSV files.protected void
process(AbstractDataPlugin plugin)
Processes the current spreadsheet with the specified plugin.void
save()
Saves the current sheet (uses SwingWorker).protected void
save(SpreadSheetWriter writer, File file, boolean recent)
Writes the file to disk (uses SwingWorker).void
saveAs()
Saves the current sheet under a new name (uses SwingWorker).void
selectRendering(boolean applyAll)
Allows the user to select a different cell rendering customizer.void
setApplyToAll(boolean value)
Sets whether to apply settings to all tabs or just current one.void
setColumnWidth(boolean applyAll)
Lets the user enter a column width and then sets the column widths for the page(s).void
setOptimalColumnWidth(boolean applyAll)
Sets the optimal column widths for the page(s).protected void
setVisibleAgain()
Used by the close() method to re-display the flow, in case the flow cannot or should not be closed after all.void
updateActions()
Updates the enabled state of the actions.void
updateMenu()
updates the enabled state of the menu items.protected void
view(AbstractViewPlugin plugin)
Displays a dialog with the panel created by the plugin.void
write(SpreadSheetWriter writer, File file)
Saves the specified file.-
Methods inherited from class adams.gui.core.ToolBarPanel
addSeparator, addToToolBar, addToToolBar, finishInit, getContentPanel, getToolBar, getToolBarComponentAtIndex, getToolBarComponentCount, getToolBarLocation, isFloatable, removeFromToolBar, setFloatable, setToolBarLocation
-
Methods inherited from class adams.gui.core.BasePanel
afterHide, afterShow, beforeHide, beforeShow, closeParent, getParentChild, getParentDialog, getParentFrame, getParentInternalFrame, getParentTitle, initFileChooser, main, printErrorMessage, printException, saveComponent, setEnabledCascade, setEnabledCascade, setParentTitle, setVisible
-
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
-
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, unregisterKeyboardAction, update
-
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
-
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
-
-
-
Field Detail
-
FILENAME
public static final String FILENAME
the name of the props file.- See Also:
- Constant Field Values
-
FILENAME_MENU
public static final String FILENAME_MENU
the name of the menu props file.- See Also:
- Constant Field Values
-
SESSION_FILE
public static final String SESSION_FILE
the file to store the recent files in.- See Also:
- Constant Field Values
-
m_Properties
protected static Properties m_Properties
the properties.
-
m_PropertiesMenu
protected static Properties m_PropertiesMenu
the menu properties.
-
m_SplitPane
protected BaseSplitPane m_SplitPane
the split pane.
-
m_MultiPagePane
protected MultiPagePane m_MultiPagePane
the multi-page pane for displaying the spreadsheets.
-
m_ViewerTabs
protected ViewerTabManager m_ViewerTabs
the viewer tabs.
-
m_MenuBar
protected JMenuBar m_MenuBar
the menu bar, if used.
-
m_ActionFileOpen
protected SpreadSheetViewerAction m_ActionFileOpen
the "open" menu item.
-
m_MenuFileOpenRecent
protected JMenu m_MenuFileOpenRecent
the "load recent" submenu.
-
m_ActionFileSave
protected SpreadSheetViewerAction m_ActionFileSave
the "save" menu item.
-
m_ActionFileSaveAs
protected SpreadSheetViewerAction m_ActionFileSaveAs
the "save as" menu item.
-
m_ActionFileClosePage
protected SpreadSheetViewerAction m_ActionFileClosePage
the "close" menu item.
-
m_ActionFileGarbageCollectionOnClose
protected SpreadSheetViewerAction m_ActionFileGarbageCollectionOnClose
the "use GC" menu item.
-
m_ActionFileExit
protected SpreadSheetViewerAction m_ActionFileExit
the "exit" menu item.
-
m_ActionEditClearClipboard
protected SpreadSheetViewerAction m_ActionEditClearClipboard
the "clear clipboard" menu item.
-
m_ActionEditPasteFromClipboard
protected SpreadSheetViewerAction m_ActionEditPasteFromClipboard
the "paste from clipboard" menu item.
-
m_ActionDataFilterColumns
protected SpreadSheetViewerAction m_ActionDataFilterColumns
the "filter columns" menu item.
-
m_ActionDataFilterRows
protected SpreadSheetViewerAction m_ActionDataFilterRows
the "filter rows" menu item.
-
m_ActionDataComputeDifference
protected SpreadSheetViewerAction m_ActionDataComputeDifference
the "compute difference" menu item.
-
m_ActionDataConvert
protected SpreadSheetViewerAction m_ActionDataConvert
the "Convert" menu item.
-
m_ActionDataTransform
protected SpreadSheetViewerAction m_ActionDataTransform
the "Transform" menu item.
-
m_ActionDataSort
protected SpreadSheetViewerAction m_ActionDataSort
the "Sort" menu item.
-
m_ActionDataChart
protected SpreadSheetViewerAction m_ActionDataChart
the "Chart" menu item.
-
m_ActionViewApplyToAll
protected SpreadSheetViewerAction m_ActionViewApplyToAll
the "apply to all" menu item.
-
m_ActionViewDisplayedDecimals
protected SpreadSheetViewerAction m_ActionViewDisplayedDecimals
the "displayed decimals" menu item.
-
m_ActionViewCellRenderingCustomizer
protected SpreadSheetViewerAction m_ActionViewCellRenderingCustomizer
the "rendering" menu item.
-
m_ActionViewOptimalColumnWidth
protected SpreadSheetViewerAction m_ActionViewOptimalColumnWidth
the "optimal column widths" menu item.
-
m_ActionViewSetColumnWidth
protected SpreadSheetViewerAction m_ActionViewSetColumnWidth
the "set column widths" menu item.
-
m_ActionViewShowFormulas
protected SpreadSheetViewerAction m_ActionViewShowFormulas
the "show formulas" menu item.
-
m_ActionViewShowCellTypes
protected SpreadSheetViewerAction m_ActionViewShowCellTypes
the "show cell types" menu item.
-
m_ActionHelpFormulas
protected SpreadSheetViewerAction m_ActionHelpFormulas
the "formulas" help menu item.
-
m_MenuItemHelpQuery
protected SpreadSheetViewerAction m_MenuItemHelpQuery
the "query" help menu item.
-
m_DataPlugins
protected List<AbstractDataPlugin> m_DataPlugins
the data plugins.
-
m_ViewPlugins
protected List<AbstractViewPlugin> m_ViewPlugins
the view plugins.
-
m_FileChooser
protected SpreadSheetFileChooser m_FileChooser
the filedialog for loading CSV files.
-
m_RecentFilesHandler
protected RecentFilesHandlerWithCommandline<JMenu> m_RecentFilesHandler
the recent files handler.
-
m_ApplyToAll
protected boolean m_ApplyToAll
whether to apply settings to all tabs or just current one.
-
m_Actions
protected List<SpreadSheetViewerAction> m_Actions
menu items.
-
-
Method Detail
-
initialize
protected void initialize()
Initializes the members.- Overrides:
initialize
in classToolBarPanel
-
initGUI
protected void initGUI()
Initializes the widgets.- Overrides:
initGUI
in classToolBarPanel
-
initActions
protected void initActions()
Initializes the actions.- Specified by:
initActions
in classToolBarPanel
- See Also:
AbstractBaseAction
-
initToolBar
protected void initToolBar()
Sets up the toolbar, using the actions.- Specified by:
initToolBar
in classToolBarPanel
- See Also:
initActions()
-
getMenuBar
public JMenuBar getMenuBar()
Creates a menu bar (singleton per panel object). Can be used in frames.- Specified by:
getMenuBar
in interfaceMenuBarProvider
- Returns:
- the menu bar
-
getMultiPagePane
public MultiPagePane getMultiPagePane()
Returns the spreadsheet tabbed pane.- Returns:
- the tabbed pane
-
getViewerTabs
public ViewerTabManager getViewerTabs()
Returns the viewer tabs.- Returns:
- the tabs
-
enterNumDecimals
public void enterNumDecimals(boolean applyAll)
Alows the user to enter the number of decimals to display.- Parameters:
applyAll
- whether to apply the setting to all open tabs
-
selectRendering
public void selectRendering(boolean applyAll)
Allows the user to select a different cell rendering customizer.- Parameters:
applyAll
- whether to apply background to all open tabs
-
setOptimalColumnWidth
public void setOptimalColumnWidth(boolean applyAll)
Sets the optimal column widths for the page(s).- Parameters:
applyAll
- whether to apply to all or just current page
-
setColumnWidth
public void setColumnWidth(boolean applyAll)
Lets the user enter a column width and then sets the column widths for the page(s).- Parameters:
applyAll
- whether to apply to all or just current page
-
updateActions
public void updateActions()
Updates the enabled state of the actions.- Specified by:
updateActions
in classToolBarPanel
-
updateMenu
public void updateMenu()
updates the enabled state of the menu items.
-
checkForModified
public boolean checkForModified()
Returns whether we can proceed with the operation or not, depending on whether the user saved the sheet or discarded the changes.- Returns:
- true if safe to proceed
-
checkForModified
public boolean checkForModified(SpreadSheetPanel panel)
Returns whether we can proceed with the operation or not, depending on whether the user saved the sheet or discarded the changes.- Parameters:
panel
- the panel to check- Returns:
- true if safe to proceed
-
open
public void open()
Opens one or more CSV files.
-
load
public void load(File file)
Loads the specified file.- Parameters:
file
- the file to load
-
load
public void load(SpreadSheetReader reader, File file)
Loads the specified file.- Parameters:
reader
- the reader to use for reading the filefile
- the file to load
-
write
public void write(SpreadSheetWriter writer, File file)
Saves the specified file.- Parameters:
writer
- the writer to use for saving the filefile
- the file to save
-
save
public void save()
Saves the current sheet (uses SwingWorker).- See Also:
save(SpreadSheetWriter, File, boolean)
-
saveAs
public void saveAs()
Saves the current sheet under a new name (uses SwingWorker).- See Also:
save(SpreadSheetWriter, File, boolean)
-
save
protected void save(SpreadSheetWriter writer, File file, boolean recent)
Writes the file to disk (uses SwingWorker).- Parameters:
writer
- the writer to use for writing the spreadsheetfile
- the file to write torecent
- whether to add the file to the recent files list
-
closeFile
public void closeFile()
Closes the current active tab.
-
close
public void close()
Closes the dialog or frame.
-
getAllPanels
public SpreadSheetPanel[] getAllPanels()
Returns all the image panels.- Returns:
- the image panels
-
getCurrentPanel
public SpreadSheetPanel getCurrentPanel()
Returns the currently selected panel.- Returns:
- the current panel, null if not available
-
getSendToClasses
public Class[] getSendToClasses()
Returns the classes that the supporter generates.- Specified by:
getSendToClasses
in interfaceSendToActionSupporter
- Returns:
- the classes
-
hasSendToItem
public boolean hasSendToItem(Class[] cls)
Checks whether something to send is available.- Specified by:
hasSendToItem
in interfaceSendToActionSupporter
- Parameters:
cls
- the classes to retrieve the item for- Returns:
- true if an object is available for sending
-
getSendToItem
public Object getSendToItem(Class[] cls)
Returns the object to send.- Specified by:
getSendToItem
in interfaceSendToActionSupporter
- Parameters:
cls
- the classes to retrieve the item for- Returns:
- the item to send
-
filterData
public void filterData(String oldTitle, Object input, Actor filter)
Filters the data with the transformer and adds the generated output as new tab.- Parameters:
oldTitle
- the title from the old tabinput
- the spreadsheet to processfilter
- the transformer
-
process
protected void process(AbstractDataPlugin plugin)
Processes the current spreadsheet with the specified plugin.- Parameters:
plugin
- the plugin to use
-
view
protected void view(AbstractViewPlugin plugin)
Displays a dialog with the panel created by the plugin.- Parameters:
plugin
- for generating the view
-
setVisibleAgain
protected void setVisibleAgain()
Used by the close() method to re-display the flow, in case the flow cannot or should not be closed after all.- See Also:
close()
-
cleanUp
public void cleanUp()
Cleans up data structures, frees up memory.- Specified by:
cleanUp
in interfaceCleanUpHandler
-
setApplyToAll
public void setApplyToAll(boolean value)
Sets whether to apply settings to all tabs or just current one.- Parameters:
value
- true if to apply to all
-
getApplyToAll
public boolean getApplyToAll()
Returns whether to apply settings to all tabs or just current one.- Returns:
- true if to apply to all
-
newWindow
public SpreadSheetViewerPanel newWindow()
Displays a new preview window/frame.- Returns:
- the new panel
-
getProperties
public static Properties getProperties()
Returns the properties that define the editor.- Returns:
- the properties
-
getPropertiesMenu
public static Properties getPropertiesMenu()
Returns the properties that define the menu.- Returns:
- the properties
-
-