@Component(value="ui_DateRenderer") @Scope(value="prototype") public class DateRendererImpl extends AbstractDataGrid.AbstractRenderer<java.lang.Object,java.util.Date> implements DataGrid.DateRenderer
dataGrid, nullRepresentation, renderer
NAME
Constructor and Description |
---|
DateRendererImpl() |
DateRendererImpl(java.text.DateFormat dateFormat) |
DateRendererImpl(java.text.DateFormat dateFormat,
java.lang.String nullRepresentation) |
DateRendererImpl(java.lang.String formatString) |
DateRendererImpl(java.lang.String formatString,
java.util.Locale locale) |
DateRendererImpl(java.lang.String formatString,
java.util.Locale locale,
java.lang.String nullRepresentation) |
DateRendererImpl(java.lang.String formatString,
java.lang.String nullRepresentation) |
Modifier and Type | Method and Description |
---|---|
protected void |
copy(DataGrid.Renderer existingRenderer) |
protected com.vaadin.ui.renderers.DateRenderer |
createImplementation() |
java.text.DateFormat |
getDateFormat() |
java.lang.String |
getFormatString() |
com.vaadin.ui.renderers.DateRenderer |
getImplementation() |
java.util.Locale |
getLocale() |
java.lang.String |
getNullRepresentation()
Null representation for the renderer.
|
void |
setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication) |
void |
setDateFormat(java.text.DateFormat dateFormat) |
void |
setFormatString(java.lang.String formatString) |
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 DateRendererImpl()
public DateRendererImpl(java.lang.String formatString)
public DateRendererImpl(java.lang.String formatString, java.lang.String nullRepresentation)
public DateRendererImpl(java.lang.String formatString, java.util.Locale locale)
public DateRendererImpl(java.lang.String formatString, @Nullable java.util.Locale locale, java.lang.String nullRepresentation)
public DateRendererImpl(java.text.DateFormat dateFormat)
public DateRendererImpl(java.text.DateFormat dateFormat, java.lang.String nullRepresentation)
@Autowired public void setCurrentAuthentication(io.jmix.core.security.CurrentAuthentication currentAuthentication)
public com.vaadin.ui.renderers.DateRenderer getImplementation()
getImplementation
in interface RendererWrapper<java.util.Date>
getImplementation
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.util.Date>
protected com.vaadin.ui.renderers.DateRenderer createImplementation()
createImplementation
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.util.Date>
protected void copy(DataGrid.Renderer existingRenderer)
copy
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.util.Date>
public java.lang.String getNullRepresentation()
DataGrid.HasNullRepresentation
getNullRepresentation
in interface DataGrid.HasNullRepresentation
getNullRepresentation
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.util.Date>
null
public void setNullRepresentation(java.lang.String nullRepresentation)
DataGrid.HasNullRepresentation
setNullRepresentation
in interface DataGrid.HasNullRepresentation
setNullRepresentation
in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.util.Date>
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 values@Nullable public java.lang.String getFormatString()
DataGrid.DateRenderer
getFormatString
in interface DataGrid.DateRenderer
getFormatString
in interface DataGrid.HasFormatString
public void setFormatString(java.lang.String formatString)
DataGrid.DateRenderer
setFormatString
in interface DataGrid.DateRenderer
setFormatString
in interface DataGrid.HasFormatString
formatString
- the format string describing the date and time format
which will be used to create DateFormat
instance.@Nullable public java.text.DateFormat getDateFormat()
getDateFormat
in interface DataGrid.DateRenderer
DateFormat
which is used to present datespublic void setDateFormat(java.text.DateFormat dateFormat)
setDateFormat
in interface DataGrid.DateRenderer
dateFormat
- the instance of DateFormat
with which to present dates