Class MultiSpreadSheetDialog

    • Field Detail

      • m_MultiPagePane

        protected MultiPagePane m_MultiPagePane
        the tabbed pane for the spreadsheets.
      • m_CellPopupMenuCustomizer

        protected PopupMenuCustomizer m_CellPopupMenuCustomizer
        the customizer for the table cells popup menu.
      • m_CellRenderingCustomizer

        protected CellRenderingCustomizer m_CellRenderingCustomizer
        for customizing the cell rendering.
      • m_ShowFormulas

        protected boolean m_ShowFormulas
        whether to show formulas rather than the result.
      • m_NumDecimals

        protected int m_NumDecimals
        the number of decimals to display.
      • m_ShowSearch

        protected boolean m_ShowSearch
        whether to show the search box.
      • m_ShowColumnComboBox

        protected boolean m_ShowColumnComboBox
        whether to show the combobox with column names.
    • Constructor Detail

      • MultiSpreadSheetDialog

        public MultiSpreadSheetDialog​(Dialog owner)
        Creates a modeless dialog without a title with the specified Dialog as its owner.
        Parameters:
        owner - the owning dialog
      • MultiSpreadSheetDialog

        public MultiSpreadSheetDialog​(Dialog owner,
                                      Dialog.ModalityType modality)
        Creates a dialog with the specified owner Dialog and modality.
        Parameters:
        owner - the owning dialog
        modality - the type of modality
      • MultiSpreadSheetDialog

        public MultiSpreadSheetDialog​(Dialog owner,
                                      String title)
        Creates a modeless dialog with the specified title and with the specified owner dialog.
        Parameters:
        owner - the owning dialog
        title - the title of the dialog
      • MultiSpreadSheetDialog

        public MultiSpreadSheetDialog​(Dialog owner,
                                      String title,
                                      Dialog.ModalityType modality)
        Creates a dialog with the specified title, modality and the specified owner Dialog.
        Parameters:
        owner - the owning dialog
        title - the title of the dialog
        modality - the type of modality
      • MultiSpreadSheetDialog

        public MultiSpreadSheetDialog​(Frame owner)
        Creates a modeless dialog without a title with the specified Frame as its owner.
        Parameters:
        owner - the owning frame
      • MultiSpreadSheetDialog

        public MultiSpreadSheetDialog​(Frame owner,
                                      boolean modal)
        Creates a dialog with the specified owner Frame, modality and an empty title.
        Parameters:
        owner - the owning frame
        modal - whether the dialog is modal or not
      • MultiSpreadSheetDialog

        public MultiSpreadSheetDialog​(Frame owner,
                                      String title)
        Creates a modeless dialog with the specified title and with the specified owner frame.
        Parameters:
        owner - the owning frame
        title - the title of the dialog
      • MultiSpreadSheetDialog

        public MultiSpreadSheetDialog​(Frame owner,
                                      String title,
                                      boolean modal)
        Creates a dialog with the specified owner Frame, modality and title.
        Parameters:
        owner - the owning frame
        title - the title of the dialog
        modal - whether the dialog is modal or not
    • Method Detail

      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class ApprovalDialog
      • setUISettingsParameters

        public void setUISettingsParameters​(Class cls,
                                            String property)
        Sets the parameters for storing the divider location.
        Specified by:
        setUISettingsParameters in interface UISettingsSupporter
        Parameters:
        cls - the class
        property - the property
      • getPanelCount

        public int getPanelCount()
        Returns the number of spreadsheets currently display.
        Returns:
        the number of spreadsheets
      • getPanelAt

        public SpreadSheetPanel getPanelAt​(int index)
        Returns the spreadsheet panel at the specified location.
        Parameters:
        index - the tab index (0-based)
        Returns:
        the panel
      • getSelectedPanel

        public SpreadSheetPanel getSelectedPanel()
        Returns the selected spreadsheet panel.
        Returns:
        the panel, null if none selected
      • addSpreadSheet

        public void addSpreadSheet​(SpreadSheet value)
        Adds the spreadsheet as tab.
        Parameters:
        value - the sheet to add
      • setSpreadSheets

        public void setSpreadSheets​(SpreadSheet[] value)
        Sets the spreadsheets to display.
        Parameters:
        value - the spreadsheets to display
      • getSpreadSheets

        public SpreadSheet[] getSpreadSheets()
        Returns the spreadsheets currently displayed.
        Returns:
        the spreadsheets on display
      • setPopupMenuCustomizer

        public void setPopupMenuCustomizer​(PopupMenuCustomizer value)
        Sets the popup menu customizer to use.
        Parameters:
        value - the customizer, null to remove it
      • getPopupMenuCustomizer

        public PopupMenuCustomizer getPopupMenuCustomizer()
        Returns the current popup menu customizer.
        Returns:
        the customizer, null if none set
      • setCellRenderingCustomizer

        public void setCellRenderingCustomizer​(CellRenderingCustomizer value)
        Sets the renderer.
        Parameters:
        value - the renderer
      • getCellRenderingCustomizer

        public CellRenderingCustomizer getCellRenderingCustomizer()
        Returns the renderer.
        Returns:
        the renderer
      • setShowFormulas

        public void setShowFormulas​(boolean value)
        Sets whether to display the formulas or their calculated values.
        Parameters:
        value - true if to display the formulas rather than the calculated values
      • getShowFormulas

        public boolean getShowFormulas()
        Returns whether to display the formulas or their calculated values.
        Returns:
        true if to display the formulas rather than the calculated values
      • setNumDecimals

        public void setNumDecimals​(int value)
        Sets the number of decimals to display. Use -1 to display all.
        Parameters:
        value - the number of decimals
      • getNumDecimals

        public int getNumDecimals()
        Returns the currently set number of decimals. -1 if displaying all.
        Returns:
        the number of decimals
      • setShowSearch

        public void setShowSearch​(boolean value)
        Sets whether the search is visible.
        Parameters:
        value - true if to show search
      • getShowSearch

        public boolean getShowSearch()
        Returns whether the search is visible.
        Returns:
        true if search is shown
      • setShowColumnComboBox

        public void setShowColumnComboBox​(boolean value)
        Sets whether the column combobox is visible.
        Parameters:
        value - true if to show column combobox
      • getShowColumnComboBox

        public boolean getShowColumnComboBox()
        Returns whether the column combobox is visible.
        Returns:
        true if column combobox is shown