ITEM - the type of the input object that can be used by the rendered
componentpublic class IconRenderer<ITEM> extends ComponentRenderer<com.vaadin.flow.component.Component,ITEM>
| Constructor and Description |
|---|
IconRenderer(com.vaadin.flow.function.SerializableFunction<ITEM,? extends com.vaadin.flow.component.Component> iconGenerator)
Creates a new renderer instance using the default
ItemLabelGenerator: String::valueOf and the provided
iconGenerator. |
IconRenderer(com.vaadin.flow.function.SerializableFunction<ITEM,? extends com.vaadin.flow.component.Component> iconGenerator,
com.vaadin.flow.component.ItemLabelGenerator<ITEM> itemLabelGenerator)
Creates a new renderer instance using the provided
iconGenerator
and itemLabelGenerator. |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.component.Component |
createComponent(ITEM item)
Creates a component for a given object model item.
|
render, setComponentRendererTag, updateComponentgetEventHandlers, getValueProviders, render, setEventHandler, setPropertypublic IconRenderer(com.vaadin.flow.function.SerializableFunction<ITEM,? extends com.vaadin.flow.component.Component> iconGenerator)
ItemLabelGenerator: String::valueOf and the provided
iconGenerator.iconGenerator - the icon component generatorpublic IconRenderer(com.vaadin.flow.function.SerializableFunction<ITEM,? extends com.vaadin.flow.component.Component> iconGenerator, com.vaadin.flow.component.ItemLabelGenerator<ITEM> itemLabelGenerator)
iconGenerator
and itemLabelGenerator.iconGenerator - the icon component generatoritemLabelGenerator - the item label generatorpublic com.vaadin.flow.component.Component createComponent(ITEM item)
ComponentRenderercreateComponent in class ComponentRenderer<com.vaadin.flow.component.Component,ITEM>item - the model item, possibly nullCopyright © 2022. All rights reserved.