protected class CheckBoxList.CheckBoxListItem extends Object
Constructor and Description |
---|
CheckBoxListItem(Object o)
initializes the item with the given object and initially unchecked
|
CheckBoxListItem(Object o,
boolean checked)
initializes the item with the given object and whether it's checked
initially
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
returns true if the "payload" objects of the current and the given
CheckBoxListItem are the same.
|
boolean |
getChecked()
returns the checked state of the item
|
Object |
getContent()
returns the content object
|
void |
setChecked(boolean value)
sets the checked state of the item
|
String |
toString()
returns the string representation of the content object
|
public CheckBoxListItem(Object o)
o
- the content objectpublic CheckBoxListItem(Object o, boolean checked)
o
- the content objectchecked
- whether the item should be checked initiallypublic Object getContent()
public void setChecked(boolean value)
public boolean getChecked()
public String toString()
public boolean equals(Object o)
equals
in class Object
o
- the CheckBoxListItem to checkIllegalArgumentException
- if the provided object is not a CheckBoxListItemCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.