Class AbstractSelectedSheetsViewPlugin

    • Field Detail

      • m_SelectedPanels

        protected SpreadSheetPanel[] m_SelectedPanels
        for panels to work on.
    • Constructor Detail

      • AbstractSelectedSheetsViewPlugin

        public AbstractSelectedSheetsViewPlugin()
    • Method Detail

      • getAllPanels

        protected SpreadSheetPanel[] getAllPanels()
        Returns all the available panels in the image viewer.
        Returns:
        the available panels
      • createListPanel

        protected JPanel createListPanel​(ApprovalDialog dialog)
        Creates the panel containing the list of all images. Also updates the m_SelectedPanels property.
        Parameters:
        dialog - the dialog that is being created
        Returns:
        the generated panel
      • createConfigurationPanel

        protected abstract JPanel createConfigurationPanel​(ApprovalDialog dialog)
        Creates the panel with the configuration (return null to suppress display).
        Parameters:
        dialog - the dialog that is being created
        Returns:
        the generated panel, null to suppress
      • getDialogSize

        protected Dimension getDialogSize()
        Returns the size of the dialog.
        Returns:
        the size
      • hasApprovalButton

        protected boolean hasApprovalButton()
        Returns whether the dialog has an approval button.
        Returns:
        true if approval button visible
      • hasCancelButton

        protected boolean hasCancelButton()
        Returns whether the dialog has a cancel button.
        Returns:
        true if cancel button visible
      • createDialog

        protected ApprovalDialog createDialog()
        Creates the dialog to display.
        Returns:
        the dialog
      • process

        protected abstract BasePanel process()
        Processes all the selected panels.
        Returns:
        spreadsheet if successful, otherwise null
      • doGenerate

        protected BasePanel doGenerate​(SpreadSheet sheet)
        Performs the actual generation of the information.
        Specified by:
        doGenerate in class AbstractViewPlugin
        Parameters:
        sheet - the sheet to process
        Returns:
        the generated information panel