Package org.cxbox.core.dto.rowmeta
Class RowDependentFieldsDictionaryMeta<T extends org.cxbox.api.data.dto.DataResponseDTO>
java.lang.Object
org.cxbox.api.data.dto.rowmeta.FieldsDTO
org.cxbox.core.dto.rowmeta.RowDependentFieldsCommonMeta<T>
org.cxbox.core.dto.rowmeta.RowDependentFieldsDictionaryDeprecatedMeta<T>
org.cxbox.core.dto.rowmeta.RowDependentFieldsDictionaryMeta<T>
- 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>
-
Field Summary
Fields inherited from class org.cxbox.core.dto.rowmeta.RowDependentFieldsCommonMeta
objectMapperFields inherited from class org.cxbox.api.data.dto.rowmeta.FieldsDTO
fields -
Constructor Summary
ConstructorsConstructorDescriptionRowDependentFieldsDictionaryMeta(com.fasterxml.jackson.databind.ObjectMapper objectMapper, Optional<DictionaryProvider> dictionaryProvider) -
Method Summary
Modifier and TypeMethodDescriptionfinal <V extends Dictionary>
voidsetDictionaryValues(DtoField<? super T, V> field)
Fills dictionary field drop-down (Form widget field during editing and so on) with all values fromdictionary typefinal <V extends Dictionary>
voidsetDictionaryValues(DtoField<? super T, V> field, @NonNull Collection<V> variants)
final <E extends Enum<?>>
voidsetEnumValues(DtoField<? super T, E> field, @NonNull E... values)
Fills dictionary field drop-down (Form widget field during editing and so on).Methods inherited from class org.cxbox.core.dto.rowmeta.RowDependentFieldsDictionaryDeprecatedMeta
setDictionaryTypeWithAllValues, setDictionaryTypeWithAllValues, setDictionaryTypeWithConcreteValues, setDictionaryTypeWithConcreteValues, setDictionaryTypeWithConcreteValues, setDictionaryTypeWithConcreteValuesFromList, setDictionaryTypeWithCustomValuesMethods inherited from class org.cxbox.core.dto.rowmeta.RowDependentFieldsCommonMeta
addConcreteValue, disable, disableFields, get, hidden, required, setConcreteValues, setCurrentValue, setDisabled, setDisabled, setDrilldown, setDrilldowns, setEnabled, 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
-
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 (seeDictionary.getDictionaryType())- Parameters:
field- - widget dictionary fieldvariants- - variants to be shown in field drop-down (Form widget field during editing and so on)
-
setDictionaryValues
Fills dictionary field drop-down (Form widget field during editing and so on) with all values fromdictionary 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 (seeDictionary.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).
-