Package org.cxbox.core.dto.rowmeta
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>
-
Field Summary
Fields inherited from class org.cxbox.api.data.dto.rowmeta.FieldsDTO
fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddConcreteFilterValue(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.SimpleDictionary dictDTO) Adds a value to the existing list of filterable valuesfinal voidenableFilter(DtoField<? super T, ?>... fields) final voidsetAllFilterValuesByLovType(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type) final voidsetAllFilterValuesByLovTypeOrdered(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.final voidsetConcreteFilterValues(DtoField<? super T, ?> field, Collection<org.cxbox.api.data.dictionary.SimpleDictionary> dictDtoList) static voidsetDictionaryTypeWithAllValues(RowDependentFieldsMeta<?> fields, DtoField<?, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type, Comparator<org.cxbox.api.data.dictionary.SimpleDictionary> comparator) static voidsetDictionaryTypeWithAllValuesOrdered(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.<T extends org.cxbox.api.data.dto.DataResponseDTO,E extends Enum>
voidsetEnumFilterValues(@NonNull FieldsMeta<T> fieldsMeta, DtoField<? super T, E> field, @NonNull E... values) final voidsetEphemeral(DtoField<? super T, ?>... fields) final voidsetFileAccept(DtoField<? super T, ?> field, @NonNull List<String> accept) final voidsetFilterValuesWithIcons(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) final voidsetForceActive(DtoField<? super T, ?>... fields) final voidMethods inherited from class org.cxbox.core.dto.rowmeta.RowDependentFieldsMeta
addConcreteValue, disable, disableFields, get, required, setConcreteValues, setCurrentValue, setDictionaryTypeWithAllValues, setDictionaryTypeWithAllValues, setDictionaryTypeWithConcreteValues, setDictionaryTypeWithConcreteValues, setDictionaryTypeWithConcreteValues, setDictionaryTypeWithConcreteValuesFromList, setDictionaryTypeWithCustomValues, setDictionaryValuesWithIcons, setDictionaryValuesWithIcons, setDisabled, setDisabled, setDrilldown, setDrilldowns, setEnabled, setEnumValues, setNotRequired, setPlaceholder, setRequiredMethods inherited from class org.cxbox.api.data.dto.rowmeta.FieldsDTO
add, get, iterator, ofMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
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 dictionarydictDTO- DTO with dictionary value
-
enableFilter
-
setAllFilterValuesByLovType
-
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
-
setEphemeral
-
setHidden
-
setFilterValuesWithIcons
-
setFileAccept
-
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)
-