Java Reference
In-Depth Information
lname.bindBidirectional(contact.lastNameProperty());
System.out.println("Current - StringProperty
values : " + fname.getValue() + "
" + lname.getValue());
System.out.println("Current - Contact values : "
+ contact.getFirstName() + "
" + contact.getLastName());
System.out.println("Modifying StringProperty
values");
fname.setValue("Jane");
lname.setValue("Deer");
System.out.println("After - StringProperty values
: " + fname.getValue() + "
" + lname.getValue());
System.out.println("After - Contact values : "
+ contact.getFirstName() + "
" + contact.getLastName());
System.out.println();
System.out.println("A Area of a Rectangle [High
level Fluent API]");
// Area = width * height
final IntegerProperty width = new
SimpleIntegerProperty(10);
final IntegerProperty height = new
SimpleIntegerProperty(10);
NumberBinding area = width.multiply(height);
System.out.println("Current - Width and Height
: " + width.get() + " " + height.get());
System.out.println("Current - Area of the
Rectangle: " + area.getValue());
System.out.println("Modifying width and height");
Search WWH ::




Custom Search