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 voidenableSort(DtoField<? super T, ?>... fields) final voidsetAllFilterValuesByLovType(DtoField<?, ?> field, @NonNull org.cxbox.api.data.dictionary.IDictionaryType type, @NonNull Comparator<org.cxbox.api.data.dictionary.SimpleDictionary> comparator) final voidsetAllFilterValuesByLovType(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type) final voidsetConcreteFilterValues(DtoField<? super T, ?> field, Collection<org.cxbox.api.data.dictionary.SimpleDictionary> dictDtoList) <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) Methods inherited from class org.cxbox.core.dto.rowmeta.RowDependentFieldsMeta
addConcreteValue, disable, disableFields, get, hidden, required, setConcreteValues, setCurrentValue, setDictionaryTypeWithAllValues, setDictionaryTypeWithAllValues, setDictionaryTypeWithConcreteValues, setDictionaryTypeWithConcreteValues, setDictionaryTypeWithConcreteValues, setDictionaryTypeWithConcreteValuesFromList, setDictionaryTypeWithCustomValues, setDictionaryValuesWithIcons, setDictionaryValuesWithIcons, setDisabled, setDisabled, setDrilldown, setDrilldowns, setEnabled, setEnumValues, setHidden, setNotHidden, 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
public final void setAllFilterValuesByLovType(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type) - Parameters:
field- dto fieldtype- dictionary type
Field filter drop-downs (on List widgets header and so on) values sorted by display_order, then by key. display_order can be nullSee dicts.sort and LinkedHashMap lines in
DictionaryCacheImpl.Cache.load()
Attention - sorting rows in List widgets always ignores display_order and is done by lov.key lexicographically!
-
setAllFilterValuesByLovType
public final void setAllFilterValuesByLovType(DtoField<?, ?> field, @NonNull @NonNull org.cxbox.api.data.dictionary.IDictionaryType type, @NonNull @NonNull Comparator<org.cxbox.api.data.dictionary.SimpleDictionary> comparator) - Parameters:
field- dto fieldtype- dictionary typecomparator- filter drop-downs will show values sorted by this comparatorAttention - sorting rows in List widgets always ignores display_order and is done by lov.key lexicographically!
-
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
-
setFilterValuesWithIcons
-
setFileAccept
-
enableSort
- Parameters:
fields- fields to be madesortable. 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 orderand so on) in this java docWidgetFieldsIdResolverProperties.sortEnabledDefault
- See additional abilities for sorting (how to set
-