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

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

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

    • FieldsMeta

      public FieldsMeta(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
  • Method Details

    • addConcreteFilterValue

      public final void addConcreteFilterValue(DtoField<? super T,?> field, org.cxbox.api.data.dictionary.SimpleDictionary dictDTO)
      Adds a value to the existing list of filterable values
      Parameters:
      field - widget field with type dictionary
      dictDTO - DTO with dictionary value
    • enableFilter

      @SafeVarargs public final void enableFilter(DtoField<? super T,?>... fields)
    • setAllFilterValuesByLovType

      public final void setAllFilterValuesByLovType(DtoField<? super T,?> field, org.cxbox.api.data.dictionary.IDictionaryType type)
    • setConcreteFilterValues

      public final void setConcreteFilterValues(DtoField<? super T,?> field, Collection<org.cxbox.api.data.dictionary.SimpleDictionary> dictDtoList)
    • setEnumFilterValues

      public <T extends org.cxbox.api.data.dto.DataResponseDTO, E extends Enum> void setEnumFilterValues(@NonNull @NonNull FieldsMeta<T> fieldsMeta, @Nullable DtoField<? super T,E> field, @NonNull @NonNull E... values)
    • setForceActive

      @SafeVarargs public final void setForceActive(DtoField<? super T,?>... fields)
    • setEphemeral

      @SafeVarargs public final void setEphemeral(DtoField<? super T,?>... fields)
    • setHidden

      @SafeVarargs public final void setHidden(DtoField<? super T,?>... fields)
    • setFilterValuesWithIcons

      public final void setFilterValuesWithIcons(DtoField<? super T,?> field, org.cxbox.api.data.dictionary.IDictionaryType type, Map<org.cxbox.api.data.dictionary.LOV,org.cxbox.api.data.dto.rowmeta.IconCode> valueIconMap)
    • setFileAccept

      public final void setFileAccept(DtoField<? super T,?> field, @NonNull @NonNull List<String> accept)
    • setAllFilterValuesByLovTypeOrdered

      public final void setAllFilterValuesByLovTypeOrdered(FieldsMeta<?> fields, DtoField<?,?> field, org.cxbox.api.data.dictionary.IDictionaryType type)
      The method allows sorting LOV values to set the display order, in accordance with the specified order in the CSV file, by setting FilterValues to the corresponding value.
      Parameters:
      fields -
      field -
      type -
    • setDictionaryTypeWithAllValuesOrdered

      public static void setDictionaryTypeWithAllValuesOrdered(RowDependentFieldsMeta<?> fields, DtoField<?,?> field, org.cxbox.api.data.dictionary.IDictionaryType type)
      The method allows sorting LOV values to set the display order, in accordance with the specified order in the CSV file, by setting Values to the corresponding value.
      Parameters:
      fields -
      field -
      type -
    • setDictionaryTypeWithAllValues

      public static void setDictionaryTypeWithAllValues(RowDependentFieldsMeta<?> fields, DtoField<?,?> field, org.cxbox.api.data.dictionary.IDictionaryType type, Comparator<org.cxbox.api.data.dictionary.SimpleDictionary> comparator)