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 StringFILENAMEthe name of the props file.static StringFILENAME_MENUthe name of the menu props file.protected SpreadSheetViewerActionm_ActionDataChartthe "Chart" menu item.protected SpreadSheetViewerActionm_ActionDataComputeDifferencethe "compute difference" menu item.protected SpreadSheetViewerActionm_ActionDataConvertthe "Convert" menu item.protected SpreadSheetViewerActionm_ActionDataFilterColumnsthe "filter columns" menu item.protected SpreadSheetViewerActionm_ActionDataFilterRowsthe "filter rows" menu item.protected SpreadSheetViewerActionm_ActionDataSortthe "Sort" menu item.protected SpreadSheetViewerActionm_ActionDataTransformthe "Transform" menu item.protected SpreadSheetViewerActionm_ActionEditClearClipboardthe "clear clipboard" menu item.protected SpreadSheetViewerActionm_ActionEditPasteFromClipboardthe "paste from clipboard" menu item.protected SpreadSheetViewerActionm_ActionFileClosePagethe "close" menu item.protected SpreadSheetViewerActionm_ActionFileExitthe "exit" menu item.protected SpreadSheetViewerActionm_ActionFileGarbageCollectionOnClosethe "use GC" menu item.protected SpreadSheetViewerActionm_ActionFileOpenthe "open" menu item.protected SpreadSheetViewerActionm_ActionFileSavethe "save" menu item.protected SpreadSheetViewerActionm_ActionFileSaveAsthe "save as" menu item.protected SpreadSheetViewerActionm_ActionHelpFormulasthe "formulas" help menu item.protected List<SpreadSheetViewerAction>m_Actionsmenu items.protected SpreadSheetViewerActionm_ActionViewApplyToAllthe "apply to all" menu item.protected SpreadSheetViewerActionm_ActionViewCellRenderingCustomizerthe "rendering" menu item.protected SpreadSheetViewerActionm_ActionViewDisplayedDecimalsthe "displayed decimals" menu item.protected SpreadSheetViewerActionm_ActionViewOptimalColumnWidththe "optimal column widths" menu item.protected SpreadSheetViewerActionm_ActionViewSetColumnWidththe "set column widths" menu item.protected SpreadSheetViewerActionm_ActionViewShowCellTypesthe "show cell types" menu item.protected SpreadSheetViewerActionm_ActionViewShowFormulasthe "show formulas" menu item.protected booleanm_ApplyToAllwhether to apply settings to all tabs or just current one.protected List<AbstractDataPlugin>m_DataPluginsthe data plugins.protected SpreadSheetFileChooserm_FileChooserthe filedialog for loading CSV files.protected JMenuBarm_MenuBarthe menu bar, if used.protected JMenum_MenuFileOpenRecentthe "load recent" submenu.protected List<JMenuItem>m_MenuItemDataPluginsthe data plugin menu items.protected SpreadSheetViewerActionm_MenuItemHelpQuerythe "query" help menu item.protected List<JMenuItem>m_MenuItemViewPluginsthe view plugin menu items.protected MultiPagePanem_MultiPagePanethe multi-page pane for displaying the spreadsheets.protected static Propertiesm_Propertiesthe properties.protected static Propertiesm_PropertiesMenuthe menu properties.protected RecentFilesHandlerWithCommandline<JMenu>m_RecentFilesHandlerthe recent files handler.protected BaseSplitPanem_SplitPanethe split pane.protected ViewerTabManagerm_ViewerTabsthe viewer tabs.protected List<AbstractViewPlugin>m_ViewPluginsthe view plugins.static StringSESSION_FILEthe 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 booleancheckForModified()Returns whether we can proceed with the operation or not, depending on whether the user saved the sheet or discarded the changes.booleancheckForModified(SpreadSheetPanel panel)Returns whether we can proceed with the operation or not, depending on whether the user saved the sheet or discarded the changes.voidcleanUp()Cleans up data structures, frees up memory.voidclose()Closes the dialog or frame.voidcloseFile()Closes the current active tab.voidenterNumDecimals(boolean applyAll)Alows the user to enter the number of decimals to display.voidfilterData(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.booleangetApplyToAll()Returns whether to apply settings to all tabs or just current one.SpreadSheetPanelgetCurrentPanel()Returns the currently selected panel.JMenuBargetMenuBar()Creates a menu bar (singleton per panel object).MultiPagePanegetMultiPagePane()Returns the spreadsheet tabbed pane.static PropertiesgetProperties()Returns the properties that define the editor.static PropertiesgetPropertiesMenu()Returns the properties that define the menu.Class[]getSendToClasses()Returns the classes that the supporter generates.ObjectgetSendToItem(Class[] cls)Returns the object to send.ViewerTabManagergetViewerTabs()Returns the viewer tabs.booleanhasSendToItem(Class[] cls)Checks whether something to send is available.protected voidinitActions()Initializes the actions.protected voidinitGUI()Initializes the widgets.protected voidinitialize()Initializes the members.protected voidinitToolBar()Sets up the toolbar, using the actions.voidload(SpreadSheetReader reader, File file)Loads the specified file.voidload(File file)Loads the specified file.SpreadSheetViewerPanelnewWindow()Displays a new preview window/frame.voidopen()Opens one or more CSV files.protected voidprocess(AbstractDataPlugin plugin)Processes the current spreadsheet with the specified plugin.voidsave()Saves the current sheet (uses SwingWorker).protected voidsave(SpreadSheetWriter writer, File file, boolean recent)Writes the file to disk (uses SwingWorker).voidsaveAs()Saves the current sheet under a new name (uses SwingWorker).voidselectRendering(boolean applyAll)Allows the user to select a different cell rendering customizer.voidsetApplyToAll(boolean value)Sets whether to apply settings to all tabs or just current one.voidsetColumnWidth(boolean applyAll)Lets the user enter a column width and then sets the column widths for the page(s).voidsetOptimalColumnWidth(boolean applyAll)Sets the optimal column widths for the page(s).protected voidsetVisibleAgain()Used by the close() method to re-display the flow, in case the flow cannot or should not be closed after all.voidupdateActions()Updates the enabled state of the actions.voidupdateMenu()updates the enabled state of the menu items.protected voidview(AbstractViewPlugin plugin)Displays a dialog with the panel created by the plugin.voidwrite(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:
initializein classToolBarPanel
-
initGUI
protected void initGUI()
Initializes the widgets.- Overrides:
initGUIin classToolBarPanel
-
initActions
protected void initActions()
Initializes the actions.- Specified by:
initActionsin classToolBarPanel- See Also:
AbstractBaseAction
-
initToolBar
protected void initToolBar()
Sets up the toolbar, using the actions.- Specified by:
initToolBarin classToolBarPanel- See Also:
initActions()
-
getMenuBar
public JMenuBar getMenuBar()
Creates a menu bar (singleton per panel object). Can be used in frames.- Specified by:
getMenuBarin 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:
updateActionsin 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:
getSendToClassesin interfaceSendToActionSupporter- Returns:
- the classes
-
hasSendToItem
public boolean hasSendToItem(Class[] cls)
Checks whether something to send is available.- Specified by:
hasSendToItemin 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:
getSendToItemin 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:
cleanUpin 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
-
-