All;
I am trying to put 3 labels on the screen which are bound to the same ObjectProperty but I want to display 3 different values.
For example:
Class MyVO {
public String firstName;
public String lastName;
pubilc String id;
}
In the UI Class
MyVO vo = new MyVO;
vo.setFirstName(“xxx”);
vo.setLastName(“yyy”);
ObjectProperty myObjectProperty = new ObjectProperty(vo);
/// Here I want to have 3 labels that display the firstName, lastName and id from the datasource.
Label firstName= new Label();
label.setPropertyDataSource(myObjectProperty);
// HOW do i tell it to use firstName as the value. right now all I see is an object memory ref value.
I may be approaching this wrong, but if my explanation is clear, could I get some guidance on this please?