Interface ObjectContentHandler

    • Method Detail

      • canHandle

        boolean canHandle​(Object obj)
        Checks whether the object is handled by this content handler.
        Parameters:
        obj - the object to check
        Returns:
        true if handled
      • canHandle

        boolean canHandle​(Class cls)
        Checks whether the class is handled by this content handler.
        Parameters:
        cls - the class to check
        Returns:
        true if handled
      • reusePreview

        PreviewPanel reusePreview​(Object obj,
                                  PreviewPanel lastPreview)
        Reuses the last preview, if possible.
        Parameters:
        obj - the object to create the view for
        Returns:
        the preview
      • createPreview

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

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