Edit form controls and render localized application previews in the IntelliJ designer

This commit is contained in:
2026-11-24 15:13:31 +01:00
parent 73da1f985e
commit 93a9f04b11
18 changed files with 1623 additions and 63 deletions
@@ -98,6 +98,13 @@ public final class StageChecks {
Examples.person.getRank() == 7, "Conversion failure changed Model");
rank.setText("42");
PreviewChecks.check(Examples.person.getRank() == 42, "Conversion recovery");
var spinner =
(de.neitzel.fx.control.NonNegativeIntegerSpinner) root.lookup("#rankSpinner");
PreviewChecks.check(spinner.getNumber() == 42, "Bound spinner received changed rank");
spinner.increment();
PreviewChecks.check(
Examples.person.getRank() == 43 && rank.getText().contains("43"),
"Spinner writes through the numeric binding");
((Button) root.lookup("#action")).fire();
PreviewChecks.check(
Examples.person.getName().equals("Controller action"), "Controller action");