Class SelectModelFactoryImpl

    • Method Detail

      • create

        public SelectModel create​(java.util.List<?> objects,
                                  java.lang.String labelProperty)
        Description copied from interface: SelectModelFactory
        Creates a SelectModel from a list of objects of the same type and a label property name. The returned model creates for every object in the list a selectable option and relies on existing ValueEncoder for the object type. The value of the label property is used as user-presentable label for the option.
        Specified by:
        create in interface SelectModelFactory
        Parameters:
        objects - objects to create model from
        labelProperty - property for the client-side value
        Returns:
        the model
      • create

        public SelectModel create​(java.util.List<?> objects)
        Description copied from interface: SelectModelFactory
        Creates a SelectModel from a list of objects of the same type. The returned model creates for every object in the list a selectable option and relies on existing ValueEncoder for the object type.
        Specified by:
        create in interface SelectModelFactory
        Parameters:
        objects - objects to create model from
        Returns:
        the model