Class AbstractSpreadSheetPreview.AbstractSpreadSheetPreviewPanel

    • Constructor Detail

      • AbstractSpreadSheetPreviewPanel

        public AbstractSpreadSheetPreviewPanel()
    • Method Detail

      • check

        protected String check​(SpreadSheet sheet,
                               int[] rows)
        Check method before generating the preview.
        Parameters:
        sheet - the sheet to preview
        rows - the rows to preview
        Returns:
        null if successfully checked, otherwise error message
      • doPreview

        protected abstract String doPreview​(SpreadSheet sheet,
                                            int[] rows)
        Previews the spreadsheet.
        Parameters:
        sheet - the sheet to preview
        rows - the rows to preview
        Returns:
        null if successfully previewed, otherwise error message
      • preview

        public String preview​(SpreadSheet sheet,
                              int[] rows)
        Previews the spreadsheet.
        Parameters:
        sheet - the sheet to preview
        rows - the rows to preview
        Returns:
        null if successfully previewed, otherwise error message