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
FieldsModifier and TypeFieldDescriptiondoubleHow many pixels the tab button 'floats' in the header area. - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidaddTabEndRegion(javafx.scene.layout.Region tabRegion) voidaddTabStartRegion(javafx.scene.layout.Region tabRegion) Get the button which allows users to add tab to tab panedoubleGet the height of the header.javafx.beans.property.ReadOnlyDoublePropertyGet the height property of the header.protected voidlayoutChildren(double x, double y, double w, double h) voidremoveTabEndRegion(javafx.scene.layout.Region tabRegion) voidremoveTabStartRegion(javafx.scene.layout.Region tabRegion) voidsetAddTabButton(boolean addTabButton2) Methods inherited from class javafx.scene.control.skin.TabPaneSkin
computeBaselineOffset, computePrefHeight, computePrefWidth, dispose, getClassCssMetaData, getCssMetaData, queryAccessibleAttributeMethods inherited from class javafx.scene.control.SkinBase
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, consumeMouseEvents, executeAccessibleAction, getChildren, getNode, getSkinnable, layoutInArea, layoutInArea, layoutInArea, positionInArea, positionInArea, pseudoClassStateChanged, registerChangeListener, registerInvalidationListener, registerListChangeListener, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, unregisterChangeListeners, unregisterInvalidationListeners, unregisterListChangeListenersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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)  - 
layoutChildren
protected void layoutChildren(double x, double y, double w, double h) - Overrides:
 layoutChildrenin classjavafx.scene.control.skin.TabPaneSkin
 - 
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)  
 -