Class SplitWidth
java.lang.Object
io.github.jbastgen.stemma.app.ui.widget.SplitWidth
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 TypeMethodDescriptionstatic voidbind(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.
-
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.
-