Class SpreadSheetDialog

    • Field Detail

      • m_Panel

        protected SpreadSheetPanel m_Panel
        the table for displaying the spreadsheet.
    • Constructor Detail

      • SpreadSheetDialog

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

        public SpreadSheetDialog​(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
      • SpreadSheetDialog

        public SpreadSheetDialog​(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
      • SpreadSheetDialog

        public SpreadSheetDialog​(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
      • SpreadSheetDialog

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

        public SpreadSheetDialog​(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
      • SpreadSheetDialog

        public SpreadSheetDialog​(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
      • SpreadSheetDialog

        public SpreadSheetDialog​(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
      • setSpreadSheet

        public void setSpreadSheet​(SpreadSheet value)
        Sets the spreadsheet to display.
        Parameters:
        value - the spreadsheet to display
      • getSpreadSheet

        public SpreadSheet getSpreadSheet()
        Returns the spreadsheet currently displayed.
        Returns:
        the spreadsheet 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
      • sort

        public void sort​(RowComparator comparator)
        Sorts the spreadsheet with the given comparator.
        Parameters:
        comparator - the row comparator to use
      • 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
      • getTable

        public SpreadSheetTable getTable()
        Returns the underlying table.
        Returns:
        the table