Class TabPane

All Implemented Interfaces:
ICaptionedPanel, ImageObserver, MenuContainer, Serializable, Accessible

public class TabPane extends JPanel implements ICaptionedPanel
See Also:
  • Field Details

    • HEADER_MARGIN

      private static final int HEADER_MARGIN
      See Also:
    • TAB_PANE

      static final String TAB_PANE
      See Also:
    • MINIMIZABLE

      public static final int MINIMIZABLE
      DisplayOption. Are tabs in this pane minimizable? They can be only if this tab pane belongs to a collapsible panel such as CollapsibleSplitPane
      See Also:
    • MAXIMIZABLE

      public static final int MAXIMIZABLE
      DisplayOption. Are tabs in this pane maximizable? They can be only if this tab pane belongs to a collapsible panel such as CollapsibleSplitPane
      See Also:
    • RESTORABLE

      public static final int RESTORABLE
      DisplayOption. Are tabs in this pane restorable? They can be only if this tab pane belongs to a collapsible panel such as CollapsibleSplitPane
      See Also:
    • MIN_MAX_REST

      public static final int MIN_MAX_REST
      DisplayOption.
      See Also:
    • DYNAMIC

      public static final int DYNAMIC
      DisplayOption. Are tabs in this pane dynamic? In other words will this tab pane create an arbitrary number of tabs and should those tabs be closable? If so, displays a close button for the tabs.
      See Also:
    • TOP_BORDER_ONLY

      public static final int TOP_BORDER_ONLY
      DisplayOption. If set, only draws a border around the top of the tab pane; the part around the tab container.
      See Also:
    • _tabContainer

      private TabContainer _tabContainer
    • _toolContainer

      private ToolContainer _toolContainer
    • _tabAndToolContainer

      private TabAndToolContainer _tabAndToolContainer
    • _contentContainer

      private ContentContainer _contentContainer
    • _tabPosition

      private TabPosition _tabPosition
    • _bDynamic

      private boolean _bDynamic
    • _bTopBorderOnly

      private boolean _bTopBorderOnly
    • _bActive

      private boolean _bActive
    • _bMaximizable

      private boolean _bMaximizable
    • _bMinimizable

      private boolean _bMinimizable
    • _bRestorable

      private boolean _bRestorable
    • _focusChangeListener

      private TabPane.FocusChangeListener _focusChangeListener
  • Constructor Details

    • TabPane

      public TabPane()
    • TabPane

      public TabPane(int iDisplayOptions)
    • TabPane

      public TabPane(TabPosition tabPosition, int iDisplayOptions)
  • Method Details

    • getCaption

      public ICaptionBar getCaption()
      Specified by:
      getCaption in interface ICaptionedPanel
    • addTab

      public void addTab(ILabel tabLabel, JComponent contentPane)
    • addTabWithoutSelecting

      public void addTabWithoutSelecting(ILabel tabLabel, JComponent contentPane)
    • addTab

      public ITab addTab(String strText, Icon icon, JComponent contentPane)
    • insertTab

      public ITab insertTab(ILabel tabLabel, JComponent contentPane, int iIndex)
    • insertTab

      public ITab insertTab(String strText, Icon icon, JComponent contentPane, int iIndex)
    • removeTabWithContent

      public void removeTabWithContent(JComponent contentPane)
    • removeTab

      public void removeTab(ITab tab)
    • removeAllTabs

      public void removeAllTabs()
    • selectTabWithContent

      public void selectTabWithContent(JComponent contentPane, boolean bFocus)
    • selectTab

      public void selectTab(ITab tab, boolean bFocus)
    • selectTabWithLabel

      public void selectTabWithLabel(String label)
    • getTabAt

      public ITab getTabAt(int iIndex)
    • getSelectedTab

      public ITab getSelectedTab()
    • getSelectedTabIndex

      public int getSelectedTabIndex()
    • getTabCount

      public int getTabCount()
    • getTabs

      public ITab[] getTabs()
    • findTabWithContent

      public ITab findTabWithContent(JComponent contentPane)
    • findTabWithLabel

      public ITab findTabWithLabel(String label)
    • addSelectionListener

      public void addSelectionListener(ChangeListener l)
    • removeSelectionListener

      public void removeSelectionListener(ChangeListener l)
    • isDynamic

      public boolean isDynamic()
    • isTopBorderOnly

      public boolean isTopBorderOnly()
    • isActive

      public boolean isActive()
    • setActive

      public void setActive(boolean bActive)
    • isMaximizable

      public boolean isMaximizable()
    • isMinimizable

      public boolean isMinimizable()
    • isRestorable

      public boolean isRestorable()
    • hasAtLeastOneOfMinMaxRestore

      public boolean hasAtLeastOneOfMinMaxRestore()
    • getContextMenuHandler

      public IContextMenuHandler<JComponent> getContextMenuHandler()
    • setContextMenuHandler

      public void setContextMenuHandler(IContextMenuHandler<JComponent> handler)
    • getTabContainer

      public TabContainer getTabContainer()
    • getToolContainer

      public ToolContainer getToolContainer()
    • getTabAndToolContainer

      TabAndToolContainer getTabAndToolContainer()
    • configUi

      private void configUi()
    • setBorder

      private void setBorder()
    • addFocusOwnerListener

      private void addFocusOwnerListener()
    • removeFocusOwnerListener

      private void removeFocusOwnerListener()
    • localeChanged

      public void localeChanged()