Package de.xima.fc.gui.component.tagify
Interface IListConverter
-
- All Known Implementing Classes:
AStringListConverter
,DefaultListConverter
,DelimitedStringListConverter
,MailAddressListConverter
,PlaceholderStringListConverter
public interface IListConverter
A converter for theTagify
component. Normally, a list is used as the model for the tag list. If a different type needs to be used (such as a comma separated string), a list converter must be specified that can convert between the list of tags and the internal model representation.- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Object>
convertToList(Object value)
Converts the model value of the backing bean to a list of tags.Object
convertToObject(List<Object> list)
Converts the list of tags to the model value of the backing bean.
-
-
-
Method Detail
-
convertToList
List<Object> convertToList(Object value)
Converts the model value of the backing bean to a list of tags. The items in the returned list must be compatible with the converter specified for the tagify component (UIOutput.setConverter(javax.faces.convert.Converter)
).- Parameters:
value
- The model value, as returned byUIInput.getValue()
.- Returns:
- A list of tags to render.
-
convertToObject
Object convertToObject(List<Object> list)
Converts the list of tags to the model value of the backing bean. The items in the list are of the same type as returned by the converter specified for the tagify componentUIOutput.getConverter()
.- Parameters:
list
- The current list of tags.- Returns:
- The model value that will be set on the backing bean.
-
-