Class RowDependentFieldsDictionaryMeta<T extends org.cxbox.api.data.dto.DataResponseDTO>

java.lang.Object
org.cxbox.api.data.dto.rowmeta.FieldsDTO
All Implemented Interfaces:
Iterable<org.cxbox.api.data.dto.rowmeta.FieldDTO>
Direct Known Subclasses:
RowDependentFieldsMeta

public class RowDependentFieldsDictionaryMeta<T extends org.cxbox.api.data.dto.DataResponseDTO> extends RowDependentFieldsDictionaryDeprecatedMeta<T>
  • Constructor Details

    • RowDependentFieldsDictionaryMeta

      public RowDependentFieldsDictionaryMeta(@Qualifier("cxboxObjectMapper") com.fasterxml.jackson.databind.ObjectMapper objectMapper, Optional<DictionaryProvider> dictionaryProvider)
  • Method Details

    • setDictionaryValues

      public final <V extends Dictionary> void setDictionaryValues(@Nullable DtoField<? super T,V> field, @NonNull @NonNull Collection<V> variants)


      Type Parameters:
      V - - dictionary class. Usually class name determines dictionary type, that is used to convert keys to values for UI (see Dictionary.getDictionaryType())
      Parameters:
      field - - widget dictionary field
      variants - - variants to be shown in field drop-down (Form widget field during editing and so on)
    • setDictionaryValues

      public final <V extends Dictionary> void setDictionaryValues(@Nullable DtoField<? super T,V> field)


      Fills dictionary field drop-down (Form widget field during editing and so on) with all values from dictionary type
      Type Parameters:
      V - - dictionary class. Usually class name determines dictionary type, that is used to determine dictionary values and to convert keys to values for UI (see Dictionary.getDictionaryType())
      Parameters:
      field - - widget dictionary field
    • setEnumValues

      @SafeVarargs public final <E extends Enum<?>> void setEnumValues(@Nullable DtoField<? super T,E> field, @NonNull @NonNull E... values)


      Fills dictionary field drop-down (Form widget field during editing and so on).