Package io.jmix.ui.component.renderer
Class TextRendererImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractDataGrid.AbstractRenderer<Object,Object>
io.jmix.ui.component.renderer.TextRendererImpl
- All Implemented Interfaces:
DataGrid.HasNullRepresentation,DataGrid.Renderer,DataGrid.TextRenderer,RendererWrapper<Object>
@Component("ui_TextRenderer")
@Scope("prototype")
public class TextRendererImpl
extends AbstractDataGrid.AbstractRenderer<Object,Object>
implements DataGrid.TextRenderer
A renderer for presenting simple plain-text string values.
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractDataGrid.AbstractRenderer
dataGrid, nullRepresentation, rendererFields inherited from interface io.jmix.ui.component.DataGrid.TextRenderer
NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopy(DataGrid.Renderer existingRenderer) protected com.vaadin.ui.renderers.TextRenderercom.vaadin.ui.renderers.TextRendererNull representation for the renderer.voidsetNullRepresentation(String nullRepresentation) Sets null representation for the renderer.Methods inherited from class io.jmix.ui.component.impl.AbstractDataGrid.AbstractRenderer
checkRendererNotSet, getColumnByGridColumn, getDataGrid, getPresentationValueProvider, resetImplementation, setDataGrid
-
Constructor Details
-
TextRendererImpl
public TextRendererImpl() -
TextRendererImpl
-
-
Method Details
-
getImplementation
public com.vaadin.ui.renderers.TextRenderer getImplementation()- Specified by:
getImplementationin interfaceRendererWrapper<Object>- Overrides:
getImplementationin classAbstractDataGrid.AbstractRenderer<Object,Object>
-
createImplementation
protected com.vaadin.ui.renderers.TextRenderer createImplementation()- Specified by:
createImplementationin classAbstractDataGrid.AbstractRenderer<Object,Object>
-
copy
- Specified by:
copyin classAbstractDataGrid.AbstractRenderer<Object,Object>
-
getNullRepresentation
Description copied from interface:DataGrid.HasNullRepresentationNull representation for the renderer.- Specified by:
getNullRepresentationin interfaceDataGrid.HasNullRepresentation- Overrides:
getNullRepresentationin classAbstractDataGrid.AbstractRenderer<Object,Object> - Returns:
- a textual representation of
null
-
setNullRepresentation
Description copied from interface:DataGrid.HasNullRepresentationSets null representation for the renderer.- Specified by:
setNullRepresentationin interfaceDataGrid.HasNullRepresentation- Overrides:
setNullRepresentationin classAbstractDataGrid.AbstractRenderer<Object,Object> - Parameters:
nullRepresentation- a textual representation ofnull
-