Package pamViewFX.fxNodes
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
Modifier and TypeFieldDescriptiondouble
How many pixels the tab button 'floats' in the header area. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addTabEndRegion
(javafx.scene.layout.Region tabRegion) void
addTabStartRegion
(javafx.scene.layout.Region tabRegion) Get the button which allows users to add tab to tab panedouble
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
computeBaselineOffset, dispose, getClassCssMetaData, getCssMetaData, queryAccessibleAttribute
Methods inherited from class javafx.scene.control.SkinBase
getChildren, getNode, getSkinnable, pseudoClassStateChanged
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javafx.scene.control.Skin
install
-
Field Details
-
addButtonInsets
public double addButtonInsetsHow many pixels the tab button 'floats' in the header area.
-
-
Constructor Details
-
PamTabPaneSkin
-
-
Method Details
-
removeTabStartRegion
public void removeTabStartRegion(javafx.scene.layout.Region tabRegion) -
removeTabEndRegion
public void removeTabEndRegion(javafx.scene.layout.Region tabRegion) -
addTabStartRegion
public void addTabStartRegion(javafx.scene.layout.Region tabRegion) -
addTabEndRegion
public void addTabEndRegion(javafx.scene.layout.Region tabRegion) -
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
public double getHeaderHeight()Get the height of the header.- Returns:
- the header height
-
getHeaderHeightProperty
public javafx.beans.property.ReadOnlyDoubleProperty getHeaderHeightProperty()Get the height property of the header.- Returns:
- the height property of the header.
-
setAddTabButton
public void setAddTabButton(boolean addTabButton2)
-