Top Description Fields Constructors Methods
impl.org.controlsfx.skin

public Class BreadCrumbBarSkin<T>

extends SkinBase<BreadCrumbBar<T>>
Class Inheritance
Imports
javafx.beans.value.ChangeListener, javafx.event.Event, .EventHandler, javafx.scene.Node, javafx.scene.control.Button, .SkinBase, .TreeItem, .TreeItem.TreeModificationEvent, javafx.util.Callback, org.controlsfx.control.BreadCrumbBar, .BreadCrumbBar.BreadCrumbActionEvent, .BreadCrumbBar.BreadCrumbButton, java.util.ArrayList, .Collections, .List

Basic Skin implementation for the BreadCrumbBar

Field Summary

Modifier and TypeField and Description
private final ChangeListener<TreeItem<T>>
private static final String
private final EventHandler<TreeItem.TreeModificationEvent<Object>>

Constructor Summary

AccessConstructor and Description

Method Summary

Modifier and TypeMethod and Description
private List<TreeItem<T>>
constructFlatPath(TreeItem<T>
The crumb node at the end of the path
bottomMost
)

Construct a flat list for the crumbs

private Button
createCrumb(final Callback<TreeItem<T>, Button> factory, final TreeItem<T> selectedCrumb)

protected void
layoutChildren(double x, double y, double w, double h)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

protected void
onBreadCrumbAction(final TreeItem<T>
The crumb which received the action event
crumbModel
)

Occurs when a bread crumb gets the action event

private void
private void
updateSelectedPath(TreeItem<T> newTarget, TreeItem<T> oldTarget)

Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthconsumeMouseEventsdisposeexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

selectedPathChangeListenerback to summary
private final ChangeListener<TreeItem<T>> selectedPathChangeListener
STYLE_CLASS_FIRSTback to summary
private static final String STYLE_CLASS_FIRST
treeChildrenModifiedHandlerback to summary
private final EventHandler<TreeItem.TreeModificationEvent<Object>> treeChildrenModifiedHandler

Constructor Detail

Method Detail

constructFlatPathback to summary
private List<TreeItem<T>> constructFlatPath(TreeItem<T> bottomMost)

Construct a flat list for the crumbs

Parameters
bottomMost:TreeItem<T>

The crumb node at the end of the path

createCrumbback to summary
private Button createCrumb(final Callback<TreeItem<T>, Button> factory, final TreeItem<T> selectedCrumb)
layoutChildrenback to summary
protected void layoutChildren(double x, double y, double w, double h)

Overrides javafx.scene.control.SkinBase.layoutChildren.

Doc from javafx.scene.control.SkinBase.layoutChildren.

Called during the layout pass of the scenegraph.

Annotations
@Override
onBreadCrumbActionback to summary
protected void onBreadCrumbAction(final TreeItem<T> crumbModel)

Occurs when a bread crumb gets the action event

Parameters
crumbModel:TreeItem<T>

The crumb which received the action event

updateBreadCrumbsback to summary
private void updateBreadCrumbs()
updateSelectedPathback to summary
private void updateSelectedPath(TreeItem<T> newTarget, TreeItem<T> oldTarget)