Class CaptionAdapter

java.lang.Object
io.jmix.ui.component.compatibility.CaptionAdapter
All Implemented Interfaces:
Formatter<Object>, Function<Object,String>

public class CaptionAdapter extends Object implements Formatter<Object>
Converts captionProperty XML attribute to item/options caption provider.
  • Field Details

    • captionProperty

      protected String captionProperty
    • metadata

      protected Metadata metadata
    • metadataTools

      protected MetadataTools metadataTools
  • Constructor Details

  • Method Details

    • apply

      public String apply(Object entity)
      Description copied from interface: Formatter
      Formats a value to a string.
      Specified by:
      apply in interface Formatter<Object>
      Specified by:
      apply in interface Function<Object,String>
      Parameters:
      entity - a value
      Returns:
      formatted string
    • getCaptionProperty

      @Nullable public String getCaptionProperty()
    • setCaptionProperty

      public void setCaptionProperty(@Nullable String captionProperty)