Class CollectionFormatter
java.lang.Object
io.jmix.flowui.component.formatter.CollectionFormatter
- All Implemented Interfaces:
Formatter<Collection<?>>
,Function<Collection<?>,
String>
@Component("flowui_CollectionFormatter")
@Scope("prototype")
public class CollectionFormatter
extends Object
implements Formatter<Collection<?>>
Collection formatter to be used in view descriptors and controllers.
This formatter formats collection into a string where the elements of the collection are separated by commas.
-
Field Details
-
metadataTools
-
-
Constructor Details
-
CollectionFormatter
-
-
Method Details
-
apply
Description copied from interface:Formatter
Formats a value to a string.- Specified by:
apply
in interfaceFormatter<Collection<?>>
- Specified by:
apply
in interfaceFunction<Collection<?>,
String> - Parameters:
value
- a value- Returns:
- formatted string
-