@Component(value="ui_DateRenderer") @Scope(value="prototype") public class DateRendererImpl extends AbstractDataGrid.AbstractRenderer<java.lang.Object,java.util.Date> implements DataGrid.DateRenderer
dataGrid, nullRepresentation, rendererNAME| 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, setDataGridpublic 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.HasNullRepresentationgetNullRepresentation in interface DataGrid.HasNullRepresentationgetNullRepresentation in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.util.Date>nullpublic void setNullRepresentation(java.lang.String nullRepresentation)
DataGrid.HasNullRepresentationsetNullRepresentation in interface DataGrid.HasNullRepresentationsetNullRepresentation in class AbstractDataGrid.AbstractRenderer<java.lang.Object,java.util.Date>nullRepresentation - a textual representation of nullpublic java.util.Locale getLocale()
getLocale in interface DataGrid.HasLocalepublic void setLocale(java.util.Locale locale)
DataGrid.HasLocalesetLocale in interface DataGrid.HasLocalelocale - the locale in which to present values@Nullable public java.lang.String getFormatString()
DataGrid.DateRenderergetFormatString in interface DataGrid.DateRenderergetFormatString in interface DataGrid.HasFormatStringpublic void setFormatString(java.lang.String formatString)
DataGrid.DateRenderersetFormatString in interface DataGrid.DateRenderersetFormatString in interface DataGrid.HasFormatStringformatString - 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.DateRendererDateFormat which is used to present datespublic void setDateFormat(java.text.DateFormat dateFormat)
setDateFormat in interface DataGrid.DateRendererdateFormat - the instance of DateFormat with which to present dates