Just a test class that returns columns of data that are useful for testing out the ListTag class and ListColumn
class.
| Method from org.displaytag.sample.ListObject Detail: |
public Date getDate() {
return (Date) this.date.clone();
}
|
public String getDescription() {
return this.description;
}
|
public String getEmail() {
return this.email;
}
|
public int getId() {
return this.id;
}
|
public String getLongDescription() {
return this.longDescription;
}
getter for long description. |
public double getMoney() {
return this.money;
}
|
public String getName() {
return this.name;
}
|
public String getNullValue() {
return null;
}
|
public String getStatus() {
return this.status;
}
|
public List getSubList() {
return this.subList;
}
|
public String getUrl() {
return this.url;
}
|
public void setEmail(String value) {
this.email = value;
}
|
public void setId(int value) {
this.id = value;
}
|
public String toDetailedString() {
return "ID: " //$NON-NLS-1$
+ this.id + "\n" //$NON-NLS-1$
+ "Name: " //$NON-NLS-1$
+ this.name + "\n" //$NON-NLS-1$
+ "Email: " //$NON-NLS-1$
+ this.email + "\n" //$NON-NLS-1$
+ "Date: " //$NON-NLS-1$
+ this.date + "\n" //$NON-NLS-1$
+ "Money: " //$NON-NLS-1$
+ this.money + "\n" //$NON-NLS-1$
+ "Description: " //$NON-NLS-1$
+ this.description + "\n" //$NON-NLS-1$
+ "Status: " //$NON-NLS-1$
+ this.status + "\n" //$NON-NLS-1$
+ "URL: " //$NON-NLS-1$
+ this.url + "\n"; //$NON-NLS-1$
}
Returns a detailed string representation of the object. |
public String toString() {
return "ListObject(" + this.id + ")"; //$NON-NLS-1$ //$NON-NLS-2$
}
Returns a simple string representation of the object. |