Class AbstractSerializedObjectViewer

    • Constructor Detail

      • AbstractSerializedObjectViewer

        public AbstractSerializedObjectViewer()
    • Method Detail

      • createPreview

        protected abstract PreviewPanel createPreview​(Object obj)
        Creates the actual preview.
        Parameters:
        obj - the object to create the preview for
        Returns:
        the preview, null if failed to generate preview
      • compareTo

        public int compareTo​(SerializedObjectViewer o)
        Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

        Only compares the commandlines of the two objects.
        Specified by:
        compareTo in interface Comparable<SerializedObjectViewer>
        Parameters:
        o - the object to be compared.
        Returns:
        a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
        Throws:
        ClassCastException - if the specified object's type prevents it from being compared to this object.
      • equals

        public boolean equals​(Object obj)
        Indicates whether some other object is "equal to" this one.

        Uses the commandline for comparison.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare with
        Returns:
        true if the same commandline
      • getViewers

        public static String[] getViewers()
        Returns a list with classnames of handlers.
        Returns:
        the handler classnames