Package io.jmix.ui.component.renderer
Class LocalDateTimeRendererImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractDataGrid.AbstractRenderer<Object,LocalDateTime>
io.jmix.ui.component.renderer.LocalDateTimeRendererImpl
- All Implemented Interfaces:
DataGrid.HasDateTimeFormatter
,DataGrid.HasLocale
,DataGrid.HasNullRepresentation
,DataGrid.LocalDateTimeRenderer
,DataGrid.Renderer
,RendererWrapper<LocalDateTime>
@Component("ui_LocalDateTimeRenderer")
@Scope("prototype")
public class LocalDateTimeRendererImpl
extends AbstractDataGrid.AbstractRenderer<Object,LocalDateTime>
implements DataGrid.LocalDateTimeRenderer
A renderer for presenting LocalDateTime 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.LocalDateTimeRenderer
NAME
-
Constructor Summary
ConstructorDescriptionLocalDateTimeRendererImpl
(String formatPattern) LocalDateTimeRendererImpl
(String formatPattern, String nullRepresentation) LocalDateTimeRendererImpl
(String formatPattern, Locale locale) LocalDateTimeRendererImpl
(String formatPattern, Locale locale, String nullRepresentation) LocalDateTimeRendererImpl
(DateTimeFormatter formatter) LocalDateTimeRendererImpl
(DateTimeFormatter formatter, String nullRepresentation) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
copy
(DataGrid.Renderer existingRenderer) protected com.vaadin.ui.renderers.LocalDateTimeRenderer
com.vaadin.ui.renderers.LocalDateTimeRenderer
Null representation for the renderer.void
setCurrentAuthentication
(CurrentAuthentication currentAuthentication) void
setFormatPattern
(String formatPattern) void
setFormatter
(DateTimeFormatter formatter) void
Sets the locale in which to present values.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
-
LocalDateTimeRendererImpl
public LocalDateTimeRendererImpl() -
LocalDateTimeRendererImpl
-
LocalDateTimeRendererImpl
-
LocalDateTimeRendererImpl
-
LocalDateTimeRendererImpl
-
LocalDateTimeRendererImpl
-
LocalDateTimeRendererImpl
-
-
Method Details
-
setCurrentAuthentication
-
getImplementation
public com.vaadin.ui.renderers.LocalDateTimeRenderer getImplementation()- Specified by:
getImplementation
in interfaceRendererWrapper<LocalDateTime>
- Overrides:
getImplementation
in classAbstractDataGrid.AbstractRenderer<Object,
LocalDateTime>
-
createImplementation
protected com.vaadin.ui.renderers.LocalDateTimeRenderer createImplementation()- Specified by:
createImplementation
in classAbstractDataGrid.AbstractRenderer<Object,
LocalDateTime>
-
copy
- Specified by:
copy
in classAbstractDataGrid.AbstractRenderer<Object,
LocalDateTime>
-
getNullRepresentation
Description copied from interface:DataGrid.HasNullRepresentation
Null representation for the renderer.- Specified by:
getNullRepresentation
in interfaceDataGrid.HasNullRepresentation
- Overrides:
getNullRepresentation
in classAbstractDataGrid.AbstractRenderer<Object,
LocalDateTime> - 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,
LocalDateTime> - Parameters:
nullRepresentation
- a textual representation ofnull
-
getLocale
- Specified by:
getLocale
in interfaceDataGrid.HasLocale
- Returns:
- the locale which is used to present values
-
setLocale
Description copied from interface:DataGrid.HasLocale
Sets the locale in which to present values.- Specified by:
setLocale
in interfaceDataGrid.HasLocale
- Parameters:
locale
- the locale in which to present values
-
getFormatPattern
- Specified by:
getFormatPattern
in interfaceDataGrid.HasDateTimeFormatter
- Returns:
- the pattern describing the date format
-
setFormatPattern
- Specified by:
setFormatPattern
in interfaceDataGrid.HasDateTimeFormatter
- Parameters:
formatPattern
- the pattern describing the date and time format which will be used to createDateTimeFormatter
instance.- See Also:
-
getFormatter
- Specified by:
getFormatter
in interfaceDataGrid.HasDateTimeFormatter
- Returns:
- the instance of
DateTimeFormatter
which is used to present dates
-
setFormatter
- Specified by:
setFormatter
in interfaceDataGrid.HasDateTimeFormatter
- Parameters:
formatter
- the instance ofDateTimeFormatter
with which to present dates
-