|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.xpn.xwiki.objects.classes.ListItem
public class ListItem
An entry in a List or in a Tree.
Field Summary | |
---|---|
protected static Comparator<ListItem> |
ID_COMPARATOR
Comparator that orders list items on their identifiers, keeping null items at the end. |
protected static Comparator<ListItem> |
VALUE_COMPARATOR
Comparator that orders list items on their values, keeping null items at the end. |
Constructor Summary | |
---|---|
ListItem(String id)
Constructor that initializes both the internal ID and the displayed value with the
same value, leaving the parent field empty. |
|
ListItem(String id,
String value)
Constructor that initializes the internal ID and the displayed value , leaving the
parent field empty. |
|
ListItem(String id,
String value,
String parent)
Constructor that initializes all of the internal ID , the displayed value , and the
parent fields. |
Method Summary | |
---|---|
String |
getId()
|
String |
getParent()
|
String |
getValue()
|
void |
setId(String id)
|
void |
setParent(String parent)
|
void |
setValue(String value)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final Comparator<ListItem> ID_COMPARATOR
protected static final Comparator<ListItem> VALUE_COMPARATOR
Constructor Detail |
---|
public ListItem(String id)
internal ID
and the displayed value
with the
same value, leaving the parent
field empty.
id
- the value to use for the id and the displayed valuepublic ListItem(String id, String value)
internal ID
and the displayed value
, leaving the
parent
field empty.
id
- the value to use for the internal idvalue
- the value to use for the displayed valuepublic ListItem(String id, String value, String parent)
internal ID
, the displayed value
, and the
parent
fields.
id
- the value to use for the internal idvalue
- the value to use for the displayed valueparent
- the value to use for the item's parentMethod Detail |
---|
public String getId()
public void setId(String id)
public String getValue()
public void setValue(String value)
public String getParent()
public void setParent(String parent)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |