Package io.jmix.ui.component.renderer
Class ClickableTextRendererImpl<T>
java.lang.Object
io.jmix.ui.component.impl.AbstractDataGrid.AbstractRenderer<T,V>
io.jmix.ui.component.renderer.AbstractClickableRenderer<T,String>
io.jmix.ui.component.renderer.ClickableTextRendererImpl<T>
- All Implemented Interfaces:
DataGrid.ClickableTextRenderer<T>
,DataGrid.HasNullRepresentation
,DataGrid.HasRendererClickListener<T>
,DataGrid.Renderer
,RendererWrapper<String>
@Component("ui_ClickableTextRenderer")
@Scope("prototype")
public class ClickableTextRendererImpl<T>
extends AbstractClickableRenderer<T,String>
implements DataGrid.ClickableTextRenderer<T>
A renderer for presenting simple plain-text string values as a link with call back handler.
-
Field Summary
Fields inherited from class io.jmix.ui.component.renderer.AbstractClickableRenderer
listener
Fields inherited from class io.jmix.ui.component.impl.AbstractDataGrid.AbstractRenderer
dataGrid, nullRepresentation, renderer
Fields inherited from interface io.jmix.ui.component.DataGrid.ClickableTextRenderer
NAME
-
Constructor Summary
ConstructorDescriptionClickableTextRendererImpl
(String nullRepresentation) ClickableTextRendererImpl
(Consumer<DataGrid.RendererClickEvent<T>> listener, String nullRepresentation) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
copy
(DataGrid.Renderer existingRenderer) protected com.vaadin.ui.renderers.Renderer<String>
Null representation for the renderer.void
setNullRepresentation
(String nullRepresentation) Sets null representation for the renderer.Methods inherited from class io.jmix.ui.component.renderer.AbstractClickableRenderer
createClickListenerWrapper, setRendererClickListener
Methods inherited from class io.jmix.ui.component.impl.AbstractDataGrid.AbstractRenderer
checkRendererNotSet, getColumnByGridColumn, getDataGrid, getImplementation, getPresentationValueProvider, resetImplementation, setDataGrid
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.DataGrid.HasRendererClickListener
setRendererClickListener
-
Constructor Details
-
ClickableTextRendererImpl
public ClickableTextRendererImpl() -
ClickableTextRendererImpl
-
ClickableTextRendererImpl
-
ClickableTextRendererImpl
public ClickableTextRendererImpl(@Nullable Consumer<DataGrid.RendererClickEvent<T>> listener, String nullRepresentation)
-
-
Method Details
-
createImplementation
- Specified by:
createImplementation
in classAbstractDataGrid.AbstractRenderer<T,
String>
-
copy
- Specified by:
copy
in classAbstractDataGrid.AbstractRenderer<T,
String>
-
getNullRepresentation
Description copied from interface:DataGrid.HasNullRepresentation
Null representation for the renderer.- Specified by:
getNullRepresentation
in interfaceDataGrid.HasNullRepresentation
- Overrides:
getNullRepresentation
in classAbstractDataGrid.AbstractRenderer<T,
String> - 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<T,
String> - Parameters:
nullRepresentation
- a textual representation ofnull
-