Class DateRenderer
- All Implemented Interfaces:
ClientConnector,FAbstractClientConnector,Renderer<Date>,Serializable
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.vaadin.featurepack.server.ClientConnector
ClientConnector.AttachEvent, ClientConnector.AttachListener, ClientConnector.DetachEvent, ClientConnector.DetachListenerNested classes/interfaces inherited from interface com.vaadin.featurepack.server.FAbstractClientConnector
FAbstractClientConnector.LegacyMethodEvent -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new date renderer.DateRenderer(String formatString) Creates a new date renderer.DateRenderer(String formatString, String nullRepresentation) Creates a new date renderer.DateRenderer(String formatString, Locale locale) Creates a new date renderer.DateRenderer(String formatString, Locale locale, String nullRepresentation) Creates a new date renderer.DateRenderer(DateFormat dateFormat) Creates a new date renderer.DateRenderer(DateFormat dateFormat, String nullRepresentation) Creates a new date renderer.DateRenderer(Locale locale) Creates a new date renderer.DateRenderer(Locale locale, String nullRepresentation) Creates a new date renderer. -
Method Summary
Methods inherited from class com.vaadin.featurepack.ui.FGrid.AbstractRenderer
getPresentationType, getPropertyId, setPropertyIdMethods inherited from class com.vaadin.featurepack.ui.FGrid.AbstractGridExtension
getColumn, getFParent, getItemId, getItemId, getParentGrid, refreshRow, setParentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.vaadin.featurepack.server.ClientConnector
getFParentMethods inherited from interface com.vaadin.featurepack.server.FAbstractClientConnector
addLegacyAttachListener, addLegacyDetachListener, addListener, addListener, attach, beforeClientResponse, detach, doConnectorOnAttach, doConnectorOnDetach, fireEvent, fireEvent, getAllChildrenIterable, getFListeners, getFlowComponent, getResource, hasListeners, isAttached, isConnectorEnabled, markAsDirty, markAsDirtyRecursive, removeAttachListener, removeDetachListener, removeListener, removeListener, setResource
-
Constructor Details
-
DateRenderer
public DateRenderer()Creates a new date renderer.The renderer is configured to render with the
Date.toString()representation for the default locale. -
DateRenderer
Creates a new date renderer.The renderer is configured to render with the
Date.toString()representation for the given locale.- Parameters:
locale- the locale in which to present dates- Throws:
IllegalArgumentException- iflocaleisnull
-
DateRenderer
Creates a new date renderer.The renderer is configured to render with the
Date.toString()representation for the given locale.- Parameters:
locale- the locale in which to present datesnullRepresentation- the textual representation ofnullvalue- Throws:
IllegalArgumentException- iflocaleisnull
-
DateRenderer
Creates a new date renderer.The renderer is configured to render with the given string format, as displayed in the default locale.
- Parameters:
formatString- the format string with which to format the date- Throws:
IllegalArgumentException- ifformatStringisnull- See Also:
-
DateRenderer
Creates a new date renderer.The renderer is configured to render with the given string format, as displayed in the default locale.
- Parameters:
formatString- the format string with which to format the datenullRepresentation- the textual representation ofnullvalue- Throws:
IllegalArgumentException- ifformatStringisnull- See Also:
-
DateRenderer
Creates a new date renderer.The renderer is configured to render with the given string format, as displayed in the given locale.
- Parameters:
formatString- the format string to format the date withlocale- the locale to use- Throws:
IllegalArgumentException- if either argument isnull- See Also:
-
DateRenderer
public DateRenderer(String formatString, Locale locale, String nullRepresentation) throws IllegalArgumentException Creates a new date renderer.The renderer is configured to render with the given string format, as displayed in the given locale.
- Parameters:
formatString- the format string to format the date withlocale- the locale to usenullRepresentation- the textual representation ofnullvalue- Throws:
IllegalArgumentException- if either argument isnull- See Also:
-
DateRenderer
Creates a new date renderer.The renderer is configured to render with he given date format.
- Parameters:
dateFormat- the date format to use when rendering dates- Throws:
IllegalArgumentException- ifdateFormatisnull
-
DateRenderer
public DateRenderer(DateFormat dateFormat, String nullRepresentation) throws IllegalArgumentException Creates a new date renderer.The renderer is configured to render with he given date format.
- Parameters:
dateFormat- the date format to use when rendering dates- Throws:
IllegalArgumentException- ifdateFormatisnull
-
-
Method Details
-
getNullRepresentation
Description copied from class:FGrid.AbstractRendererNull representation for the renderer- Overrides:
getNullRepresentationin classFGrid.AbstractRenderer<Date>- Returns:
- a textual representation of
null
-
toString
-
getRenderer
Description copied from interface:RendererReturns the Flow Renderer that will be used to render the items of type T.- Returns:
- the Flow Renderer for type T
-