Advertisement
Guest User

Klient

a guest
Jun 19th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1.  
  2. import javafx.beans.property.SimpleFloatProperty;
  3. import javafx.beans.property.SimpleIntegerProperty;
  4. import javafx.beans.property.SimpleStringProperty;
  5.  
  6. public class Klient {
  7.  
  8. private SimpleIntegerProperty id;
  9. private SimpleStringProperty imie;
  10. private SimpleStringProperty nazwisko;
  11. private SimpleStringProperty pesel;
  12. private SimpleStringProperty adres;
  13. private SimpleFloatProperty stanKonta;
  14.  
  15. public Klient() {
  16. this.id = new SimpleIntegerProperty();
  17. this.imie = new SimpleStringProperty();
  18. this.nazwisko = new SimpleStringProperty();
  19. this.pesel = new SimpleStringProperty();
  20. this.adres = new SimpleStringProperty();
  21. this.stanKonta = new SimpleFloatProperty();
  22. }
  23.  
  24. public int getId() {
  25. return id.get();
  26. }
  27.  
  28. public SimpleIntegerProperty idProperty() {
  29. return id;
  30. }
  31.  
  32. public void setId(int id) {
  33. this.id.set(id);
  34. }
  35.  
  36. public String getImie() {
  37. return imie.get();
  38. }
  39.  
  40. public SimpleStringProperty imieProperty() {
  41. return imie;
  42. }
  43.  
  44. public void setImie(String imie) {
  45. this.imie.set(imie);
  46. }
  47.  
  48. public String getNazwisko() {
  49. return nazwisko.get();
  50. }
  51.  
  52. public SimpleStringProperty nazwiskoProperty() {
  53. return nazwisko;
  54. }
  55.  
  56. public void setNazwisko(String nazwisko) {
  57. this.nazwisko.set(nazwisko);
  58. }
  59.  
  60. public String getPesel() {
  61. return pesel.get();
  62. }
  63.  
  64. public SimpleStringProperty peselProperty() {
  65. return pesel;
  66. }
  67.  
  68. public void setPesel(String pesel) {
  69. this.pesel.set(pesel);
  70. }
  71.  
  72. public String getAdres() {
  73. return adres.get();
  74. }
  75.  
  76. public SimpleStringProperty adresProperty() {
  77. return adres;
  78. }
  79.  
  80. public void setAdres(String adres) {
  81. this.adres.set(adres);
  82. }
  83.  
  84. public float getStanKonta() {
  85. return stanKonta.get();
  86. }
  87.  
  88. public SimpleFloatProperty stanKontaProperty() {
  89. return stanKonta;
  90. }
  91.  
  92. public void setStanKonta(float stanKonta) {
  93. this.stanKonta.set(stanKonta);
  94. }
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement