Class Person
- java.lang.Object
-
- org.eclipse.nebula.widgets.nattable.dataset.person.Person
-
- Direct Known Subclasses:
PersonWithAddress
public class Person extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Person.Gender
-
Field Summary
Fields Modifier and Type Field Description protected String
description
protected Double
money
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getBirthday()
String
getDescription()
String
getFirstName()
Person.Gender
getGender()
int
getId()
String
getLastName()
Double
getMoney()
boolean
isMarried()
void
setBirthday(Date birthday)
void
setDescription(String description)
void
setFirstName(String firstName)
void
setGender(Person.Gender gender)
void
setLastName(String lastName)
void
setMarried(boolean married)
void
setMoney(Double money)
-
-
-
Constructor Detail
-
Person
public Person(int id)
-
Person
public Person(int id, String firstName, String lastName, Person.Gender gender, boolean married, Date birthday)
-
Person
public Person(int id, String firstName, String lastName, Person.Gender gender, boolean married, Date birthday, Double money)
-
-
Method Detail
-
getId
public int getId()
- Returns:
- the id
-
getFirstName
public String getFirstName()
- Returns:
- the firstName
-
setFirstName
public void setFirstName(String firstName)
- Parameters:
firstName
- the firstName to set
-
getLastName
public String getLastName()
- Returns:
- the lastName
-
setLastName
public void setLastName(String lastName)
- Parameters:
lastName
- the lastName to set
-
getGender
public Person.Gender getGender()
- Returns:
- the gender
-
setGender
public void setGender(Person.Gender gender)
- Parameters:
gender
- the gender to set
-
isMarried
public boolean isMarried()
- Returns:
- the married
-
setMarried
public void setMarried(boolean married)
- Parameters:
married
- the married to set
-
getBirthday
public Date getBirthday()
- Returns:
- the birthday
-
setBirthday
public void setBirthday(Date birthday)
- Parameters:
birthday
- the birthday to set
-
getMoney
public Double getMoney()
- Returns:
- the money
-
setMoney
public void setMoney(Double money)
- Parameters:
money
- the money to set
-
getDescription
public String getDescription()
- Returns:
- the description
-
setDescription
public void setDescription(String description)
- Parameters:
description
- the description to set
-
-