Skip to content

v1.4.0

Compare
Choose a tag to compare
@carldea carldea released this 18 Oct 06:09
· 9 commits to main since this release

New support to get properties as a JavaFX property based on common datatypes such as the following:

if (myViewModel.getIntegerProperty(AGE).isLessThan(50)) {
   System.out.println(" you are %s years young!".formatted(myViewModel.getIntegerProperty(AGE).getValue()));
};

Prior we only had getProperty(AGE) where you could not compare the value in an if statement (inline) like above.

IntegerProperty ageProp = myViewModel.getProperty(AGE);
if (ageProp.isLessThan(50)) {
   System.out.println(" you are %s years young!".formatted(ageProp.getValue()));
};