SplitPane control.
SplitPane
| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | |
| pack-priv class | |
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private ListenerHelper | |
| private ObservableList | |
| private ObservableList | |
| private boolean | duringLayout
Flag which is used to determine whether we need to request layout when a divider position changed or not. |
| private boolean | |
| private int | |
| private double | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public | SplitPaneSkin(final SplitPane
The control that this skin should be installed onto. control)Creates a new SplitPaneSkin instance, installing the necessary child
nodes into the Control |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private void | |
| private void | |
| protected double | computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable height of the Skin, based on the provided width. |
| protected double | computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Computes the minimum allowable width of the Skin, based on the provided height. |
| protected double | computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred height of this |
| protected double | computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset)
Overrides javafx. Calculates the preferred width of this |
| public void | dispose()
Overrides javafx. Implements javafx. Called when a previously installed skin is about to be removed from its associated control. |
| private double | |
| private double | |
| private double | |
| private SplitPaneSkin. | |
| private SplitPaneSkin. | |
| private double | |
| private void | |
| private void | |
| protected void | layoutChildren(final double x, final double y, final double w, final double h)
Overrides javafx. Called during the layout pass of the scenegraph. |
| private void | |
| private double | |
| private void | |
| private void | |
| private void | |
| private void | |
| private void | |
| private double |
| checkDividerPos | back to summary |
|---|---|
| private boolean checkDividerPos | |
| contentDividerListenerHelper | back to summary |
|---|---|
| private ListenerHelper contentDividerListenerHelper | |
| contentDividers | back to summary |
|---|---|
| private ObservableList<SplitPaneSkin. | |
| contentRegions | back to summary |
|---|---|
| private ObservableList<SplitPaneSkin. | |
| duringLayout | back to summary |
|---|---|
| private boolean duringLayout Flag which is used to determine whether we need to request layout when a divider position changed or not.
E.g. We don't want to request layout when we are changing the divider position in
| |
| horizontal | back to summary |
|---|---|
| private boolean horizontal | |
| lastDividerUpdate | back to summary |
|---|---|
| private int lastDividerUpdate | |
| previousSize | back to summary |
|---|---|
| private double previousSize | |
| resize | back to summary |
|---|---|
| private boolean resize | |
| SplitPaneSkin | back to summary |
|---|---|
| public SplitPaneSkin(final SplitPane control) Creates a new SplitPaneSkin instance, installing the necessary child
nodes into the Control
| |
| addContent | back to summary |
|---|---|
| private void addContent(int index, Node n) | |
| addDividers | back to summary |
|---|---|
| private void addDividers() | |
| checkDividerPosition | back to summary |
|---|---|
| private void checkDividerPosition(SplitPaneSkin. | |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable height of the Skin, based on the provided width.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Computes the minimum allowable width of the Skin, based on the provided height.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred height of this
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height, double topInset, double rightInset, double bottomInset, double leftInset) Overrides javafx. Doc from javafx. Calculates the preferred width of this
| |
| dispose | back to summary |
|---|---|
| public void dispose() Overrides javafx. Implements javafx. Doc from javafx. Called when a previously installed skin is about to be removed from its associated control.
This allows the skin to do clean up, like removing listeners and bindings, and undo any changes
to the control's properties.
After this method completes,
Calling
| |
| distributeFrom | back to summary |
|---|---|
| private double distributeFrom(double size, List<SplitPaneSkin. | |
| distributeTo | back to summary |
|---|---|
| private double distributeTo(List<SplitPaneSkin. | |
| getAbsoluteDividerPos | back to summary |
|---|---|
| private double getAbsoluteDividerPos(SplitPaneSkin. | |
| getLeft | back to summary |
|---|---|
| private SplitPaneSkin. | |
| getRight | back to summary |
|---|---|
| private SplitPaneSkin. | |
| getSize | back to summary |
|---|---|
| private double getSize() | |
| initializeContentListener | back to summary |
|---|---|
| private void initializeContentListener() | |
| initializeDividerEventHandlers | back to summary |
|---|---|
| private void initializeDividerEventHandlers(final SplitPaneSkin. | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren(final double x, final double y, final double w, final double h) Overrides javafx. Doc from javafx. Called during the layout pass of the scenegraph.
| |
| layoutDividersAndContent | back to summary |
|---|---|
| private void layoutDividersAndContent(double width, double height) | |
| posToDividerPos | back to summary |
|---|---|
| private double posToDividerPos(SplitPaneSkin. | |
| removeAllDividers | back to summary |
|---|---|
| private void removeAllDividers() | |
| removeContent | back to summary |
|---|---|
| private void removeContent(Node n) | |
| setAbsoluteDividerPos | back to summary |
|---|---|
| private void setAbsoluteDividerPos(SplitPaneSkin. | |
| setAndCheckAbsoluteDividerPos | back to summary |
|---|---|
| private void setAndCheckAbsoluteDividerPos(SplitPaneSkin. | |
| setupContentAndDividerForLayout | back to summary |
|---|---|
| private void setupContentAndDividerForLayout() | |
| totalMinSize | back to summary |
|---|---|
| private double totalMinSize() | |
| Modifier and Type | Field and Description |
|---|---|
| private double | |
| private double | |
| private Rectangle | |
| private Node | |
| private double | |
| private double | |
| private double |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMaxHeight(double width)
Overrides javafx. Computes the maximum height of this region. |
| protected double | computeMaxWidth(double height)
Overrides javafx. Computes the maximum width for this region. |
| private void | |
| public double | |
| public double | |
| public Node | |
| public double | |
| public double | |
| public double | |
| public boolean | |
| public void | |
| public void | |
| protected void | |
| public void | |
| public void | |
| public void |
| area | back to summary |
|---|---|
| private double area | |
| available | back to summary |
|---|---|
| private double available | |
| clipRect | back to summary |
|---|---|
| private Rectangle clipRect | |
| content | back to summary |
|---|---|
| private Node content | |
| resizableWithParentArea | back to summary |
|---|---|
| private double resizableWithParentArea | |
| x | back to summary |
|---|---|
| private double x | |
| y | back to summary |
|---|---|
| private double y | |
| Content | back to summary |
|---|---|
| public Content(Node n) | |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width) Overrides javafx. Doc from javafx. Computes the maximum height of this region. Returns Double.MAX_VALUE by default. Region subclasses may override this method to return a different value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computeMaxWidth | back to summary |
|---|---|
| protected double computeMaxWidth(double height) Overrides javafx. Doc from javafx. Computes the maximum width for this region. Returns Double.MAX_VALUE by default. Region subclasses may override this method to return an different value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| dispose | back to summary |
|---|---|
| private void dispose() | |
| getArea | back to summary |
|---|---|
| public double getArea() | |
| getAvailable | back to summary |
|---|---|
| public double getAvailable() | |
| getContent | back to summary |
|---|---|
| public Node getContent() | |
| getResizableWithParentArea | back to summary |
|---|---|
| public double getResizableWithParentArea() | |
| getX | back to summary |
|---|---|
| public double getX() | |
| getY | back to summary |
|---|---|
| public double getY() | |
| isResizableWithParent | back to summary |
|---|---|
| public boolean isResizableWithParent() | |
| setArea | back to summary |
|---|---|
| public void setArea(double area) | |
| setAvailable | back to summary |
|---|---|
| public void setAvailable(double available) | |
| setClipSize | back to summary |
|---|---|
| protected void setClipSize(double w, double h) | |
| setResizableWithParentArea | back to summary |
|---|---|
| public void setResizableWithParentArea(double resizableWithParentArea) | |
| setX | back to summary |
|---|---|
| public void setX(double x) | |
| setY | back to summary |
|---|---|
| public void setY(double y) | |
| Modifier and Type | Field and Description |
|---|---|
| private SplitPane. | |
| private double | |
| private StackPane | |
| private double | |
| private boolean | |
| private double | |
| private double | |
| private double |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected double | computeMaxHeight(double width)
Overrides javafx. Computes the maximum height of this region. |
| protected double | computeMaxWidth(double height)
Overrides javafx. Computes the maximum width for this region. |
| protected double | computeMinHeight(double width)
Overrides javafx. Computes the minimum height of this region. |
| protected double | computeMinWidth(double height)
Overrides javafx. Computes the minimum width of this region. |
| protected double | computePrefHeight(double width)
Overrides javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. |
| protected double | computePrefWidth(double height)
Overrides javafx. Computes the preferred width of this region for the given height. |
| public SplitPane. | |
| public double | |
| public double | |
| public double | |
| public double | |
| public double | |
| protected void | layoutChildren()
Overrides javafx. Invoked during the layout pass to layout the children in this
|
| public void | |
| public final void | |
| public void | |
| public void | |
| public void | |
| public void |
| d | back to summary |
|---|---|
| private SplitPane. | |
| dividerPos | back to summary |
|---|---|
| private double dividerPos | |
| grabber | back to summary |
|---|---|
| private StackPane grabber | |
| initialPos | back to summary |
|---|---|
| private double initialPos | |
| posExplicit | back to summary |
|---|---|
| private boolean posExplicit | |
| pressPos | back to summary |
|---|---|
| private double pressPos | |
| x | back to summary |
|---|---|
| private double x | |
| y | back to summary |
|---|---|
| private double y | |
| ContentDivider | back to summary |
|---|---|
| public ContentDivider(SplitPane. | |
| computeMaxHeight | back to summary |
|---|---|
| protected double computeMaxHeight(double width) Overrides javafx. Doc from javafx. Computes the maximum height of this region. Returns Double.MAX_VALUE by default. Region subclasses may override this method to return a different value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computeMaxWidth | back to summary |
|---|---|
| protected double computeMaxWidth(double height) Overrides javafx. Doc from javafx. Computes the maximum width for this region. Returns Double.MAX_VALUE by default. Region subclasses may override this method to return an different value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| computeMinHeight | back to summary |
|---|---|
| protected double computeMinHeight(double width) Overrides javafx. Doc from javafx. Computes the minimum height of this region. Returns the sum of the top and bottom insets by default. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computeMinWidth | back to summary |
|---|---|
| protected double computeMinWidth(double height) Overrides javafx. Doc from javafx. Computes the minimum width of this region. Returns the sum of the left and right insets by default. region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| computePrefHeight | back to summary |
|---|---|
| protected double computePrefHeight(double width) Overrides javafx. Doc from javafx. Computes the preferred height of this region for the given width; Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a HORIZONTAL content bias, then the width parameter can be ignored.
| |
| computePrefWidth | back to summary |
|---|---|
| protected double computePrefWidth(double height) Overrides javafx. Doc from javafx. Computes the preferred width of this region for the given height. Region subclasses should override this method to return an appropriate value based on their content and layout strategy. If the subclass doesn't have a VERTICAL content bias, then the height parameter can be ignored.
| |
| getDivider | back to summary |
|---|---|
| public SplitPane. | |
| getDividerPos | back to summary |
|---|---|
| public double getDividerPos() | |
| getInitialPos | back to summary |
|---|---|
| public double getInitialPos() | |
| getPressPos | back to summary |
|---|---|
| public double getPressPos() | |
| getX | back to summary |
|---|---|
| public double getX() | |
| getY | back to summary |
|---|---|
| public double getY() | |
| layoutChildren | back to summary |
|---|---|
| protected void layoutChildren() Overrides javafx. Doc from javafx. Invoked during the layout pass to layout the children in this
Subclasses should override this function to layout content as needed.
| |
| setDividerPos | back to summary |
|---|---|
| public void setDividerPos(double dividerPos) | |
| setGrabberStyle | back to summary |
|---|---|
| public final void setGrabberStyle(boolean horizontal) | |
| setInitialPos | back to summary |
|---|---|
| public void setInitialPos(double initialPos) | |
| setPressPos | back to summary |
|---|---|
| public void setPressPos(double pressPos) | |
| setX | back to summary |
|---|---|
| public void setX(double x) | |
| setY | back to summary |
|---|---|
| public void setY(double y) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv SplitPaneSkin. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue)
Implements javafx. Called when the value of an |
| divider | back to summary |
|---|---|
| pack-priv SplitPaneSkin. | |
| PosPropertyListener | back to summary |
|---|---|
| public PosPropertyListener(SplitPaneSkin. | |
| changed | back to summary |
|---|---|
| public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) Implements javafx. Doc from javafx. Called when the value of an In general, it is considered bad practice to modify the observed value in this method.
| |