org.bidib.wizard.mvc.loco.view.EmptyAddressHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bidibwizard-client Show documentation
Show all versions of bidibwizard-client Show documentation
jBiDiB BiDiB Wizard Client Application POM
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));
}
}