public class ListItem extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
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)
|
protected static final Comparator<ListItem> ID_COMPARATOR
protected static final Comparator<ListItem> VALUE_COMPARATOR
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 valueCopyright © 2004–2021 XWiki. All rights reserved.