public class HiddenSidesPane
extends javafx.scene.control.Control
setTriggerDistance(double)) of the
pane. The hidden node will appear (at its preferred width or height) with a
short slide-in animation. The node will disappear again as soon as the mouse
cursor exits it. A hidden node / side can also be pinned by calling
setPinnedSide(Side). It will remain visible as long as it stays
pinned.
HiddenSidesPane pane = new HiddenSidesPane(); pane.setContent(new TableView()); pane.setRight(new ListView());
| Type | Property and Description |
|---|---|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
animationDelay
Returns the animation delay property.
|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
animationDuration
Returns the animation duration property.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
bottom
Returns the value of the bottom node property.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
content
The property that is used to store a reference to the content node.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
left
Returns the value of the left node property.
|
javafx.beans.property.ObjectProperty<javafx.geometry.Side> |
pinnedSide
Returns the pinned side property.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
right
Returns the value of the right node property.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
top
The property used to store a reference to the node shown at the top side
of the pane.
|
javafx.beans.property.DoubleProperty |
triggerDistance
The property that stores the distance to the pane's edges that will
trigger the appearance of the hidden side nodes.
Setting the property to zero or a negative value will disable this functionality, so a hidden side can only be made visible with setPinnedSide(Side). |
contextMenu, skinClassName, skin, tooltipbackground, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthaccessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, impl_showMnemonics, impl_treeVisible, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, visible| Constructor and Description |
|---|
HiddenSidesPane()
Constructs a new pane with no content and no side nodes.
|
HiddenSidesPane(javafx.scene.Node content,
javafx.scene.Node top,
javafx.scene.Node right,
javafx.scene.Node bottom,
javafx.scene.Node left)
Constructs a new pane with the given content node and the four side
nodes.
|
| Modifier and Type | Method and Description |
|---|---|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
animationDelayProperty()
Returns the animation delay property.
|
javafx.beans.property.ObjectProperty<javafx.util.Duration> |
animationDurationProperty()
Returns the animation duration property.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
bottomProperty()
Returns the value of the bottom node property.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
contentProperty()
The property that is used to store a reference to the content node.
|
protected javafx.scene.control.Skin<?> |
createDefaultSkin() |
javafx.util.Duration |
getAnimationDelay()
Returns the animation delay
|
javafx.util.Duration |
getAnimationDuration()
Returns the animation delay
|
javafx.scene.Node |
getBottom()
Returns the value of the bottom node property.
|
javafx.scene.Node |
getContent()
Returns the value of the content node property.
|
javafx.scene.Node |
getLeft()
Returns the value of the left node property.
|
javafx.geometry.Side |
getPinnedSide()
Returns the value of the pinned side property.
|
javafx.scene.Node |
getRight()
Returns the value of the right node property.
|
javafx.scene.Node |
getTop()
Returns the value of the top node property.
|
double |
getTriggerDistance()
Returns the value of the trigger distance property.
|
protected java.lang.String |
getUserAgentStylesheet(java.lang.Class<?> clazz,
java.lang.String fileName)
A helper method that ensures that the resource based lookup of the user
agent stylesheet only happens once.
|
void |
hide()
Hides the currently showing side
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
leftProperty()
Returns the value of the left node property.
|
javafx.beans.property.ObjectProperty<javafx.geometry.Side> |
pinnedSideProperty()
Returns the pinned side property.
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
rightProperty()
Returns the value of the right node property.
|
void |
setAnimationDelay(javafx.util.Duration duration)
Set the animation delay
|
void |
setAnimationDuration(javafx.util.Duration duration)
Set the animation delay
|
void |
setBottom(javafx.scene.Node bottom)
Sets the value of the bottom node property.
|
void |
setContent(javafx.scene.Node content)
Sets the value of the content node property.
|
void |
setLeft(javafx.scene.Node left)
Sets the value of the left node property.
|
void |
setPinnedSide(javafx.geometry.Side side)
Sets the value of the pinned side property.
|
void |
setRight(javafx.scene.Node right)
Sets the value of the right node property.
|
void |
setTop(javafx.scene.Node top)
Sets the value of the top node property.
|
void |
setTriggerDistance(double distance)
Set the value of the trigger distance property.
|
void |
show(javafx.geometry.Side side)
Shows a specific side
|
javafx.beans.property.ObjectProperty<javafx.scene.Node> |
topProperty()
The property used to store a reference to the node shown at the top side
of the pane.
|
javafx.beans.property.DoubleProperty |
triggerDistanceProperty()
The property that stores the distance to the pane's edges that will
trigger the appearance of the hidden side nodes.
Setting the property to zero or a negative value will disable this functionality, so a hidden side can only be made visible with setPinnedSide(Side). |
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, executeAccessibleAction, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, queryAccessibleAttribute, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, getBackground, getBorder, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, 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, widthPropertygetChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaccessibleHelpProperty, 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, visiblePropertypublic final javafx.beans.property.DoubleProperty triggerDistanceProperty
setPinnedSide(Side).getTriggerDistance(),
setTriggerDistance(double)public final javafx.beans.property.ObjectProperty<javafx.scene.Node> contentProperty
getContent(),
setContent(Node)public final javafx.beans.property.ObjectProperty<javafx.scene.Node> topProperty
getTop(),
setTop(Node)public final javafx.beans.property.ObjectProperty<javafx.scene.Node> rightProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> bottomProperty
public final javafx.beans.property.ObjectProperty<javafx.scene.Node> leftProperty
public final javafx.beans.property.ObjectProperty<javafx.geometry.Side> pinnedSideProperty
getPinnedSide(),
setPinnedSide(Side)public final javafx.beans.property.ObjectProperty<javafx.util.Duration> animationDelayProperty
getAnimationDelay(),
setAnimationDelay(Duration)public final javafx.beans.property.ObjectProperty<javafx.util.Duration> animationDurationProperty
public HiddenSidesPane(javafx.scene.Node content,
javafx.scene.Node top,
javafx.scene.Node right,
javafx.scene.Node bottom,
javafx.scene.Node left)
content - the primary node that will fill the entire width and height of
the panetop - the hidden node on the top sideright - the hidden node on the right sidebottom - the hidden node on the bottom sideleft - the hidden node on the left sidepublic HiddenSidesPane()
protected javafx.scene.control.Skin<?> createDefaultSkin()
createDefaultSkin in class javafx.scene.control.Controlpublic final javafx.beans.property.DoubleProperty triggerDistanceProperty()
setPinnedSide(Side).getTriggerDistance(),
setTriggerDistance(double)public final double getTriggerDistance()
public final void setTriggerDistance(double distance)
setPinnedSide(Side).distance - the new value for the trigger distance propertypublic final javafx.beans.property.ObjectProperty<javafx.scene.Node> contentProperty()
getContent(),
setContent(Node)public final javafx.scene.Node getContent()
public final void setContent(javafx.scene.Node content)
content - the new content nodepublic final javafx.beans.property.ObjectProperty<javafx.scene.Node> topProperty()
getTop(),
setTop(Node)public final javafx.scene.Node getTop()
public final void setTop(javafx.scene.Node top)
top - the top node valuepublic final javafx.beans.property.ObjectProperty<javafx.scene.Node> rightProperty()
public final javafx.scene.Node getRight()
public final void setRight(javafx.scene.Node right)
right - the right node valuepublic final javafx.beans.property.ObjectProperty<javafx.scene.Node> bottomProperty()
public final javafx.scene.Node getBottom()
public final void setBottom(javafx.scene.Node bottom)
bottom - the bottom node valuepublic final javafx.beans.property.ObjectProperty<javafx.scene.Node> leftProperty()
public final javafx.scene.Node getLeft()
public final void setLeft(javafx.scene.Node left)
left - the left node valuepublic final javafx.beans.property.ObjectProperty<javafx.geometry.Side> pinnedSideProperty()
getPinnedSide(),
setPinnedSide(Side)public final javafx.geometry.Side getPinnedSide()
public final void setPinnedSide(javafx.geometry.Side side)
side - the new pinned side valuepublic final javafx.beans.property.ObjectProperty<javafx.util.Duration> animationDelayProperty()
getAnimationDelay(),
setAnimationDelay(Duration)public final javafx.util.Duration getAnimationDelay()
public final void setAnimationDelay(javafx.util.Duration duration)
duration - slide in animation delaypublic final javafx.beans.property.ObjectProperty<javafx.util.Duration> animationDurationProperty()
public final javafx.util.Duration getAnimationDuration()
public final void setAnimationDuration(javafx.util.Duration duration)
duration - animation durationpublic void show(javafx.geometry.Side side)
side - the side to showpublic void hide()
protected final java.lang.String getUserAgentStylesheet(java.lang.Class<?> clazz,
java.lang.String fileName)
clazz - the class used for the resource lookupfileName - the name of the user agent stylesheet