Class Comment
- java.lang.Object
-
- org.apache.wicket.examples.guestbook.Comment
-
- All Implemented Interfaces:
Serializable,IClusterable
public class Comment extends Object implements IClusterable
Simple "POJO" bean for guestbook comments.- Author:
- Jonathan Locke
- See Also:
- Serialized Form
-
-
Constructor Detail
-
Comment
public Comment()
Constructor
-
Comment
public Comment(Comment comment)
Copy constructor- Parameters:
comment- The comment to copy
-
-
Method Detail
-
getText
public String getText()
- Returns:
- Returns the text.
-
setText
public void setText(String text)
- Parameters:
text- The text to set.
-
getDate
public Date getDate()
- Returns:
- Returns the date.
-
setDate
public void setDate(Date date)
- Parameters:
date- The date to set.
-
toString
public String toString()
- Overrides:
toStringin classObject- See Also:
Object.toString()
-
-