Comments (1)
The property listeners (in RootPane setupValueChangedListeners()
) get the current form values, and from here the model can be updated.
System.out.println("Current country name: " + model.getCountry().getName());
model.getCountry().nameProperty().addListener((observable, oldValue, newValue) -> System.out.println("Changing country name to:" + newValue));
model.getCountry().nameProperty().addListener((observable, oldValue, newValue) -> model.getCountry().setName(newValue));
model.getCountry().nameProperty().addListener((observable, oldValue, newValue) -> System.out.println(model.getCountry().getName()));
System.out.println("Country name now: " + model.getCountry().getName());
from formsfx.
Related Issues (20)
- Required field with no message shows empty tooltip
- Configurable spacing/padding in multiple column layout HOT 1
- <TAB> navigation hangs in Date Format Item
- JDK 11 compatible HOT 3
- Date Field HOT 4
- KeyEvent on Fields HOT 1
- Allow a Validator or CustomValidator to dynamically generate error messages.
- Setting a custom StringConverter on an IntegerField can break the Spinner in SimpleIntegerControl
- BigDecimal HOT 2
- Why SingleSelectionField not "only persists values when explicitly requested" like other fields?
- Setting width of Labels HOT 7
- Filepicker
- Setting spacing/padding between fields
- Using JavaBeanXXProperty will not update the model
- com.dlsc.formsfx.model.structure.Element visibility
- Dynamic Forms,Access to values
- RegexValidator.forURL is overly restrictive
- Validators do not handle null input
- Switching to light/dark modes
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from formsfx.