Package org.opencms.workplace.list
Class CmsListItem
java.lang.Object
org.opencms.workplace.list.CmsListItem
Generic list item.
- Since:
- 6.0.0
-
Constructor Details
-
CmsListItem
Default Constructor.- Parameters:
metadata- the corresponding list definitionid- the id of the item has to be unique
-
-
Method Details
-
get
Returns the value of the column for this item.- Parameters:
columnId- the column id- Returns:
- the content, may be
null - Throws:
org.opencms.main.CmsIllegalArgumentException- if the givencolumnIdis invalid
-
getId
Returns the id of the item.- Returns:
- the id
- See Also:
-
getMetadata
Returns the meta data.- Returns:
- the meta data
-
getValues
Returns the value map of the list item.- Returns:
- the value map of the list item
-
set
public Object set(String columnId, Object value) throws org.opencms.main.CmsIllegalArgumentException Sets the object to display at the given column.- Parameters:
columnId- the column idvalue- the value to display- Returns:
- the previous value, or
nullif not set - Throws:
org.opencms.main.CmsIllegalArgumentException- if the givencolumnIdis invalid
-
toString
-