public class BreadcrumbBar
extends javafx.scene.control.Control
The container that will host BreadcrumbItem.
Type | Property and Description |
---|---|
javafx.beans.property.ObjectProperty<BreadcrumbItem> |
homeItem
The item considered ad home for the bar.
|
javafx.beans.property.ReadOnlyListProperty<BreadcrumbItem> |
items
Contains all items added to the bar.
|
javafx.beans.property.ObjectProperty<BreadcrumbBarEventHandler> |
onItemAction
Get the event handler that is applied to each item in the bar.
|
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthProperty
impl_traversalEngineProperty, needsLayoutProperty
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, cacheHintProperty, cacheProperty, clipProperty, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, focusedProperty, focusTraversableProperty, hoverProperty, idProperty, impl_showMnemonicsProperty, impl_treeVisibleProperty, inputMethodRequestsProperty, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParentTransformProperty, localToSceneTransformProperty, managedProperty, mouseTransparentProperty, nodeOrientationProperty, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, pickOnBoundsProperty, pressedProperty, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, styleProperty, translateXProperty, translateYProperty, translateZProperty, visibleProperty
Constructor and Description |
---|
BreadcrumbBar()
Create a new BreadcrumbBar.
|
Modifier and Type | Method and Description |
---|---|
BreadcrumbItem |
addHome(javafx.scene.Node content)
Define the home item for this bar.
|
BreadcrumbItem |
addItem(BreadcrumbItem item)
Add a new item at the end of the bar.
|
BreadcrumbItem |
addItem(javafx.scene.image.Image icon,
javafx.scene.Node content)
Create a new item in the bar with no text.
|
BreadcrumbItem |
addItem(java.lang.String text,
javafx.scene.image.Image icon,
javafx.scene.Node content)
Create a new item in the bar.
|
BreadcrumbItem |
addItem(java.lang.String text,
javafx.scene.Node content)
Create a new item in the bar without an icon.
|
BreadcrumbItem |
addItem(java.lang.String text,
javafx.scene.shape.SVGPath svgIcon,
javafx.scene.Node content)
Create a new item in the bar.
|
BreadcrumbItem |
getHomeItem()
Get the BreadcrumbItem considered as home for this bar.
|
BreadcrumbBarEventHandler |
getOnItemAction()
Get the event handler that is applied to each item in the bar.
|
java.lang.String |
getUserAgentStylesheet() |
javafx.beans.property.ObjectProperty<BreadcrumbItem> |
homeItemProperty()
The item considered ad home for the bar.
|
javafx.beans.property.ReadOnlyListProperty<BreadcrumbItem> |
itemsProperty()
Contains all items added to the bar.
|
javafx.beans.property.ObjectProperty<BreadcrumbBarEventHandler> |
onItemActionProperty()
Get the event handler that is applied to each item in the bar.
|
boolean |
removeItem(BreadcrumbItem item)
Remove an item and every following items in the bar.
|
boolean |
removeItem(int index)
Remove the item at the given index and every following item.
|
void |
setHomeItem(BreadcrumbItem homeItem)
Set the home item for the bar.
|
void |
setOnItemAction(BreadcrumbBarEventHandler handler)
Define the event handler that will be applied to each item in the bar.
|
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, createDefaultSkin, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipProperty
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getWidth, heightProperty, impl_computeContains, impl_computeGeomBounds, impl_computeLayoutBounds, impl_createPeer, impl_notifyLayoutBoundsChanged, impl_pickNodeLocal, impl_updatePeer, insetsProperty, isCacheShape, isCenterShape, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapSize, snapSpace, snapToPixelProperty, widthProperty
getChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBounds
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, hasProperties, hoverProperty, idProperty, impl_clearDirty, impl_computeIntersects, impl_cssGetCursorInitialValue, impl_findStyles, impl_geomChanged, impl_getLeafTransform, impl_getMatchingStyles, impl_getPeer, impl_getPivotX, impl_getPivotY, impl_getPivotZ, impl_getStyleMap, impl_hasTransforms, impl_intersects, impl_intersectsBounds, impl_isDirty, impl_isDirtyEmpty, impl_isShowMnemonics, impl_isTreeVisible, impl_layoutBoundsChanged, impl_markDirty, impl_pickNode, impl_processCSS, impl_reapplyCSS, impl_setShowMnemonics, impl_setStyleMap, impl_showMnemonicsProperty, impl_syncPeer, impl_transformsChanged, impl_traverse, impl_treeVisibleProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, visibleProperty
public final javafx.beans.property.ReadOnlyListProperty<BreadcrumbItem> itemsProperty
Contains all items added to the bar. The property won’t never be null.
public final javafx.beans.property.ObjectProperty<BreadcrumbItem> homeItemProperty
The item considered ad home for the bar. The value of this property will be <b>null</b> if the item has not been initialized. The home item is not mandatory.
getHomeItem()
,
setHomeItem(BreadcrumbItem)
public final javafx.beans.property.ObjectProperty<BreadcrumbBarEventHandler> onItemActionProperty
Get the event handler that is applied to each item in the bar.
public final javafx.beans.property.ReadOnlyListProperty<BreadcrumbItem> itemsProperty()
Contains all items added to the bar. The property won’t never be null.
public final javafx.beans.property.ObjectProperty<BreadcrumbItem> homeItemProperty()
The item considered ad home for the bar. The value of this property will be <b>null</b> if the item has not been initialized. The home item is not mandatory.
getHomeItem()
,
setHomeItem(BreadcrumbItem)
public final BreadcrumbItem getHomeItem()
Get the BreadcrumbItem considered as home for this bar.
public final void setHomeItem(BreadcrumbItem homeItem)
Set the home item for the bar.
homeItem
- public final javafx.beans.property.ObjectProperty<BreadcrumbBarEventHandler> onItemActionProperty()
Get the event handler that is applied to each item in the bar.
public final BreadcrumbBarEventHandler getOnItemAction()
Get the event handler that is applied to each item in the bar.
public final void setOnItemAction(BreadcrumbBarEventHandler handler)
Define the event handler that will be applied to each item in the bar. If a previous handler has been defined, it will be removed for every item present in the bar. If the new handler is null, only the older one is removed for every item.
handler
- the new handler that will be executed for a click on each
item in the bar.public final BreadcrumbItem addItem(BreadcrumbItem item)
Add a new item at the end of the bar. If the item null, nothing is performed.
item
- the item to add in the bar.public final BreadcrumbItem addHome(javafx.scene.Node content)
Define the home item for this bar. The home item will always be the first item of the bar. If a previous home item has been set it will be replaced.
content
- the content of the home item.public final BreadcrumbItem addItem(java.lang.String text, javafx.scene.image.Image icon, javafx.scene.Node content)
Create a new item in the bar.
text
- The text of the item, could be nullicon
- The icon of the item, could be nullcontent
- The content of the item, could be nullpublic final BreadcrumbItem addItem(java.lang.String text, javafx.scene.shape.SVGPath svgIcon, javafx.scene.Node content)
Create a new item in the bar.
text
- The text of the item, could be nullsvgIcon
- The SVG icon of the item, could be nullcontent
- The content of the item, could be nullpublic final BreadcrumbItem addItem(java.lang.String text, javafx.scene.Node content)
Create a new item in the bar without an icon.
text
- The text of the item, could be nullcontent
- The content of the item, could be nullpublic final BreadcrumbItem addItem(javafx.scene.image.Image icon, javafx.scene.Node content)
Create a new item in the bar with no text.
icon
- The icon of the item, could be nullcontent
- The content of the item, could be nullpublic final boolean removeItem(BreadcrumbItem item)
Remove an item and every following items in the bar.
item
- The item to remove.public final boolean removeItem(int index)
Remove the item at the given index and every following item.
index
- the index of the item to remove.public java.lang.String getUserAgentStylesheet()
getUserAgentStylesheet
in class javafx.scene.layout.Region