Class SplitWidth

java.lang.Object
io.github.jbastgen.stemma.app.ui.widget.SplitWidth

public final class SplitWidth extends Object
Makes the width of one side of a SplitPane adjustable by dragging the divider: it starts at a stored width, keeps that width when the window is resized (only the other side grows or shrinks) and reports the new width shortly after the user stopped dragging, so it can be remembered.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    bind(javafx.scene.control.SplitPane split, javafx.scene.layout.Region side, double initial, double min, double max, DoubleConsumer onChanged)
    Gives the side the saved width and keeps it when the window changes; only the divider moves it.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • bind

      public static void bind(javafx.scene.control.SplitPane split, javafx.scene.layout.Region side, double initial, double min, double max, DoubleConsumer onChanged)
      Gives the side the saved width and keeps it when the window changes; only the divider moves it. A new width is reported once the dragging has settled.