Package de.espirit.firstspirit.store
Class LabelRenderer
java.lang.Object
de.espirit.firstspirit.store.LabelRenderer
Basic renderer of a label for some object types.
- Since:
- 4.1.14
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionmapObject
(de.espirit.firstspirit.access.editor.AccessEditorHolder value) Provides a label representation of anAccessEditorHolder
.Provides a formatted representation of the double value.Maps the given value to a textual label describing the value, if applicable.Provides a formatted representation of the given SQL date.Provides a formatted representation of the given SQL time.Provides a formatted representation of the given date object.
-
Constructor Details
-
LabelRenderer
public LabelRenderer()
-
-
Method Details
-
mapObject
Maps the given value to a textual label describing the value, if applicable. This is a generic entry point for the supported object types as given in explicit form within this renderer. Additionally, handles values that arenull
or unknown.- Parameters:
value
- The value to be mapped.- Returns:
- The mapped value or the value itself, if not supported.
- Since:
- 4.1.14
-
mapObject
Provides a label representation of anAccessEditorHolder
.- Parameters:
value
- The editor holder.- Returns:
- A one liner label.
- Since:
- 4.1.14
-
mapObject
Provides a formatted representation of the double value.- Parameters:
value
- The value.- Returns:
- The formatted double.
- Since:
- 4.1.14
-
mapObject
Provides a formatted representation of the given SQL date.- Parameters:
value
- The SQL date.- Returns:
- The formatted date.
- Since:
- 4.1.14
-
mapObject
Provides a formatted representation of the given SQL time.- Parameters:
value
- The SQL time.- Returns:
- The formatted time.
- Since:
- 4.1.14
-
mapObject
Provides a formatted representation of the given date object.- Parameters:
value
- The date.- Returns:
- The formatted date.
- Since:
- 4.1.14
-