protected class CheckBoxList.CheckBoxListItem
extends java.lang.Object
| Constructor and Description |
|---|
CheckBoxListItem(java.lang.Object o)
initializes the item with the given object and initially unchecked
|
CheckBoxListItem(java.lang.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(java.lang.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
|
java.lang.Object |
getContent()
returns the content object
|
void |
setChecked(boolean value)
sets the checked state of the item
|
java.lang.String |
toString()
returns the string representation of the content object
|
public CheckBoxListItem(java.lang.Object o)
o - the content objectpublic CheckBoxListItem(java.lang.Object o,
boolean checked)
o - the content objectchecked - whether the item should be checked initiallypublic java.lang.Object getContent()
public void setChecked(boolean value)
public boolean getChecked()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the CheckBoxListItem to checkjava.lang.IllegalArgumentException - if the provided object is not a
CheckBoxListItem