Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package ch.makery.address.model;
- import java.io.Serializable;
- import java.time.LocalDate;
- import javafx.beans.property.IntegerProperty;
- import javafx.beans.property.SimpleIntegerProperty;
- import javafx.beans.property.SimpleStringProperty;
- import javafx.beans.property.StringProperty;
- public class Dogovor implements Serializable {
- transient private IntegerProperty nomerProperty;
- transient private StringProperty kontrProperty;
- private int nomer;
- private String tip;
- private String kontr;
- private String otvl;
- private String form;
- private LocalDate data;
- public Dogovor() {
- this.kontr = "";
- this.tip = "";
- this.otvl = "";
- this.nomer = -1;
- this.form = "";
- this.data = LocalDate.of(1999, 2, 21);
- this.nomerProperty = new SimpleIntegerProperty(this.nomer);
- this.kontrProperty = new SimpleStringProperty(this.kontr);
- }
- @Override
- private Object readResolve() {
- this.nomerProperty = new SimpleIntegerProperty(this.nomer);
- this.kontrProperty = new SimpleStringProperty(this.kontr);
- return this;
- }
- public int getNomer() {
- return nomer;
- }
- public void setNomer(int nomer) {
- this.nomerProperty.setValue(nomer);
- this.nomer = nomer;
- }
- public String getTip() {
- return tip;
- }
- public void setTip(String tip) {
- this.tip = tip;
- }
- public String getKontr() {
- return kontr;
- }
- public void setKontr(String kontr) {
- this.kontrProperty.setValue(kontr);
- this.kontr = kontr;
- }
- public String getOtvl() {
- return otvl;
- }
- public void setOtvl(String otvl) {
- this.otvl = otvl;
- }
- public String getForm() {
- return form;
- }
- public void setForm(String form) {
- this.form = form;
- }
- public LocalDate getData() {
- return data;
- }
- public void setData(LocalDate data) {
- this.data = data;
- }
- public IntegerProperty getNomerProperty() {
- return nomerProperty;
- }
- public StringProperty getKontrProperty() {
- return kontrProperty;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement