Interface ContentHandler

    • Method Detail

      • getExtensions

        String[] getExtensions()
        Returns the list of extensions (without dot) that this handler can take care of.
        Returns:
        the list of extensions (no dot)
      • reusePreview

        PreviewPanel reusePreview​(File file,
                                  PreviewPanel lastPreview)
        Reuses the last preview, if possible.
        Default implementation just creates a new preview.
        Parameters:
        file - the file to create the view for
        Returns:
        the preview
      • createPreview

        PreviewPanel createPreview​(File file)
        Creates the actual preview.
        Parameters:
        file - the file to create the view for
        Returns:
        the preview
      • getPreview

        PreviewPanel getPreview​(File file)
        Returns the preview for the specified file.
        Parameters:
        file - the file to create the view for
        Returns:
        the preview, NoPreviewAvailablePanel in case of an error
        See Also:
        NoPreviewAvailablePanel