Class TabPane

    • Constructor Detail

      • TabPane

        public TabPane()
    • Method Detail

      • setCorner

        public void setCorner​(Component corner)
      • getSelectedIndex

        public int getSelectedIndex()
      • setSelectedIndex

        public void setSelectedIndex​(int selectedIndex)
      • getSelectedTab

        public Component getSelectedTab()
      • setSelectedTab

        public void setSelectedTab​(Component comp)
      • isCloseable

        public boolean isCloseable()
      • setCloseable

        public void setCloseable​(boolean closeable)
      • isCollapsed

        public boolean isCollapsed()
        Returns:
        true if the TabPane is collapsible and no tab is selected; false, otherwise.
        See Also:
        isCollapsible(), getSelectedIndex()
      • setCollapsed

        public void setCollapsed​(boolean collapsed)
        Collapse or expand the TabPane (if it is collapsible).
        Parameters:
        collapsed - true to collapse, false to expand and select the first tab. Use setSelectedIndex(int) to expand and select a specific Tab.
        See Also:
        isCollapsible(), setSelectedIndex(int)
      • isCollapsible

        public boolean isCollapsible()
      • setCollapsible

        public void setCollapsible​(boolean collapsible)
      • isTabVisible

        public boolean isTabVisible​(int index)
      • setTabVisible

        public void setTabVisible​(int index,
                                  boolean value)
      • remove

        public Sequence<Component> remove​(int index,
                                          int count)
        Description copied from interface: Sequence
        Removes one or more items from the sequence.
        Specified by:
        remove in interface Sequence<Component>
        Overrides:
        remove in class Container
        Parameters:
        index - The starting index to remove.
        count - The number of items to remove, beginning with index.
        Returns:
        A sequence containing the items that were removed.
      • getTabData

        public static java.lang.Object getTabData​(Component component)
      • setTabData

        public static void setTabData​(Component component,
                                      java.lang.Object tabData)
      • getTooltipText

        public static java.lang.String getTooltipText​(Component component)
      • setTooltipText

        public static void setTooltipText​(Component component,
                                          java.lang.String tooltipText)