Class AbstractEditorTab

    • Field Detail

    • Constructor Detail

      • AbstractEditorTab

        public AbstractEditorTab()
    • Method Detail

      • setOwner

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

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

        public FlowPanel 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
      • enabledByDefault

        public boolean enabledByDefault()
        Returns whether the tab is enabled by default.
        Returns:
        true if enabled by default
      • compareTo

        public int compareTo​(AbstractEditorTab 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<AbstractEditorTab>
        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 Class[] getTabs()
        Returns a list with classes of tabs.
        Returns:
        the tab classes