Package io.jmix.ui.component.renderer
Class DateRendererImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractDataGrid.AbstractRenderer<Object,Date>
io.jmix.ui.component.renderer.DateRendererImpl
- All Implemented Interfaces:
DataGrid.DateRenderer,DataGrid.HasFormatString,DataGrid.HasLocale,DataGrid.HasNullRepresentation,DataGrid.Renderer,RendererWrapper<Date>
@Component("ui_DateRenderer")
@Scope("prototype")
public class DateRendererImpl
extends AbstractDataGrid.AbstractRenderer<Object,Date>
implements DataGrid.DateRenderer
A renderer for presenting date values.
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractDataGrid.AbstractRenderer
dataGrid, nullRepresentation, rendererFields inherited from interface io.jmix.ui.component.DataGrid.DateRenderer
NAME -
Constructor Summary
ConstructorsConstructorDescriptionDateRendererImpl(String formatString) DateRendererImpl(String formatString, String nullRepresentation) DateRendererImpl(String formatString, Locale locale) DateRendererImpl(String formatString, Locale locale, String nullRepresentation) DateRendererImpl(DateFormat dateFormat) DateRendererImpl(DateFormat dateFormat, String nullRepresentation) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopy(DataGrid.Renderer existingRenderer) protected com.vaadin.ui.renderers.DateRenderercom.vaadin.ui.renderers.DateRendererNull representation for the renderer.voidsetCurrentAuthentication(CurrentAuthentication currentAuthentication) voidsetDateFormat(DateFormat dateFormat) voidsetFormatString(String formatString) voidSets the locale in which to present values.voidsetNullRepresentation(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
-
DateRendererImpl
public DateRendererImpl() -
DateRendererImpl
-
DateRendererImpl
-
DateRendererImpl
-
DateRendererImpl
-
DateRendererImpl
-
DateRendererImpl
-
-
Method Details
-
setCurrentAuthentication
-
getImplementation
public com.vaadin.ui.renderers.DateRenderer getImplementation()- Specified by:
getImplementationin interfaceRendererWrapper<Date>- Overrides:
getImplementationin classAbstractDataGrid.AbstractRenderer<Object,Date>
-
createImplementation
protected com.vaadin.ui.renderers.DateRenderer createImplementation()- Specified by:
createImplementationin classAbstractDataGrid.AbstractRenderer<Object,Date>
-
copy
- Specified by:
copyin classAbstractDataGrid.AbstractRenderer<Object,Date>
-
getNullRepresentation
Description copied from interface:DataGrid.HasNullRepresentationNull representation for the renderer.- Specified by:
getNullRepresentationin interfaceDataGrid.HasNullRepresentation- Overrides:
getNullRepresentationin classAbstractDataGrid.AbstractRenderer<Object,Date> - Returns:
- a textual representation of
null
-
setNullRepresentation
Description copied from interface:DataGrid.HasNullRepresentationSets null representation for the renderer.- Specified by:
setNullRepresentationin interfaceDataGrid.HasNullRepresentation- Overrides:
setNullRepresentationin classAbstractDataGrid.AbstractRenderer<Object,Date> - Parameters:
nullRepresentation- a textual representation ofnull
-
getLocale
- Specified by:
getLocalein interfaceDataGrid.HasLocale- Returns:
- the locale which is used to present values
-
setLocale
Description copied from interface:DataGrid.HasLocaleSets the locale in which to present values.- Specified by:
setLocalein interfaceDataGrid.HasLocale- Parameters:
locale- the locale in which to present values
-
getFormatString
Description copied from interface:DataGrid.DateRenderer- Specified by:
getFormatStringin interfaceDataGrid.DateRenderer- Specified by:
getFormatStringin interfaceDataGrid.HasFormatString- Returns:
- the format string describing the date and time format
-
setFormatString
Description copied from interface:DataGrid.DateRenderer- Specified by:
setFormatStringin interfaceDataGrid.DateRenderer- Specified by:
setFormatStringin interfaceDataGrid.HasFormatString- Parameters:
formatString- the format string describing the date and time format which will be used to createDateFormatinstance.- See Also:
-
getDateFormat
- Specified by:
getDateFormatin interfaceDataGrid.DateRenderer- Returns:
- the instance of
DateFormatwhich is used to present dates
-
setDateFormat
- Specified by:
setDateFormatin interfaceDataGrid.DateRenderer- Parameters:
dateFormat- the instance ofDateFormatwith which to present dates
-