use of org.linkki.samples.binding.model.Address in project linkki by linkki-framework.
the class ContactComponent method save.
private void save() {
Address address = addressPmo.getAddress();
Contact contact = contactPmo.getContact();
contact.setAddress(address);
persistAction.accept(contact);
reset();
}
use of org.linkki.samples.binding.model.Address in project linkki by linkki-framework.
the class AddressPmo method getAddress.
public Address getAddress() {
if (address == null) {
address = new Address(street, zip, city, country);
} else {
address.setStreet(street);
address.setZip(zip);
address.setCountry(country);
address.setCity(city);
}
return address;
}