Class SpreadSheetExplorer

    • Field Detail

      • m_Properties

        protected static Properties m_Properties
        the properties.
      • m_StatusBar

        protected BaseStatusBar m_StatusBar
        the status bar.
      • m_MenuBar

        protected JMenuBar m_MenuBar
        the menu bar, if used.
      • m_MenuItemLoadRecent

        protected JMenu m_MenuItemLoadRecent
        the "load recent" submenu.
      • m_MenuView

        protected JMenu m_MenuView
        the menu item for view related stuff.
      • m_MenuItemViewZoomOverview

        protected JMenuItem m_MenuItemViewZoomOverview
        the toggle zoom overview menu item.
      • m_MenuItemViewAntiAliasing

        protected JMenuItem m_MenuItemViewAntiAliasing
        the toggle anti-aliasing menu item.
      • m_MenuItemViewColorProvider

        protected JMenuItem m_MenuItemViewColorProvider
        the color provider menu item.
      • m_MenuItemViewPaintlet

        protected JMenuItem m_MenuItemViewPaintlet
        the paintlet menu item.
      • m_MenuItemClearData

        protected JMenuItem m_MenuItemClearData
        the clear data menu item.
      • m_TabbedPane

        protected BaseTabbedPane m_TabbedPane
        the tabbed pane for the data to display.
      • m_SearchPanel

        protected SearchPanel m_SearchPanel
        for searching the fields in the reports.
      • m_LoadFromDiskDialog

        protected LoadSpreadSheetDialog m_LoadFromDiskDialog
        the dialog for loading datasets.
      • m_DialogColorProvider

        protected GenericObjectEditorDialog m_DialogColorProvider
        the dialog for selecting the color provider.
    • Constructor Detail

      • SpreadSheetExplorer

        public SpreadSheetExplorer()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        initGUI in class BasePanel
      • getSpreadSheetRowPanel

        public SpreadSheetRowPanel getSpreadSheetRowPanel()
        Returns the panel for painting the rows.
        the panel
      • getSpreadSheetRowContainerList

        public SpreadSheetRowContainerList getSpreadSheetRowContainerList()
        Returns the panel listing the rows.
        the panel
      • dataChanged

        public void dataChanged​(DataChangeEvent e)
        Gets called if the data of the instance panel has changed.
        Specified by:
        dataChanged in interface DataChangeListener
        e - the event that the instance panel sent
      • updateMenu

        protected void updateMenu()
        updates the enabled state of the menu items.
      • getMenuBar

        public JMenuBar getMenuBar()
        Creates a menu bar (singleton per panel object). Can be used in frames.
        Specified by:
        getMenuBar in interface MenuBarProvider
        the menu bar
      • clearData

        public void clearData()
        Removes all the data.
      • loadData

        public void loadData()
        pops up file dialog for loading dataset from disk.
      • loadData

        public void loadData​(File file)
        pops up file dialog for loading dataset from disk.
        file - an optional file, use null to ignore
      • loadData

        protected void loadData​(SpreadSheet sheet,
                                List<SpreadSheetRowContainer> data)
        Loads the given data into the container manager.
        sheet - the dataset
        data - the data to add to the manager
      • close

        public void close()
        closes the dialog/frame.
      • setSidePanelVisible

        public void setSidePanelVisible​(boolean visible)
        Whether to display the side panel or not.
        visible - if true, then the side panel will be displayed
      • isSidePanelVisible

        public boolean isSidePanelVisible()
        Returns whether the side panel is visible or not.
        true if the side panel is visible
      • getSidePanel

        public JPanel getSidePanel()
        Returns the side panel.
        the side panel
      • setZoomOverviewPanelVisible

        public void setZoomOverviewPanelVisible​(boolean value)
        Sets the zoom overview panel visible or not.
        value - if true then the panel is visible
      • isZoomOverviewPanelVisible

        public boolean isZoomOverviewPanelVisible()
        Returns whether the zoom overview panel is visible or not.
        true if visible
      • selectColorProvider

        protected void selectColorProvider()
        Lets the user select a new color provider.
      • selectPaintlet

        protected void selectPaintlet()
        Lets the user select a new paintlet.
      • hasSendToItem

        public boolean hasSendToItem​(Class[] cls)
        Checks whether something to send is available.
        Specified by:
        hasSendToItem in interface SendToActionSupporter
        cls - the classes to retrieve an item for
        true if an object is available for sending
      • getSendToItem

        public Object getSendToItem​(Class[] cls)
        Returns the object to send.
        Specified by:
        getSendToItem in interface SendToActionSupporter
        cls - the classes to retrieve the item for
        the item to send
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.
        Specified by:
        cleanUp in interface CleanUpHandler
      • getProperties

        public static Properties getProperties()
        Returns the properties that define the editor.
        the properties