Package org.cxbox.core.dto.rowmeta
Class RowDependentFieldsMeta<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>
- All Implemented Interfaces:
Iterable<org.cxbox.api.data.dto.rowmeta.FieldDTO>
- Direct Known Subclasses:
FieldsMeta
public class RowDependentFieldsMeta<T extends org.cxbox.api.data.dto.DataResponseDTO>
extends org.cxbox.api.data.dto.rowmeta.FieldsDTO
-
Field Summary
Fields inherited from class org.cxbox.api.data.dto.rowmeta.FieldsDTO
fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddConcreteValue(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.SimpleDictionary dictDTO) Adds a value to an existing list of selectable valuesfinal voidfinal voidorg.cxbox.api.data.dto.rowmeta.FieldDTOfinal voidfinal voidsetConcreteValues(DtoField<? super T, ?> field, Collection<org.cxbox.api.data.dictionary.SimpleDictionary> dictDtoList) final voidsetCurrentValue(DtoField<? super T, ?> field, Object value) final voidsetDictionaryTypeWithAllValues(DtoField<? super T, ?> field, String type) final voidsetDictionaryTypeWithAllValues(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type) final voidsetDictionaryTypeWithConcreteValues(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type, String... keys) Deprecated.final voidsetDictionaryTypeWithConcreteValues(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type, List<org.cxbox.api.data.dictionary.LOV> lovs) final voidsetDictionaryTypeWithConcreteValues(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type, org.cxbox.api.data.dictionary.LOV... lovs) final voidsetDictionaryTypeWithConcreteValuesFromList(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type, List<org.cxbox.api.data.dictionary.LOV> lovs) Fills the list of selectable values in the dropdown list with concrete dictionary valuesfinal voidsetDictionaryTypeWithCustomValues(DtoField<? super T, ?> field, String... keys) voidsetDictionaryValuesWithIcons(String field, org.cxbox.api.data.dictionary.IDictionaryType type, Map<org.cxbox.api.data.dictionary.LOV, org.cxbox.api.data.dto.rowmeta.IconCode> valueIconMap) Deprecated.final voidsetDictionaryValuesWithIcons(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) voidsetDisabled(List<String> fields) final voidsetDisabled(DtoField<? super T, ?>... fields) final voidsetDrilldown(DtoField<? super T, ?> field, DrillDownTypeSpecifier drillDownType, String drillDown) final voidsetDrilldowns(List<FieldDrillDown> drillDowns) final voidsetEnabled(DtoField<? super T, ?>... fields) <E extends Enum>
voidsetEnumValues(DtoField<? super T, E> field, @NonNull E... values) final voidsetNotRequired(DtoField<? super T, ?>... fields) final voidsetPlaceholder(DtoField<? super T, ?> field, String placeholder) final voidsetRequired(DtoField<? super T, ?>... fields) Methods 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
-
RowDependentFieldsMeta
public RowDependentFieldsMeta()
-
-
Method Details
-
get
-
addConcreteValue
public final void addConcreteValue(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.SimpleDictionary dictDTO) Adds a value to an existing list of selectable values- Parameters:
field- widget field with type dictionarydictDTO- DTO with dictionary value
-
setDictionaryTypeWithConcreteValuesFromList
public final void setDictionaryTypeWithConcreteValuesFromList(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type, List<org.cxbox.api.data.dictionary.LOV> lovs) Fills the list of selectable values in the dropdown list with concrete dictionary values- Parameters:
field- widget field with type dictionarytype- dictionary typelovs- list of dictionary codes (with type LOV)
-
setDictionaryValuesWithIcons
@Deprecated public void setDictionaryValuesWithIcons(String field, org.cxbox.api.data.dictionary.IDictionaryType type, Map<org.cxbox.api.data.dictionary.LOV, org.cxbox.api.data.dto.rowmeta.IconCode> valueIconMap) Deprecated. -
setRequired
-
setNotRequired
-
required
-
disableFields
public final void disableFields() -
setDisabled
-
setEnabled
-
disable
-
setDisabled
-
setDictionaryTypeWithAllValues
public final void setDictionaryTypeWithAllValues(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type) - Parameters:
field- dto fieldtype- dictionary type
field edit drop-downs (Form widget field during editing 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!
-
setDictionaryTypeWithAllValues
-
setDictionaryTypeWithConcreteValues
@Deprecated public final void setDictionaryTypeWithConcreteValues(DtoField<? super T, ?> field, org.cxbox.api.data.dictionary.IDictionaryType type, String... keys) Deprecated. -
setDictionaryTypeWithCustomValues
-
setDictionaryTypeWithConcreteValues
-
setDictionaryTypeWithConcreteValues
-
setConcreteValues
public final void setConcreteValues(DtoField<? super T, ?> field, Collection<org.cxbox.api.data.dictionary.SimpleDictionary> dictDtoList) -
setEnumValues
-
setDrilldown
public final void setDrilldown(DtoField<? super T, ?> field, DrillDownTypeSpecifier drillDownType, String drillDown) -
setDrilldowns
-
setDictionaryValuesWithIcons
-
setCurrentValue
-
setPlaceholder
-