Class EditorRenderer<T>

    • Constructor Detail

      • EditorRenderer

        public EditorRenderer​(Editor<T> editor,
                              String columnInternalId)
        Creates a new renderer for a specific column.
        Parameters:
        editor - the Grid's editor
        columnInternalId - the internal Id of the column that uses this data generator
    • Method Detail

      • setComponentFunction

        public void setComponentFunction​(com.vaadin.flow.function.SerializableFunction<T,​? extends com.vaadin.flow.component.Component> componentFunction)
        Sets the function that creates components to be used as editors for the column. When set to null, an empty component is used instead.
        Parameters:
        componentFunction - the function that generates editor components
      • generateData

        public void generateData​(T item,
                                 elemental.json.JsonObject jsonObject)
        Specified by:
        generateData in interface com.vaadin.flow.data.provider.DataGenerator<T>
      • refreshData

        public void refreshData​(T item)
        Specified by:
        refreshData in interface com.vaadin.flow.data.provider.DataGenerator<T>
      • render

        public Rendering<T> render​(com.vaadin.flow.dom.Element container,
                                   com.vaadin.flow.data.provider.DataKeyMapper<T> keyMapper,
                                   com.vaadin.flow.dom.Element contentTemplate)
        Overrides:
        render in class Renderer<T>