Class TabbedHidingPane

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, ColorManaged
Direct Known Subclasses:
CompoundHidingTabPane

public class TabbedHidingPane extends PamPanel
This is similar to a tabbed pane but instead of tabs overlapping each other as in a JTabbedPane they expand and contract. You can view all tabs together or just one with all others collapsed.
Author:
Jamie Macaulay
See Also:
  • Constructor Details

    • TabbedHidingPane

      public TabbedHidingPane()
  • Method Details

    • createPanel

      public void createPanel(ArrayList<TabbedHidingPane.TabHidingPanel> tabs)
    • addTab

      public void addTab(String title, Icon icon, Component component, boolean canScroll)
    • addTab

      public void addTab(String title, Icon icon, Component component, boolean canScroll, int type)
    • getTabPanel

      public TabbedHidingPane.TabHidingPanel getTabPanel(int index)
      Get the whole tab panel
      Parameters:
      index -
      Returns:
    • createShowingTab

      public PamPanel createShowingTab(String tabTitle, Icon tabIcon)
      Create the showing tab for a panel. Override this to create custom tabs.
      Parameters:
      title - - title to show in tab.
      icon - - icon for ta. Can be null.
      Returns:
      -Panel which acts as tab for hiding tab panel when panel is showing.
    • createHidingTab

      public PamPanel createHidingTab(String tabTitle, Icon tabIcon)
      Create the hiding tab for a panel. Override this to create custom tabs.
      Parameters:
      title - - title to show in tab. Try to make very small fro hiding tab
      icon - - icon for ta. Can be null.
      Returns:
      -Panel which acts as tab for hiding tab panel when panle is hidden.
    • mouseOverPanel

      public static boolean mouseOverPanel(Component component)
      Check whether the mouse is inside a component.
      Returns:
      true if mouse is inside component.
    • addTabChangeListener

      public void addTabChangeListener(ChangeListener tabListener)
    • getSelectedIndex

      public int getSelectedIndex()
    • getTabBackground

      public Color getTabBackground()
    • getTabHighlight

      public Color getTabHighlight()
    • getTabTextColour

      public Color getTabTextColour()
    • getBorderColour

      public Color getBorderColour()
    • setTabBackground

      public void setTabBackground(Color background)
    • setTabHighlight

      public void setTabHighlight(Color highlight)
    • setTabTextColour

      public void setTabTextColour(Color textColour)
    • setPanelBorderColour

      public void setPanelBorderColour(Color borderColour)