Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Osoba {
- private final StringProperty Pesel;
- private final StringProperty Imie;
- private final StringProperty Nazwisko;
- private final StringProperty Miejscowosc;
- /**
- * Constructor with some initial data.
- *
- * @param Pesel
- * @param lastName
- */
- public Osoba(String Pesel, String Imie, String Nazwisko, String Miejscowosc){
- this.Pesel = new SimpleStringProperty(Pesel);
- this.Imie = new SimpleStringProperty(Imie);
- this.Nazwisko = new SimpleStringProperty(Nazwisko);
- this.Miejscowosc = new SimpleStringProperty(Miejscowosc);
- }
- public String getPesel() {
- return Pesel.get();
- }
- public void setPesel(String Pesel) {
- this.Pesel.set(Pesel);
- }
- public StringProperty PeselProperty() {
- return Pesel;
- }
- public String getImie() {
- return Imie.get();
- }
- public void setImie(String Imie) {
- this.Imie.set(Imie);
- }
- public StringProperty ImieProperty() {
- return Imie;
- }
- public String getNazwisko() {
- return Nazwisko.get();
- }
- public void setNazwisko(String Nazwisko) {
- this.Nazwisko.set(Nazwisko);
- }
- public StringProperty NazwiskoProperty() {
- return Nazwisko;
- }
- public String getMiejscowosc() {
- return Miejscowosc.get();
- }
- public void setMiejscowosc(String Miejscowosc) {
- this.Miejscowosc.set(Miejscowosc);
- }
- public StringProperty MiejscowoscProperty() {
- return Miejscowosc;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement