Advertisement
Guest User

Untitled

a guest
Jan 17th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. public class Osoba {
  2. private final StringProperty Pesel;
  3. private final StringProperty Imie;
  4. private final StringProperty Nazwisko;
  5. private final StringProperty Miejscowosc;
  6. /**
  7. * Constructor with some initial data.
  8. *
  9. * @param Pesel
  10. * @param lastName
  11. */
  12.  
  13. public Osoba(String Pesel, String Imie, String Nazwisko, String Miejscowosc){
  14. this.Pesel = new SimpleStringProperty(Pesel);
  15. this.Imie = new SimpleStringProperty(Imie);
  16. this.Nazwisko = new SimpleStringProperty(Nazwisko);
  17. this.Miejscowosc = new SimpleStringProperty(Miejscowosc);
  18. }
  19. public String getPesel() {
  20. return Pesel.get();
  21. }
  22. public void setPesel(String Pesel) {
  23. this.Pesel.set(Pesel);
  24. }
  25. public StringProperty PeselProperty() {
  26. return Pesel;
  27. }
  28. public String getImie() {
  29. return Imie.get();
  30. }
  31. public void setImie(String Imie) {
  32. this.Imie.set(Imie);
  33. }
  34. public StringProperty ImieProperty() {
  35. return Imie;
  36. }
  37. public String getNazwisko() {
  38. return Nazwisko.get();
  39. }
  40. public void setNazwisko(String Nazwisko) {
  41. this.Nazwisko.set(Nazwisko);
  42. }
  43. public StringProperty NazwiskoProperty() {
  44. return Nazwisko;
  45. }
  46. public String getMiejscowosc() {
  47. return Miejscowosc.get();
  48. }
  49. public void setMiejscowosc(String Miejscowosc) {
  50. this.Miejscowosc.set(Miejscowosc);
  51. }
  52. public StringProperty MiejscowoscProperty() {
  53. return Miejscowosc;
  54. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement