public class SidesPane extends Control
A pane used to display a full-size content node and four initially hidden nodes on the four sides. The hidden nodes
can be made visible by moving the mouse cursor to the edges (see 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
setPinned(Side,Boolean). It will remain visible as long as it stays pinned.
SidesPane pane = new SidesPane(); pane.setContent(new TableView()); pane.setTop(new ToolBarView());
| Type | Property and Description |
|---|---|
ObjectProperty<Duration> |
animationDelay
Returns the animation delay property.
|
ObjectProperty<Duration> |
animationDuration
Returns the animation duration property.
|
ObjectProperty<Node> |
bottom
Returns the value of the bottom node property.
|
ObjectProperty<Node> |
content
The property that is used to store a reference to the content node.
|
ObjectProperty<Node> |
left
Returns the value of the left node property.
|
ObservableMap<Side,Boolean> |
pinnedSide
Returns the pinned side property.
|
DoubleProperty |
prefHeightBottom |
DoubleProperty |
prefHeightTop |
DoubleProperty |
prefWidthLeft |
DoubleProperty |
prefWidthRight |
ObjectProperty<Node> |
right
Returns the value of the right node property.
|
ObjectProperty<Node> |
top
The property used to store a reference to the node shown at the top side of the pane.
|
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 setPinned(Side, Boolean). |
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyaccessibleHelpProperty, 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, visiblePropertyUSE_COMPUTED_SIZE, USE_PREF_SIZEBASELINE_OFFSET_SAME_AS_HEIGHT| Constructor and Description |
|---|
SidesPane()
Constructs a new pane with no content and no side nodes.
|
SidesPane(Node content,
Node top,
Node right,
Node bottom,
Node left)
Constructs a new pane with the given content node and the four side nodes.
|
| Modifier and Type | Method and Description |
|---|---|
ObjectProperty<Duration> |
animationDelayProperty()
Returns the animation delay property.
|
ObjectProperty<Duration> |
animationDurationProperty()
Returns the animation duration property.
|
ObjectProperty<Node> |
bottomProperty()
Returns the value of the bottom node property.
|
ObjectProperty<Node> |
contentProperty()
The property that is used to store a reference to the content node.
|
protected Skin<?> |
createDefaultSkin() |
Duration |
getAnimationDelay()
Returns the animation delay
|
Duration |
getAnimationDuration()
Returns the animation delay
|
Node |
getBottom()
Returns the value of the bottom node property.
|
Node |
getContent()
Returns the value of the content node property.
|
Node |
getLeft()
Returns the value of the left node property.
|
Node |
getRight()
Returns the value of the right node property.
|
Node |
getTop()
Returns the value of the top node property.
|
double |
getTriggerDistance()
Returns the value of the trigger distance property.
|
Boolean |
isPinned(Side side)
Returns the value of the pinned side property.
|
ObjectProperty<Node> |
leftProperty()
Returns the value of the left node property.
|
ObservableMap<Side,Boolean> |
pinnedSideProperty()
Returns the pinned side property.
|
DoubleProperty |
prefHeightBottomProperty() |
DoubleProperty |
prefHeightTopProperty() |
DoubleProperty |
prefWidthLeftProperty() |
DoubleProperty |
prefWidthRightProperty() |
ObjectProperty<Node> |
rightProperty()
Returns the value of the right node property.
|
void |
setAnimationDelay(Duration duration)
Set the animation delay
|
void |
setAnimationDuration(Duration duration)
Set the animation delay
|
void |
setBottom(Node bottom)
Sets the value of the bottom node property.
|
void |
setContent(Node content)
Sets the value of the content node property.
|
void |
setLeft(Node left)
Sets the value of the left node property.
|
void |
setPinned(Side side,
Boolean stateState)
Sets the value of the pinned side property.
|
void |
setRight(Node right)
Sets the value of the right node property.
|
void |
setTop(Node top)
Sets the value of the top node property.
|
void |
setTriggerDistance(double distance)
Set the value of the trigger distance property.
|
ObjectProperty<Node> |
topProperty()
The property used to store a reference to the node shown at the top side of the pane.
|
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 setPinned(Side, Boolean). |
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 ObjectProperty<Duration> animationDelayProperty
getAnimationDelay(),
setAnimationDelay(Duration)public final ObjectProperty<Duration> animationDurationProperty
public final ObjectProperty<Node> bottomProperty
public final ObjectProperty<Node> contentProperty
getContent(),
setContent(Node)public final ObjectProperty<Node> leftProperty
public final ObservableMap<Side,Boolean> pinnedSideProperty
public DoubleProperty prefHeightBottomProperty
public DoubleProperty prefHeightTopProperty
public DoubleProperty prefWidthLeftProperty
public DoubleProperty prefWidthRightProperty
public final ObjectProperty<Node> rightProperty
public final ObjectProperty<Node> topProperty
getTop(),
setTop(Node)public final DoubleProperty triggerDistanceProperty
setPinned(Side, Boolean).getTriggerDistance(),
setTriggerDistance(double)public SidesPane()
public SidesPane(Node content, Node top, Node right, Node bottom, 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 final ObjectProperty<Duration> animationDelayProperty()
getAnimationDelay(),
setAnimationDelay(Duration)public final ObjectProperty<Duration> animationDurationProperty()
public final ObjectProperty<Node> bottomProperty()
public final ObjectProperty<Node> contentProperty()
getContent(),
setContent(Node)protected Skin<?> createDefaultSkin()
createDefaultSkin in class Controlpublic final Duration getAnimationDelay()
public final Duration getAnimationDuration()
public final Node getBottom()
public final Node getContent()
public final Node getLeft()
public final Node getRight()
public final Node getTop()
public final double getTriggerDistance()
public final Boolean isPinned(Side side)
side - the side to querypublic final ObjectProperty<Node> leftProperty()
public final ObservableMap<Side,Boolean> pinnedSideProperty()
public DoubleProperty prefHeightBottomProperty()
public DoubleProperty prefHeightTopProperty()
public DoubleProperty prefWidthLeftProperty()
public DoubleProperty prefWidthRightProperty()
public final ObjectProperty<Node> rightProperty()
public final void setAnimationDelay(Duration duration)
duration - slide in animation delaypublic final void setAnimationDuration(Duration duration)
duration - animation durationpublic final void setBottom(Node bottom)
bottom - the bottom node valuepublic final void setContent(Node content)
content - the new content nodepublic final void setLeft(Node left)
left - the left node valuepublic final void setPinned(Side side, Boolean stateState)
side - the new pinned side valuestateState - pinned statepublic final void setRight(Node right)
right - the right node valuepublic final void setTop(Node top)
top - the top node valuepublic final void setTriggerDistance(double distance)
setPinned(Side,Boolean).distance - the new value for the trigger distance propertypublic final ObjectProperty<Node> topProperty()
getTop(),
setTop(Node)public final DoubleProperty triggerDistanceProperty()
setPinned(Side, Boolean).getTriggerDistance(),
setTriggerDistance(double)Copyright © 2019 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.