Class AbstractViewerTab

    • Constructor Detail

      • AbstractViewerTab

        public AbstractViewerTab()
    • Method Detail

      • setOwner

        public void setOwner​(ViewerTabManager value)
        Sets the tab manager this tab belongs to.
        Parameters:
        value - the owner
      • getOwner

        public ViewerTabManager getOwner()
        Returns the tab manager that this tab belongs to.
        Returns:
        the owner
      • getCurrentPanel

        public SpreadSheetPanel getCurrentPanel()
        Returns the current flow panel.
        Returns:
        the current panel, null if not available
      • getTitle

        public abstract String getTitle()
        Returns the title of the tab.
        Returns:
        the title
      • compareTo

        public int compareTo​(AbstractViewerTab 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.

        Simply uses the title for comparison.
        Specified by:
        compareTo in interface Comparable<AbstractViewerTab>
        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 o)
        Returns whether the two objects are the same.

        Only compares the title of the two objects.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to be compared
        Returns:
        true if the object is the same as this one
      • getTabs

        public static String[] getTabs()
        Returns a list with classnames of tabs.
        Returns:
        the tab classnames
      • forName

        public static AbstractViewerTab forName​(String classname)
        Instantiates the tab with the given options.
        Parameters:
        classname - the classname of the tab to instantiate
        Returns:
        the instantiated tab or null if an error occurred