public class MasterDetailPane extends Control

MasterDetailPane pane = new MasterDetailPane();
pane.setMasterNode(new TableView());
pane.setDetailNode(new PropertySheet());
pane.setDetailSide(Side.RIGHT);
pane.setShowDetailNode(true);
| Type | Property and Description |
|---|---|
BooleanProperty |
animated
The property used to store the "animated" flag.
|
ObjectProperty<Node> |
detailNode
The property used to store the detail node.
|
ObjectProperty<Side> |
detailSide
The property used to store the side where the detail node will be shown.
|
DoubleProperty |
dividerPosition
Stores the location of the divider.
|
ObjectProperty<Node> |
masterNode
The property used to store the master node.
|
BooleanProperty |
showDetailNode
The property used to store the visibility of the detail node.
|
contextMenuProperty, skinClassNameProperty, skinProperty, tooltipPropertybackgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, heightProperty, insetsProperty, maxHeightProperty, maxWidthProperty, minHeightProperty, minWidthProperty, opaqueInsetsProperty, paddingProperty, prefHeightProperty, prefWidthProperty, scaleShapeProperty, shapeProperty, snapToPixelProperty, widthPropertyimpl_traversalEngineProperty, needsLayoutPropertyblendModeProperty, 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 |
|---|
MasterDetailPane()
Constructs a new pane with two placeholder nodes.
|
MasterDetailPane(Side pos)
Constructs a new pane with two placeholder nodes.
|
MasterDetailPane(Side pos,
boolean showDetail)
Constructs a new pane with two placeholder nodes.
|
MasterDetailPane(Side side,
Node masterNode,
Node detailNode,
boolean showDetail)
Constructs a new pane.
|
| Modifier and Type | Method and Description |
|---|---|
BooleanProperty |
animatedProperty()
The property used to store the "animated" flag.
|
protected Skin<?> |
createDefaultSkin() |
ObjectProperty<Node> |
detailNodeProperty()
The property used to store the detail node.
|
ObjectProperty<Side> |
detailSideProperty()
The property used to store the side where the detail node will be shown.
|
DoubleProperty |
dividerPositionProperty()
Stores the location of the divider.
|
Node |
getDetailNode()
Returns the value of the detail node property.
|
Side |
getDetailSide()
Returns the value of the detail side property.
|
double |
getDividerPosition()
Returns the value of the divider position property.
|
Node |
getMasterNode()
Returns the value of the master node property.
|
protected String |
getUserAgentStylesheet() |
boolean |
isAnimated()
Returns the value of the "animated" property.
|
boolean |
isShowDetailNode()
Returns the value of the "show detail node" property.
|
ObjectProperty<Node> |
masterNodeProperty()
The property used to store the master node.
|
void |
setAnimated(boolean animated)
Sets the value of the "animated" property.
|
void |
setDetailNode(Node node)
Sets the value of the detail node property.
|
void |
setDetailSide(Side side)
Sets the value of the detail side property.
|
void |
setDividerPosition(double position)
Sets the value of the divider position property.
|
void |
setMasterNode(Node node)
Sets the value of the master node property.
|
void |
setShowDetailNode(boolean show)
Sets the value of the "show detail node" property.
|
BooleanProperty |
showDetailNodeProperty()
The property used to store the visibility of the detail node.
|
computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, contextMenuProperty, getBaselineOffset, getClassCssMetaData, getContextMenu, getControlCssMetaData, getCssMetaData, getSkin, getTooltip, impl_cssGetFocusTraversableInitialValue, impl_processCSS, isResizable, layoutChildren, setContextMenu, setSkin, setTooltip, skinClassNameProperty, skinProperty, tooltipPropertybackgroundProperty, 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, widthPropertygetChildren, getChildrenUnmodifiable, getImpl_traversalEngine, getManagedChildren, getStylesheets, impl_getAllParentStylesheets, impl_processMXNode, impl_traversalEngineProperty, isNeedsLayout, layout, lookup, needsLayoutProperty, requestLayout, requestParentLayout, setImpl_traversalEngine, setNeedsLayout, updateBoundsaddEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, containsBounds, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, fireEvent, focusedProperty, focusTraversableProperty, 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_geomChanged, impl_getAccessible, 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, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, 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, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, 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<Side> detailSideProperty
getDetailSide(),
setDetailSide(Side)public final BooleanProperty showDetailNodeProperty
isShowDetailNode(),
setShowDetailNode(boolean)public final ObjectProperty<Node> masterNodeProperty
getMasterNode(),
setMasterNode(Node)public final ObjectProperty<Node> detailNodeProperty
getDetailNode(),
setDetailNode(Node)public final BooleanProperty animatedProperty
isAnimated(),
setAnimated(boolean)public final DoubleProperty dividerPositionProperty
getDividerPosition(),
setDividerPosition(double)public MasterDetailPane(Side side, Node masterNode, Node detailNode, boolean showDetail)
side - the position where the detail will be shown (top, bottom,
left, right)masterNode - the master node (always visible)detailNode - the detail node (slides in and out)showDetail - the initial state of the detail node (shown or hidden)public MasterDetailPane(Side pos, boolean showDetail)
pos - the position where the details will be shown (top, bottom,
left, right)showDetail - the initial state of the detail node (shown or hidden)public MasterDetailPane(Side pos)
pos - the position where the details will be shown (top, bottom,
left, right)public MasterDetailPane()
pos - the position where the details will be shown (top, bottom,
left, right)protected Skin<?> createDefaultSkin()
createDefaultSkin in class Controlprotected String getUserAgentStylesheet()
getUserAgentStylesheet in class Controlpublic final ObjectProperty<Side> detailSideProperty()
getDetailSide(),
setDetailSide(Side)public final Side getDetailSide()
public final void setDetailSide(Side side)
side - the side where the detail node will be shown (left, right,
top, bottom)public final BooleanProperty showDetailNodeProperty()
isShowDetailNode(),
setShowDetailNode(boolean)public final boolean isShowDetailNode()
public final void setShowDetailNode(boolean show)
show - if true the pane will show the detail nodepublic final ObjectProperty<Node> masterNodeProperty()
getMasterNode(),
setMasterNode(Node)public final Node getMasterNode()
public final void setMasterNode(Node node)
node - the new master nodepublic final ObjectProperty<Node> detailNodeProperty()
getDetailNode(),
setDetailNode(Node)public final Node getDetailNode()
public final void setDetailNode(Node node)
node - the new master nodepublic final BooleanProperty animatedProperty()
isAnimated(),
setAnimated(boolean)public final boolean isAnimated()
public final void setAnimated(boolean animated)
animated - if true the detail node will be shown with a short animation
(slide in)public final DoubleProperty dividerPositionProperty()
getDividerPosition(),
setDividerPosition(double)public final double getDividerPosition()
public final void setDividerPosition(double position)
position - the new divider position.