Advertisement
WentaoHu

Account

Dec 5th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. package OR3.Account;
  2.  
  3. import javafx.beans.property.*;
  4.  
  5.  
  6. public class Account {
  7.  
  8. private StringProperty user;
  9. private StringProperty password;
  10. private StringProperty email;
  11. private StringProperty first;
  12. private StringProperty last;
  13. private StringProperty birth;
  14. private StringProperty phone;
  15. private StringProperty admin;
  16.  
  17. //Constructor
  18. public Account() {
  19. this.user = new SimpleStringProperty();
  20. this.password = new SimpleStringProperty();
  21. this.email = new SimpleStringProperty();
  22. this.first = new SimpleStringProperty();
  23. this.last = new SimpleStringProperty();
  24. this.birth = new SimpleStringProperty();
  25. this.phone = new SimpleStringProperty();
  26. this.admin = new SimpleStringProperty();
  27. }
  28.  
  29. //User
  30. public String getUser () {
  31. return user.get();
  32. }
  33.  
  34. public void setUser(String user){
  35. this.user.set(user);
  36. }
  37.  
  38. public StringProperty userProperty() {
  39. return user;
  40. }
  41.  
  42. //Password
  43. public String getPassword() {
  44. return password.get();
  45. }
  46.  
  47. public void setPassword(String password){
  48. this.password.set(password);
  49. }
  50.  
  51. public StringProperty passwordProperty() {
  52. return password;
  53. }
  54.  
  55. //email
  56. public String getEmail () {
  57. return email.get();
  58. }
  59.  
  60. public void setEmail (String email){
  61. this.email.set(email);
  62. }
  63.  
  64. public StringProperty emailProperty() {
  65. return email;
  66. }
  67.  
  68. //first
  69. public String getFirst () {
  70. return first.get();
  71. }
  72.  
  73. public void setFirst (String first){
  74. this.first.set(first);
  75. }
  76.  
  77. public StringProperty firstProperty() {
  78. return first;
  79. }
  80.  
  81. // last
  82. public String getLast() {
  83. return last.get();
  84. }
  85.  
  86. public void setLast(String last){
  87. this.last.set(last);
  88. }
  89.  
  90. public StringProperty lastProperty() {
  91. return last;
  92. }
  93.  
  94. // birth
  95. public String getBirth() {
  96. return birth.get();
  97. }
  98.  
  99. public void setBirth(String birth){
  100. this.birth.set(birth);
  101. }
  102.  
  103. public StringProperty birthProperty() {
  104. return birth;
  105. }
  106.  
  107. // phone
  108. public String getPhone() {
  109. return phone.get();
  110. }
  111.  
  112. public void setPhone(String phone){
  113. this.phone.set(phone);
  114. }
  115.  
  116. public StringProperty phoneProperty() {
  117. return phone;
  118. }
  119.  
  120. // admin
  121. public String getAdmin() {
  122. return admin.get();
  123. }
  124.  
  125. public void setAdmin(String admin){
  126. this.admin.set(admin);
  127. }
  128.  
  129. public StringProperty adminProperty() {
  130. return admin;
  131. }
  132. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement