Search in sources :

Example 1 with Address

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();
}
Also used : Address(org.linkki.samples.binding.model.Address) Contact(org.linkki.samples.binding.model.Contact)

Example 2 with Address

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;
}
Also used : Address(org.linkki.samples.binding.model.Address)

Aggregations

Address (org.linkki.samples.binding.model.Address)2 Contact (org.linkki.samples.binding.model.Contact)1