
MasterDetailPane pane = new MasterDetailPane();
pane.setMasterNode(new TableView());
pane.setDetailNode(new PropertySheet());
pane.setDetailSide(Side.RIGHT);
pane.setShowDetailNode(true);
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final BooleanProperty | |
| private final ObjectProperty | |
| private final ObjectProperty | |
| private DoubleProperty | |
| private final DoubleProperty | |
| private final ObjectProperty | |
| private final BooleanProperty |
| Access | Constructor and Description |
|---|---|
| public | MasterDetailPane(Side
the position where the detail will be shown (top, bottom,
left, right) side, Node the master node (always visible) masterNode, Node the detail node (slides in and out) detailNode, boolean the initial state of the detail node (shown or hidden) showDetail)Constructs a new pane. |
| public | MasterDetailPane(Side
the position where the details will be shown (top, bottom,
left, right) pos, boolean the initial state of the detail node (shown or hidden) showDetail)Constructs a new pane with two placeholder nodes. |
| public | MasterDetailPane(Side
the position where the details will be shown (top, bottom,
left, right) pos)Constructs a new pane with two placeholder nodes. |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final BooleanProperty | |
| protected Skin | createDefaultSkin()
Overrides javafx. Create a new instance of the default skin for this control. |
| public final ObjectProperty | |
| public final ObjectProperty | Returns: the details side propertyThe property used to store the side where the detail node will be shown. |
| public final DoubleProperty | |
| public final DoubleProperty | Returns: the divider size hint propertyReturns a property that is used to let the master detail pane know how big the divider handles are. |
| public final Node | |
| public final Side | Returns: the side where the detail node will be shown (left, right, top, bottom)Returns the value of the detail side property. |
| public final double | Returns: the position of the dividerReturns the value of the divider position property. |
| public final double | Returns: the expected divider size (width or height depending on detail's side)Returns the value of |
| public final Node | |
| public String | getUserAgentStylesheet()
Overrides javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. |
| public final boolean | Returns: true if the detail node will be shown with a short animation (slide in)Returns the value of the "animated" property. |
| public final boolean | Returns: true if the pane is currently expanded (shows the detail node)Returns the value of the "show detail node" property. |
| public final ObjectProperty | |
| public final void | resetDividerPosition()
Resets the divider position to a value that ensures that the detail node will be fully visible at its preferred width or height. |
| public final void | setAnimated(boolean
if true the detail node will be shown with a short animation
(slide in) animated)Sets the value of the "animated" property. |
| public final void | |
| public final void | setDetailSide(Side
the side where the detail node will be shown (left, right,
top, bottom) side)Sets the value of the detail side property. |
| public final void | setDividerPosition(double
the new divider position. position)Sets the value of the divider position property. |
| public final void | setDividerSizeHint(double
the expected divider size (width or height depending on detail's side) size)Sets the value of |
| public final void | |
| public final void | setShowDetailNode(boolean
if true the pane will show the detail node show)Sets the value of the "show detail node" property. |
| public final BooleanProperty | Returns: true if the pane is currently expanded (shows the detail node)The property used to store the visibility of the detail node. |
| animated | back to summary |
|---|---|
| private final BooleanProperty animated | |
| detailNode | back to summary |
|---|---|
| private final ObjectProperty<Node> detailNode | |
| detailSide | back to summary |
|---|---|
| private final ObjectProperty<Side> detailSide | |
| dividerPosition | back to summary |
|---|---|
| private DoubleProperty dividerPosition | |
| dividerSizeHint | back to summary |
|---|---|
| private final DoubleProperty dividerSizeHint | |
| masterNode | back to summary |
|---|---|
| private final ObjectProperty<Node> masterNode | |
| showDetailNode | back to summary |
|---|---|
| private final BooleanProperty showDetailNode | |
| MasterDetailPane | back to summary |
|---|---|
| public MasterDetailPane(Side side, Node masterNode, Node detailNode, boolean showDetail) Constructs a new pane. | |
| MasterDetailPane | back to summary |
|---|---|
| public MasterDetailPane(Side pos, boolean showDetail) Constructs a new pane with two placeholder nodes.
| |
| MasterDetailPane | back to summary |
|---|---|
| public MasterDetailPane(Side pos) Constructs a new pane with two placeholder nodes. The detail node will be shown.
| |
| MasterDetailPane | back to summary |
|---|---|
| public MasterDetailPane() Constructs a new pane with two placeholder nodes. The detail node will be shown and to the right of the master node. | |
| animatedProperty | back to summary |
|---|---|
| public final BooleanProperty animatedProperty() The property used to store the "animated" flag. If true then the detail node will be shown / hidden with a short slide in / out animation.
| |
| createDefaultSkin | back to summary |
|---|---|
| protected Skin Overrides javafx. Doc from javafx. Create a new instance of the default skin for this control. This is called to create a skin for the control if
no skin is provided via CSS
| |
| detailNodeProperty | back to summary |
|---|---|
| public final ObjectProperty The property used to store the detail node.
| |
| detailSideProperty | back to summary |
|---|---|
| public final ObjectProperty The property used to store the side where the detail node will be shown.
| |
| dividerPositionProperty | back to summary |
|---|---|
| public final DoubleProperty dividerPositionProperty() Stores the location of the divider.
| |
| dividerSizeHintProperty | back to summary |
|---|---|
| public final DoubleProperty dividerSizeHintProperty() Returns a property that is used to let the master detail pane know how big the divider
handles are. This value is needed by the
| |
| getDetailNode | back to summary |
|---|---|
| public final Node getDetailNode() Returns the value of the detail node property.
| |
| getDetailSide | back to summary |
|---|---|
| public final Side getDetailSide() Returns the value of the detail side property.
| |
| getDividerPosition | back to summary |
|---|---|
| public final double getDividerPosition() Returns the value of the divider position property.
| |
| getDividerSizeHint | back to summary |
|---|---|
| public final double getDividerSizeHint() Returns the value of
| |
| getMasterNode | back to summary |
|---|---|
| public final Node getMasterNode() Returns the value of the master node property.
| |
| getUserAgentStylesheet | back to summary |
|---|---|
| public String getUserAgentStylesheet() Overrides javafx. Doc from javafx. An implementation may specify its own user-agent styles for this Region, and its children, by overriding this method. These styles are used in addition to whatever user-agent stylesheets are in use. This provides a mechanism for third parties to introduce styles for custom controls. The URL is a hierarchical URI of the form [scheme:][//authority][path]. If the URL does not have a [scheme:] component, the URL is considered to be the [path] component only. Any leading '/' character of the [path] is ignored and the [path] is treated as a path relative to the root of the application's classpath. Subclasses overriding this method should not assume any particular implementation approach as to the number and frequency with which it is called. For this reason, attempting any kind of dynamic implementation (i.e. returning different user agent stylesheet values) based on some state change is highly discouraged, as there is no guarantee when, or even if, this method will be called. Some JavaFX CSS implementations may choose to cache this response for an indefinite period of time, and therefore there should be no expectation around when this method is called.
For additional information about using CSS with the scene graph,
see the CSS Reference Guide.
| |
| isAnimated | back to summary |
|---|---|
| public final boolean isAnimated() Returns the value of the "animated" property.
| |
| isShowDetailNode | back to summary |
|---|---|
| public final boolean isShowDetailNode() Returns the value of the "show detail node" property.
| |
| masterNodeProperty | back to summary |
|---|---|
| public final ObjectProperty The property used to store the master node.
| |
| resetDividerPosition | back to summary |
|---|---|
| public final void resetDividerPosition() Resets the divider position to a value that ensures that the detail node will be fully visible at its preferred width or height. | |
| setAnimated | back to summary |
|---|---|
| public final void setAnimated(boolean animated) Sets the value of the "animated" property.
| |
| setDetailNode | back to summary |
|---|---|
| public final void setDetailNode(Node node) Sets the value of the detail node property.
| |
| setDetailSide | back to summary |
|---|---|
| public final void setDetailSide(Side side) Sets the value of the detail side property.
| |
| setDividerPosition | back to summary |
|---|---|
| public final void setDividerPosition(double position) Sets the value of the divider position property.
| |
| setDividerSizeHint | back to summary |
|---|---|
| public final void setDividerSizeHint(double size) Sets the value of
| |
| setMasterNode | back to summary |
|---|---|
| public final void setMasterNode(Node node) Sets the value of the master node property.
| |
| setShowDetailNode | back to summary |
|---|---|
| public final void setShowDetailNode(boolean show) Sets the value of the "show detail node" property.
| |
| showDetailNodeProperty | back to summary |
|---|---|
| public final BooleanProperty showDetailNodeProperty() The property used to store the visibility of the detail node.
| |
| Access | Constructor and Description |
|---|---|
| public |
| Placeholder | back to summary |
|---|---|
| public Placeholder(boolean master) | |