-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContact.java
More file actions
438 lines (336 loc) · 11.3 KB
/
Contact.java
File metadata and controls
438 lines (336 loc) · 11.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
package addressbook;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;
import java.time.LocalDate;
public class Contact {
private SimpleIntegerProperty id = new SimpleIntegerProperty(this, "id", -1);
private SimpleIntegerProperty mailingListId = new SimpleIntegerProperty(this, "mailingListId", -1);
private StringProperty firstName = new SimpleStringProperty(this, "firstName", "");
private StringProperty lastName = new SimpleStringProperty(this, "lastName", "");
private StringProperty name = new SimpleStringProperty(this, "name", "");
private StringProperty pseudonym = new SimpleStringProperty(this, "pseudonym", "");
private StringProperty website = new SimpleStringProperty(this, "website", "");
private StringProperty hausePhoneNumber = new SimpleStringProperty(this, "hausePhoneNumber", "");
private StringProperty faxPhoneNumber = new SimpleStringProperty(this, "faxPhoneNumber", "");
private StringProperty pagerPhoneNumber = new SimpleStringProperty(this, "pagerPhoneNumber", "");
private StringProperty email = new SimpleStringProperty(this, "email", "");
private StringProperty mobilePhoneNumber = new SimpleStringProperty(this, "mobilePhoneNumber", "");
private StringProperty workPhoneNumber = new SimpleStringProperty(this, "workPhoneNumber", "");
private StringProperty secondEmail = new SimpleStringProperty(this, "secondEmail", "");
private StringProperty address = new SimpleStringProperty(this, "address", "");
private StringProperty city = new SimpleStringProperty(this, "city", "");
private StringProperty voivodeship = new SimpleStringProperty(this, "voivodeship", "");
private StringProperty postalCode = new SimpleStringProperty(this, "postalCode", "");
private StringProperty country = new SimpleStringProperty(this, "country", "");
private StringProperty birthday = new SimpleStringProperty(this, "birthday", "");
private StringProperty office = new SimpleStringProperty(this, "office", "");
private StringProperty departament = new SimpleStringProperty(this, "departament", "");
private StringProperty companyName = new SimpleStringProperty(this, "companyName", "");
private StringProperty companyAddress = new SimpleStringProperty(this, "companyAddress", "");
private StringProperty companyPostalCode = new SimpleStringProperty(this, "companyPostalCode", "");
private StringProperty companyCountry = new SimpleStringProperty(this, "companyCountry", "");
private StringProperty companyWebsite = new SimpleStringProperty(this, "companyWebsite", "");
private StringProperty info1 = new SimpleStringProperty(this, "info1", "");
private StringProperty info2 = new SimpleStringProperty(this, "info2", "");
private StringProperty info3 = new SimpleStringProperty(this, "info3", "");
private StringProperty info4 = new SimpleStringProperty(this, "info4", "");
private StringProperty notes = new SimpleStringProperty(this, "notes", "");
public Contact() {
}
public Contact(String firstName, String lastName, String mobilePhoneNumber, String email) {
//this.firstName = firstName;
this.firstName.setValue(firstName);
this.lastName.setValue(lastName);
this.email.setValue(email);
this.mobilePhoneNumber.setValue(mobilePhoneNumber);
}
public int getId() {
return id.get();
}
public SimpleIntegerProperty idProperty() {
return id;
}
public void setId(int id) {
this.id.set(id);
}
public int getMailingListId() {
return mailingListId.get();
}
public SimpleIntegerProperty mailingListIdProperty() {
return mailingListId;
}
public void setMailingListId(int mailingListId) {
this.mailingListId.set(mailingListId);
}
public String getWebsite() {
return website.get();
}
public StringProperty websiteProperty() {
return website;
}
public void setWebsite(String website) {
this.website.set(website);
}
public String getFirstName() {
return firstName.get();
}
public StringProperty firstNameProperty() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName.set(firstName);
}
public String getLastName() {
return lastName.get();
}
public StringProperty lastNameProperty() {
return lastName;
}
public void setLastName(String lastName) {
this.lastName.set(lastName);
}
public String getName() {
return name.get();
}
public StringProperty nameProperty() {
return name;
}
public void setName(String name) {
this.name.set(name);
}
public String getPseudonym() {
return pseudonym.get();
}
public StringProperty pseudonymProperty() {
return pseudonym;
}
public void setPseudonym(String pseudonym) {
this.pseudonym.set(pseudonym);
}
public String getHausePhoneNumber() {
return hausePhoneNumber.get();
}
public StringProperty hausePhoneNumberProperty() {
return hausePhoneNumber;
}
public void setHausePhoneNumber(String hausePhoneNumber) {
this.hausePhoneNumber.set(hausePhoneNumber);
}
public String getFaxPhoneNumber() {
return faxPhoneNumber.get();
}
public StringProperty faxPhoneNumberProperty() {
return faxPhoneNumber;
}
public void setFaxPhoneNumber(String faxPhoneNumber) {
this.faxPhoneNumber.set(faxPhoneNumber);
}
public String getPagerPhoneNumber() {
return pagerPhoneNumber.get();
}
public StringProperty pagerPhoneNumberProperty() {
return pagerPhoneNumber;
}
public void setPagerPhoneNumber(String pagerPhoneNumber) {
this.pagerPhoneNumber.set(pagerPhoneNumber);
}
public String getEmail() {
return email.get();
}
public StringProperty emailProperty() {
return email;
}
public void setEmail(String email) {
this.email.set(email);
}
public String getMobilePhoneNumber() {
return mobilePhoneNumber.get();
}
public StringProperty mobilePhoneNumberProperty() {
return mobilePhoneNumber;
}
public void setMobilePhoneNumber(String mobilePhoneNumber) {
this.mobilePhoneNumber.set(mobilePhoneNumber);
}
public String getWorkPhoneNumber() {
return workPhoneNumber.get();
}
public StringProperty workPhoneNumberProperty() {
return workPhoneNumber;
}
public void setWorkPhoneNumber(String workPhoneNumber) {
this.workPhoneNumber.set(workPhoneNumber);
}
public String getSecondEmail() {
return secondEmail.get();
}
public StringProperty secondEmailProperty() {
return secondEmail;
}
public void setSecondEmail(String secondEmail) {
this.secondEmail.set(secondEmail);
}
public String getAddress() {
return address.get();
}
public StringProperty addressProperty() {
return address;
}
public void setAddress(String address) {
this.address.set(address);
}
public String getCity() {
return city.get();
}
public StringProperty cityProperty() {
return city;
}
public void setCity(String city) {
this.city.set(city);
}
public String getVoivodeship() {
return voivodeship.get();
}
public StringProperty voivodeshipProperty() {
return voivodeship;
}
public void setVoivodeship(String voivodeship) {
this.voivodeship.set(voivodeship);
}
public String getPostalCode() {
return postalCode.get();
}
public StringProperty postalCodeProperty() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode.set(postalCode);
}
public String getCountry() {
return country.get();
}
public StringProperty countryProperty() {
return country;
}
public void setCountry(String country) {
this.country.set(country);
}
public String getBirthday() {
return birthday.get();
}
public StringProperty birthdayProperty() {
return birthday;
}
public void setBirthday(String birthday) {
this.birthday.set(birthday);
}
public String getOffice() {
return office.get();
}
public StringProperty officeProperty() {
return office;
}
public void setOffice(String office) {
this.office.set(office);
}
public String getDepartament() {
return departament.get();
}
public StringProperty departamentProperty() {
return departament;
}
public void setDepartament(String departament) {
this.departament.set(departament);
}
public String getCompanyName() {
return companyName.get();
}
public StringProperty companyNameProperty() {
return companyName;
}
public void setCompanyName(String companyName) {
this.companyName.set(companyName);
}
public String getCompanyAddress() {
return companyAddress.get();
}
public StringProperty companyAddressProperty() {
return companyAddress;
}
public void setCompanyAddress(String companyAddress) {
this.companyAddress.set(companyAddress);
}
public String getCompanyPostalCode() {
return companyPostalCode.get();
}
public StringProperty companyPostalCodeProperty() {
return companyPostalCode;
}
public void setCompanyPostalCode(String companyPostalCode) {
this.companyPostalCode.set(companyPostalCode);
}
public String getCompanyCountry() {
return companyCountry.get();
}
public StringProperty companyCountryProperty() {
return companyCountry;
}
public void setCompanyCountry(String companyCountry) {
this.companyCountry.set(companyCountry);
}
public String getCompanyWebsite() {
return companyWebsite.get();
}
public StringProperty companyWebsiteProperty() {
return companyWebsite;
}
public void setCompanyWebsite(String companyWebsite) {
this.companyWebsite.set(companyWebsite);
}
public String getInfo1() {
return info1.get();
}
public StringProperty info1Property() {
return info1;
}
public void setInfo1(String info1) {
this.info1.set(info1);
}
public String getInfo2() {
return info2.get();
}
public StringProperty info2Property() {
return info2;
}
public void setInfo2(String info2) {
this.info2.set(info2);
}
public String getInfo3() {
return info3.get();
}
public StringProperty info3Property() {
return info3;
}
public void setInfo3(String info3) {
this.info3.set(info3);
}
public String getInfo4() {
return info4.get();
}
public StringProperty info4Property() {
return info4;
}
public void setInfo4(String info4) {
this.info4.set(info4);
}
public String getNotes() {
return notes.get();
}
public StringProperty notesProperty() {
return notes;
}
public void setNotes(String notes) {
this.notes.set(notes);
}
}