| 1 | |
package org.jtheque.primary.view.impl.fb; |
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
|
| 17 | |
|
| 18 | |
|
| 19 | |
import org.jtheque.core.utils.db.Note; |
| 20 | |
import org.jtheque.primary.od.able.Person; |
| 21 | |
import org.jtheque.primary.od.able.SimpleData; |
| 22 | |
import org.jtheque.primary.view.able.fb.IPersonFormBean; |
| 23 | |
|
| 24 | |
|
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | 0 | public final class PersonFormBean implements IPersonFormBean { |
| 30 | |
private String name; |
| 31 | |
private String firstName; |
| 32 | |
private SimpleData country; |
| 33 | |
private Note note; |
| 34 | |
|
| 35 | |
@Override |
| 36 | |
public void setName(String name){ |
| 37 | 0 | this.name = name; |
| 38 | 0 | } |
| 39 | |
|
| 40 | |
@Override |
| 41 | |
public void setFirstName(String firstName){ |
| 42 | 0 | this.firstName = firstName; |
| 43 | 0 | } |
| 44 | |
|
| 45 | |
@Override |
| 46 | |
public void setNote(Note note){ |
| 47 | 0 | this.note = note; |
| 48 | 0 | } |
| 49 | |
|
| 50 | |
@Override |
| 51 | |
public void setCountry(SimpleData country){ |
| 52 | 0 | this.country = country; |
| 53 | 0 | } |
| 54 | |
|
| 55 | |
@Override |
| 56 | |
public void fillPerson(Person person){ |
| 57 | 0 | person.setName(name); |
| 58 | 0 | person.setFirstName(firstName); |
| 59 | 0 | person.setNote(note); |
| 60 | 0 | person.setTheCountry(country); |
| 61 | 0 | } |
| 62 | |
} |