|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface SelectionList
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(org.outerx.daisy.x10.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. |
String |
getLabel(Object value,
Locale locale)
Deprecated. use getItemLabel(java.lang.Object, java.util.Locale) instead. |
| Method Detail |
|---|
List<? extends ListItem> getItems()
By preference, you should use the method getItems(long, long, java.util.Locale).
This method will fail if the selection list implementation requires a branch
and language.
List<? extends ListItem> getItems(long branchId,
long languageId,
Locale locale)
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.
branchId - the branch of the document that is being editedlanguageId - the language of the document that is being edited
String getLabel(Object value,
Locale locale)
getItemLabel(java.lang.Object, java.util.Locale) instead.
String getItemLabel(Object value,
Locale locale)
void addToFieldTypeXml(org.outerx.daisy.x10.SelectionListDocument.SelectionList selectionListXml)
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||