Daisy Open Source CMS

org.outerj.daisy.repository.schema
Interface StaticListItemParent

All Known Subinterfaces:
StaticListItem, StaticSelectionList

public interface StaticListItemParent

Methods shared by objects that contain child static list items.


Method Summary
 void addItem(Object value)
          Deprecated. This method does exactly the same as createItem(Object), except that the created list item is not returned.
 void clear()
          Removes all child items.
 StaticListItem createItem(Object value)
          Creates a StaticListItem instance, adds it to this selection list and returns it.
 StaticListItem getItem(Object value)
           
 String getItemLabel(Object value, Locale locale)
           
 

Method Detail

addItem

void addItem(Object value)
             throws Exception
Deprecated. This method does exactly the same as createItem(Object), except that the created list item is not returned.

Adds a child item.

Throws:
Exception

clear

void clear()
Removes all child items.


createItem

StaticListItem createItem(Object value)
Creates a StaticListItem instance, adds it to this selection list and returns it.

Calling this on an list item is only possible if the selection list belongs to a hierarchical field type.


getItem

StaticListItem getItem(Object value)

getItemLabel

String getItemLabel(Object value,
                    Locale locale)

Daisy Open Source CMS