Class SplitPane.Divider

java.lang.Object
javafx.scene.control.SplitPane.Divider
Enclosing class:
SplitPane

public static class SplitPane.Divider extends Object
Represents a single divider in the SplitPane.
Since:
JavaFX 2.0
  • Property Summary Link icon

    Properties
    Type
    Property
    Description
    Represents the location where the divider should ideally be positioned, between 0.0 and 1.0 (inclusive).
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
    Creates a default Divider instance.
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    final double
    Gets the value of the position property.
    Represents the location where the divider should ideally be positioned, between 0.0 and 1.0 (inclusive).
    final void
    setPosition(double value)
    Sets the value of the position property.

    Methods declared in class java.lang.Object Link icon

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Property Details Link icon

    • position Link icon

      public final DoubleProperty positionProperty

      Represents the location where the divider should ideally be positioned, between 0.0 and 1.0 (inclusive). 0.0 represents the left- or top-most point, and 1.0 represents the right- or bottom-most point (depending on the horizontal property). The SplitPane will attempt to get the divider to the point requested, but it must take into account the minimum width/height of the nodes contained within it.

      As the user drags the SplitPane divider around this property will be updated to always represent its current location.

      Default value:
      0.5
      See Also:
  • Constructor Details Link icon

    • Divider Link icon

      public Divider()
      Creates a default Divider instance.
  • Method Details Link icon

    • setPosition Link icon

      public final void setPosition(double value)
      Sets the value of the position property.
      Property description:

      Represents the location where the divider should ideally be positioned, between 0.0 and 1.0 (inclusive). 0.0 represents the left- or top-most point, and 1.0 represents the right- or bottom-most point (depending on the horizontal property). The SplitPane will attempt to get the divider to the point requested, but it must take into account the minimum width/height of the nodes contained within it.

      As the user drags the SplitPane divider around this property will be updated to always represent its current location.

      Default value:
      0.5
      Parameters:
      value - the value for the position property
      See Also:
    • getPosition Link icon

      public final double getPosition()
      Gets the value of the position property.
      Property description:

      Represents the location where the divider should ideally be positioned, between 0.0 and 1.0 (inclusive). 0.0 represents the left- or top-most point, and 1.0 represents the right- or bottom-most point (depending on the horizontal property). The SplitPane will attempt to get the divider to the point requested, but it must take into account the minimum width/height of the nodes contained within it.

      As the user drags the SplitPane divider around this property will be updated to always represent its current location.

      Default value:
      0.5
      Returns:
      the value of the position property
      See Also:
    • positionProperty Link icon

      public final DoubleProperty positionProperty()

      Represents the location where the divider should ideally be positioned, between 0.0 and 1.0 (inclusive). 0.0 represents the left- or top-most point, and 1.0 represents the right- or bottom-most point (depending on the horizontal property). The SplitPane will attempt to get the divider to the point requested, but it must take into account the minimum width/height of the nodes contained within it.

      As the user drags the SplitPane divider around this property will be updated to always represent its current location.

      Default value:
      0.5
      Returns:
      the position property
      See Also: