Class TodoList.TodoItem
- java.lang.Object
-
- org.apache.wicket.examples.ajax.builtin.TodoList.TodoItem
-
- All Implemented Interfaces:
Serializable,IClusterable
- Enclosing class:
- TodoList
public static class TodoList.TodoItem extends Object implements IClusterable
The todo object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TodoItem()Constructor.TodoItem(TodoList.TodoItem item)Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetText()Gets the description of the item.booleanisChecked()voidsetChecked(boolean checked)Sets the checked property.voidsetText(String text)Sets the description of the item.
-
-
-
Constructor Detail
-
TodoItem
public TodoItem()
Constructor.
-
TodoItem
public TodoItem(TodoList.TodoItem item)
Copy constructor.- Parameters:
item- the item to copy the values from.
-
-
Method Detail
-
isChecked
public boolean isChecked()
- Returns:
- Returns the checked property.
-
setChecked
public void setChecked(boolean checked)
Sets the checked property.- Parameters:
checked- The checked property to set.
-
getText
public String getText()
Gets the description of the item.- Returns:
- Returns the text.
-
setText
public void setText(String text)
Sets the description of the item.- Parameters:
text- The text to set.
-
-