@Component(value="ui_LocalDateTimeRenderer") @Scope(value="prototype") public class LocalDateTimeRendererImpl extends AbstractDataGrid.AbstractRenderer<java.lang.Object,java.time.LocalDateTime> implements DataGrid.LocalDateTimeRenderer
dataGrid, nullRepresentation, renderer
NAME
Constructor and Description |
---|
LocalDateTimeRendererImpl() |
LocalDateTimeRendererImpl(java.time.format.DateTimeFormatter formatter) |
LocalDateTimeRendererImpl(java.time.format.DateTimeFormatter formatter,
java.lang.String nullRepresentation) |
LocalDateTimeRendererImpl(java.lang.String formatPattern) |
LocalDateTimeRendererImpl(java.lang.String formatPattern,
java.util.Locale locale) |
LocalDateTimeRendererImpl(java.lang.String formatPattern,
java.util.Locale locale,
java.lang.String nullRepresentation) |
LocalDateTimeRendererImpl(java.lang.String formatPattern,
java.lang.String nullRepresentation) |
Modifier and Type | Method and Description |
---|---|
protected void |
copy(DataGrid.Renderer existingRenderer) |
protected com.vaadin.ui.renderers.LocalDateTimeRenderer |
createImplementation() |
java.lang.String |
getFormatPattern() |
java.time.format.DateTimeFormatter |
getFormatter() |
com.vaadin.ui.renderers.LocalDateTimeRenderer |
getImplementation() |
java.util.Locale |
getLocale() |
java.lang.String |
getNullRepresentation()
Null representation for the renderer.
|
void |
setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication) |
void |
setFormatPattern(java.lang.String formatPattern) |
void |
setFormatter(java.time.format.DateTimeFormatter formatter) |
void |
setLocale(java.util.Locale locale)
Sets the locale in which to present values.
|
void |
setNullRepresentation(java.lang.String nullRepresentation)
Sets null representation for the renderer.
|
checkRendererNotSet, getColumnByGridColumn, getDataGrid, getPresentationValueProvider, resetImplementation, setDataGrid
public LocalDateTimeRendererImpl()
public LocalDateTimeRendererImpl(java.lang.String formatPattern)
public LocalDateTimeRendererImpl(java.lang.String formatPattern, java.lang.String nullRepresentation)
public LocalDateTimeRendererImpl(java.lang.String formatPattern, java.util.Locale locale)
public LocalDateTimeRendererImpl(java.lang.String formatPattern, @Nullable java.util.Locale locale, java.lang.String nullRepresentation)
public LocalDateTimeRendererImpl(java.time.format.DateTimeFormatter formatter)
public LocalDateTimeRendererImpl(java.time.format.DateTimeFormatter formatter, java.lang.String nullRepresentation)
@Autowired public void setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication)
public com.vaadin.ui.renderers.LocalDateTimeRenderer getImplementation()
getImplementation
in interface RendererWrapper<java.time.LocalDateTime>
getImplementation
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.time.LocalDateTime>
protected com.vaadin.ui.renderers.LocalDateTimeRenderer createImplementation()
createImplementation
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.time.LocalDateTime>
protected void copy(DataGrid.Renderer existingRenderer)
copy
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.time.LocalDateTime>
public java.lang.String getNullRepresentation()
DataGrid.HasNullRepresentation
getNullRepresentation
in interface DataGrid.HasNullRepresentation
getNullRepresentation
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.time.LocalDateTime>
null
public void setNullRepresentation(java.lang.String nullRepresentation)
DataGrid.HasNullRepresentation
setNullRepresentation
in interface DataGrid.HasNullRepresentation
setNullRepresentation
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.time.LocalDateTime>
nullRepresentation
- a textual representation of null
public java.util.Locale getLocale()
getLocale
in interface DataGrid.HasLocale
public void setLocale(java.util.Locale locale)
DataGrid.HasLocale
setLocale
in interface DataGrid.HasLocale
locale
- the locale in which to present valuespublic java.lang.String getFormatPattern()
getFormatPattern
in interface DataGrid.HasDateTimeFormatter
public void setFormatPattern(java.lang.String formatPattern)
setFormatPattern
in interface DataGrid.HasDateTimeFormatter
formatPattern
- the pattern describing the date and time format
which will be used to create DateTimeFormatter
instance.public java.time.format.DateTimeFormatter getFormatter()
getFormatter
in interface DataGrid.HasDateTimeFormatter
DateTimeFormatter
which is used to present datespublic void setFormatter(java.time.format.DateTimeFormatter formatter)
setFormatter
in interface DataGrid.HasDateTimeFormatter
formatter
- the instance of DateTimeFormatter
with which to present dates