Class LabelRenderer

java.lang.Object
de.espirit.firstspirit.store.LabelRenderer

public class LabelRenderer extends Object
Basic renderer of a label for some object types.
Since:
4.1.14
  • Constructor Details

    • LabelRenderer

      public LabelRenderer()
  • Method Details

    • mapObject

      public Object mapObject(Object value)
      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 are null 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

      public Object mapObject(AccessEditorHolder value)
      Provides a label representation of an AccessEditorHolder.
      Parameters:
      value - The editor holder.
      Returns:
      A one liner label.
      Since:
      4.1.14
    • mapObject

      public Object mapObject(Double value)
      Provides a formatted representation of the double value.
      Parameters:
      value - The value.
      Returns:
      The formatted double.
      Since:
      4.1.14
    • mapObject

      public Object mapObject(Date value)
      Provides a formatted representation of the given SQL date.
      Parameters:
      value - The SQL date.
      Returns:
      The formatted date.
      Since:
      4.1.14
    • mapObject

      public Object mapObject(Time value)
      Provides a formatted representation of the given SQL time.
      Parameters:
      value - The SQL time.
      Returns:
      The formatted time.
      Since:
      4.1.14
    • mapObject

      public Object mapObject(Date value)
      Provides a formatted representation of the given date object.
      Parameters:
      value - The date.
      Returns:
      The formatted date.
      Since:
      4.1.14