Edit form controls and render localized application previews in the IntelliJ designer
This commit is contained in:
+7
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user