Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package OR3.Account;
- import javafx.beans.property.*;
- public class Account {
- private StringProperty user;
- private StringProperty password;
- private StringProperty email;
- private StringProperty first;
- private StringProperty last;
- private StringProperty birth;
- private StringProperty phone;
- private StringProperty admin;
- //Constructor
- public Account() {
- this.user = new SimpleStringProperty();
- this.password = new SimpleStringProperty();
- this.email = new SimpleStringProperty();
- this.first = new SimpleStringProperty();
- this.last = new SimpleStringProperty();
- this.birth = new SimpleStringProperty();
- this.phone = new SimpleStringProperty();
- this.admin = new SimpleStringProperty();
- }
- //User
- public String getUser () {
- return user.get();
- }
- public void setUser(String user){
- this.user.set(user);
- }
- public StringProperty userProperty() {
- return user;
- }
- //Password
- public String getPassword() {
- return password.get();
- }
- public void setPassword(String password){
- this.password.set(password);
- }
- public StringProperty passwordProperty() {
- return password;
- }
- //email
- public String getEmail () {
- return email.get();
- }
- public void setEmail (String email){
- this.email.set(email);
- }
- public StringProperty emailProperty() {
- return email;
- }
- //first
- public String getFirst () {
- return first.get();
- }
- public void setFirst (String first){
- this.first.set(first);
- }
- public StringProperty firstProperty() {
- return first;
- }
- // last
- public String getLast() {
- return last.get();
- }
- public void setLast(String last){
- this.last.set(last);
- }
- public StringProperty lastProperty() {
- return last;
- }
- // birth
- public String getBirth() {
- return birth.get();
- }
- public void setBirth(String birth){
- this.birth.set(birth);
- }
- public StringProperty birthProperty() {
- return birth;
- }
- // phone
- public String getPhone() {
- return phone.get();
- }
- public void setPhone(String phone){
- this.phone.set(phone);
- }
- public StringProperty phoneProperty() {
- return phone;
- }
- // admin
- public String getAdmin() {
- return admin.get();
- }
- public void setAdmin(String admin){
- this.admin.set(admin);
- }
- public StringProperty adminProperty() {
- return admin;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement