Interface DataRenderer<T>
- Type Parameters:
T
- The type of handled objects.
public interface DataRenderer<T>
Renders object-specific data for use in individual snippets of report result lists.
- Since:
- 5.1.19
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
getDescription
(T object) Returns an evaluated description for the given object ornull
if a description is not available.@Nullable String
getDetails
(T object) Returns an evaluated detail html snippet for the given object ornull
if a detail is not available.@Nullable Image<?>
Provides the evaluated image resource for the given object ornull
if an type image is not available.@Nullable Image<?>
getThumbnail
(T object) Provides the evaluated image resource for the given object ornull
if an image representation is not available.Provides an evaluated title for the given object.
-
Method Details
-
getIcon
Provides the evaluated image resource for the given object ornull
if an type image is not available.- Parameters:
object
- The object that is to be rendered in the report list.- Returns:
- Image or
null
if no image is to be shown. - Since:
- 5.1.19
- See Also:
-
getThumbnail
Provides the evaluated image resource for the given object ornull
if an image representation is not available.- Parameters:
object
- The object that is to be rendered in the report list.- Returns:
- Image or
null
if no thumbnail is to be shown. - Since:
- 5.1.19
- See Also:
-
getTitle
Provides an evaluated title for the given object.- Parameters:
object
- The object that is to be rendered in the report list.- Returns:
- Title text.
- Since:
- 5.1.19
-
getDescription
Returns an evaluated description for the given object ornull
if a description is not available.- Parameters:
object
- The object that is to be rendered in the report list.- Returns:
- Description text or
null
. - Since:
- 5.1.19
-
getDetails
Returns an evaluated detail html snippet for the given object ornull
if a detail is not available.- Parameters:
object
- The object that is to be rendered in the report list.- Returns:
- Detail html snippet or
null
. - Since:
- 5.1.19
-