Class PamTabPaneSkin

java.lang.Object
javafx.scene.control.SkinBase<javafx.scene.control.TabPane>
javafx.scene.control.skin.TabPaneSkin
pamViewFX.fxNodes.PamTabPaneSkin
All Implemented Interfaces:
javafx.scene.control.Skin<javafx.scene.control.TabPane>

public class PamTabPaneSkin extends javafx.scene.control.skin.TabPaneSkin
The PamTabPane skin adds a few extra features to the standard TabPane:

1) The ability to have a button which adds new tabs.

2) Regions (e.g. buttons, labels etc.) Can be added directly into the tab pane. The regions sit at the start (left/top) and end (right/bottom) of the header pane, which sits at the top of the tab pane.

Author:
Jamie Macaulay
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    double
    How many pixels the tab button 'floats' in the header area.
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    addTabEndRegion(javafx.scene.layout.Region tabRegion)
     
    void
    addTabStartRegion(javafx.scene.layout.Region tabRegion)
     
    Get the button which allows users to add tab to tab pane
    double
    Get the height of the header.
    javafx.beans.property.ReadOnlyDoubleProperty
    Get the height property of the header.
    void
    removeTabEndRegion(javafx.scene.layout.Region tabRegion)
     
    void
    removeTabStartRegion(javafx.scene.layout.Region tabRegion)
     
    void
    setAddTabButton(boolean addTabButton2)
     

    Methods inherited from class javafx.scene.control.skin.TabPaneSkin Link icon

    computeBaselineOffset, dispose, getClassCssMetaData, getCssMetaData, queryAccessibleAttribute

    Methods inherited from class javafx.scene.control.SkinBase Link icon

    getChildren, getNode, getSkinnable, pseudoClassStateChanged

    Methods inherited from class java.lang.Object Link icon

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface javafx.scene.control.Skin Link icon

    install
  • Field Details Link icon

    • addButtonInsets Link icon

      public double addButtonInsets
      How many pixels the tab button 'floats' in the header area.
  • Constructor Details Link icon

    • PamTabPaneSkin Link icon

      public PamTabPaneSkin(PamTabPane tabPane)
  • Method Details Link icon

    • removeTabStartRegion Link icon

      public void removeTabStartRegion(javafx.scene.layout.Region tabRegion)
    • removeTabEndRegion Link icon

      public void removeTabEndRegion(javafx.scene.layout.Region tabRegion)
    • addTabStartRegion Link icon

      public void addTabStartRegion(javafx.scene.layout.Region tabRegion)
    • addTabEndRegion Link icon

      public void addTabEndRegion(javafx.scene.layout.Region tabRegion)
    • getAddTabButton Link icon

      public PamButton getAddTabButton()
      Get the button which allows users to add tab to tab pane
      Returns:
      the button which sits in tab pane and allows users to add a new tab.
    • getHeaderHeight Link icon

      public double getHeaderHeight()
      Get the height of the header.
      Returns:
      the header height
    • getHeaderHeightProperty Link icon

      public javafx.beans.property.ReadOnlyDoubleProperty getHeaderHeightProperty()
      Get the height property of the header.
      Returns:
      the height property of the header.
    • setAddTabButton Link icon

      public void setAddTabButton(boolean addTabButton2)