Class Form
java.lang.Object
io.github.jbastgen.stemma.app.ui.widget.Form
Builders for the controls of settings pages, so every page looks the same.
-
Method Summary
Modifier and TypeMethodDescriptionstatic javafx.scene.control.TextAreaA multi-line input in a monospaced font.static javafx.scene.control.CheckBoxA check box.static javafx.scene.layout.VBoxA label above a control, with an optional hint below.static javafx.scene.control.LabelThe heading of a section: small capitals in a dim colour.static javafx.scene.control.LabelExplanatory text below a control.static javafx.scene.control.TextFieldAstext(java.lang.String, java.lang.String, java.util.function.Consumer<java.lang.String>), in a monospaced font.static javafx.scene.layout.VBoxpage(javafx.scene.Node... children) A page: its sections stacked with the usual gaps.static <T> javafx.scene.layout.HBoxA row of mutually exclusive choices.static javafx.scene.control.LabelA line with the state of something: normal when it is fine, red when not.static javafx.scene.control.TextFieldA one-line input; every change goes toonChange.static javafx.scene.layout.HBoxwithButtons(javafx.scene.layout.Region field, javafx.scene.Node... buttons) A text field with buttons to its right.
-
Method Details
-
page
public static javafx.scene.layout.VBox page(javafx.scene.Node... children) A page: its sections stacked with the usual gaps. -
heading
The heading of a section: small capitals in a dim colour. -
hint
Explanatory text below a control. -
field
A label above a control, with an optional hint below. -
text
public static javafx.scene.control.TextField text(String value, String prompt, Consumer<String> onChange) A one-line input; every change goes toonChange. -
mono
public static javafx.scene.control.TextField mono(String value, String prompt, Consumer<String> onChange) Astext(java.lang.String, java.lang.String, java.util.function.Consumer<java.lang.String>), in a monospaced font. -
area
public static javafx.scene.control.TextArea area(String value, String prompt, int rows, Consumer<String> onChange) A multi-line input in a monospaced font. -
check
public static javafx.scene.control.CheckBox check(String text, boolean value, Consumer<Boolean> onChange) A check box. -
segmented
public static <T> javafx.scene.layout.HBox segmented(T[] values, T current, Function<T, String> label, Consumer<T> onPick) A row of mutually exclusive choices. -
withButtons
public static javafx.scene.layout.HBox withButtons(javafx.scene.layout.Region field, javafx.scene.Node... buttons) A text field with buttons to its right. -
status
A line with the state of something: normal when it is fine, red when not.
-