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, renderer
Fields inherited from interface io.jmix.ui.component.DataGrid.TextRenderer
NAME
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
copy
(DataGrid.Renderer existingRenderer) protected com.vaadin.ui.renderers.TextRenderer
com.vaadin.ui.renderers.TextRenderer
Null representation for the renderer.void
setNullRepresentation
(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:
getImplementation
in interfaceRendererWrapper<Object>
- Overrides:
getImplementation
in classAbstractDataGrid.AbstractRenderer<Object,
Object>
-
createImplementation
protected com.vaadin.ui.renderers.TextRenderer createImplementation()- Specified by:
createImplementation
in classAbstractDataGrid.AbstractRenderer<Object,
Object>
-
copy
- Specified by:
copy
in classAbstractDataGrid.AbstractRenderer<Object,
Object>
-
getNullRepresentation
Description copied from interface:DataGrid.HasNullRepresentation
Null representation for the renderer.- Specified by:
getNullRepresentation
in interfaceDataGrid.HasNullRepresentation
- Overrides:
getNullRepresentation
in classAbstractDataGrid.AbstractRenderer<Object,
Object> - Returns:
- a textual representation of
null
-
setNullRepresentation
Description copied from interface:DataGrid.HasNullRepresentation
Sets null representation for the renderer.- Specified by:
setNullRepresentation
in interfaceDataGrid.HasNullRepresentation
- Overrides:
setNullRepresentation
in classAbstractDataGrid.AbstractRenderer<Object,
Object> - Parameters:
nullRepresentation
- a textual representation ofnull
-