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

All Implemented Interfaces:
Iterable<org.cxbox.api.data.dto.rowmeta.FieldDTO>
Direct Known Subclasses:
FieldsDictionaryDeprecatedMeta

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

    • FieldsCommonMeta

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

    • enableFilter

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

      public final void setConcreteFilterValues(DtoField<? super T,?> field, Collection<org.cxbox.api.data.dictionary.SimpleDictionary> dictDtoList)
      Sets field filter options. Actually this method can be used to restrict filter options for non-dictionary fields too (e.g. input and so on. See compatible field types in documentation)
    • addConcreteFilterValue

      @Deprecated(since="4.0.0-M12", forRemoval=true) public final void addConcreteFilterValue(DtoField<? super T,?> field, org.cxbox.api.data.dictionary.SimpleDictionary dictDTO)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setForceActive

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

      @SafeVarargs @Deprecated(since="4.0.0-M12", forRemoval=true) public final void setEphemeral(DtoField<? super T,?>... fields)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • setFileAccept

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

      @SafeVarargs public final void enableSort(DtoField<? super T,?>... fields)
      Parameters:
      fields - fields to be made sortable. Sort icon will appear in UI, that user can interact with to apply/change sorting order
      • See additional abilities for sorting (how to set default sort order and so on) in this java doc WidgetFieldsIdResolverProperties.sortEnabledDefault