Release NeitzelLib 1.0.1 with declarative DataGrid controls and saved setups
This commit is contained in:
@@ -24,3 +24,10 @@ container.getChildren().add(quantity);
|
||||
```
|
||||
|
||||
Import `javafx.scene.control.Spinner` and `de.neitzel.fx.control.IntegerSpinners`; `container` is your Pane. Read `quantity.getValue()` to obtain the committed number. Set a programmatic value through `quantity.getValueFactory().setValue(...)`. Use the factory's bounds as UI constraints and keep independent business validation where the value is saved. The helper does not add an FXML binding declaration or create a Model Attribute automatically.
|
||||
|
||||
## FXML
|
||||
|
||||
Declare `NonNegativeIntegerSpinner` with `minimum`, `maximum`, and `initialValue`
|
||||
constructor attributes. Bind its writable `number` property with `DirectBinding`;
|
||||
it shares the value factory property and supports both directions. See the
|
||||
[FXML controls guide](fxml-controls.md#bounded-integer-spinner).
|
||||
|
||||
Reference in New Issue
Block a user