java.lang.Object
com.hack23.cia.web.impl.ui.application.views.common.converters.ListPropertyConverter
All Implemented Interfaces:
com.vaadin.data.Converter<String,List<?>>, com.vaadin.data.ValueProvider<Object,String>, com.vaadin.server.SerializableFunction<Object,String>, Serializable, Function<Object,String>

public final class ListPropertyConverter extends Object implements com.vaadin.data.Converter<String,List<?>>, com.vaadin.data.ValueProvider<Object,String>
The Class ListPropertyRenderer.
See Also:
  • Constructor Details

    • ListPropertyConverter

      public ListPropertyConverter(String property, String column)
      Instantiates a new collection property converter.
      Parameters:
      property - the property
      column - the column
    • ListPropertyConverter

      public ListPropertyConverter(String property, String column, String fallbackColumn)
      Instantiates a new list property converter.
      Parameters:
      property - the property
      column - the column
      fallbackColumn - the fallback column
  • Method Details

    • apply

      public String apply(Object source)
      Specified by:
      apply in interface Function<Object,String>
      Specified by:
      apply in interface com.vaadin.data.ValueProvider<Object,String>
    • convertToModel

      public com.vaadin.data.Result<List<?>> convertToModel(String value, com.vaadin.data.ValueContext context)
      Specified by:
      convertToModel in interface com.vaadin.data.Converter<String,List<?>>
    • convertToPresentation

      public String convertToPresentation(List value, com.vaadin.data.ValueContext context)
      Specified by:
      convertToPresentation in interface com.vaadin.data.Converter<String,List<?>>
    • getColumn

      public String getColumn()
      Gets the column.
      Returns:
      the column