| org.outerj.daisy.repository.schema.SelectionList
SelectionList | public interface SelectionList (Code) | | A list of values from which one can be selected by the end-user.
This SelectionList consists of ListItems.
Important for implementations: the equals method should be implemented.
Two selection lists are considered equal if their defining data is equals (e.g.
in case of a query-based selection list, this means e.g. the queries are the same,
not the actual list-items generated from them).
|
Method Summary | |
void | addToFieldTypeXml(SelectionListDocument.SelectionList selectionListXml) | String | getItemLabel(Object value, Locale locale) Returns the label defined in the selection list for the given value,
or null if not available. | List<? extends ListItem> | getItems() Gets the selection list items. | List<? extends ListItem> | getItems(long branchId, long languageId, Locale locale) Gets the selection list items.
Some selection list implementations might want to filter the items
based on the branch and language of the context in which this selection
list is used (= typically the document that is being edited). | String | getLabel(Object value, Locale locale) |
addToFieldTypeXml | void addToFieldTypeXml(SelectionListDocument.SelectionList selectionListXml)(Code) | | |
getItemLabel | String getItemLabel(Object value, Locale locale)(Code) | | Returns the label defined in the selection list for the given value,
or null if not available.
|
getItems | List<? extends ListItem> getItems(long branchId, long languageId, Locale locale)(Code) | | Gets the selection list items.
Some selection list implementations might want to filter the items
based on the branch and language of the context in which this selection
list is used (= typically the document that is being edited). Therefore,
it is important that the branch and language or specified.
Parameters: branchId - the branch of the document that is being edited Parameters: languageId - the language of the document that is being edited |
|
|