All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.bidib.wizard.mvc.loco.view.EmptyAddressHandler Maven / Gradle / Ivy

There is a newer version: 2.0.29
Show newest version
package org.bidib.wizard.mvc.loco.view;

import java.util.function.Consumer;

public class EmptyAddressHandler {

    public static final String PROPERTYNAME_ADDRESS = "address";

    private Integer address;

    private Consumer handler;

    public EmptyAddressHandler(Consumer handler) {
        this.handler = handler;
    }

    public Integer getAddress() {
        return address;
    }

    public void setAddress(Integer address) {
        this.address = address;
        handler.accept(Boolean.valueOf(this.address != null));
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy