Class CmsListItem

java.lang.Object
org.opencms.workplace.list.CmsListItem

public class CmsListItem extends Object
Generic list item.

Since:
6.0.0
  • Constructor Details

    • CmsListItem

      public CmsListItem(CmsListMetadata metadata, String id)
      Default Constructor.

      Parameters:
      id - the id of the item has to be unique
      metadata - the corresponding list definition
  • Method Details

    • get

      public Object get(String columnId) throws org.opencms.main.CmsIllegalArgumentException
      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 given columnId is invalid
    • getId

      public String 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 id
      value - the value to display
      Returns:
      the previous value, or null if not set
      Throws:
      org.opencms.main.CmsIllegalArgumentException - if the given columnId is invalid
    • toString

      public String toString()
      Overrides:
      toString in class Object
      See Also: