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
  • Constructor Details

    • RowDependentFieldsMeta

      public RowDependentFieldsMeta()
  • Method Details

    • get

      public org.cxbox.api.data.dto.rowmeta.FieldDTO get(DtoField<? super T,?> field)
    • 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 dictionary
      dictDTO - 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 dictionary
      type - dictionary type
      lovs - list of dictionary codes (with type LOV)
    • setDictionaryValuesWithIcons

      @Deprecated(forRemoval=true) 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, for removal: This API element is subject to removal in a future version.
    • setRequired

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

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

      @SafeVarargs public final void required(boolean required, DtoField<? super T,?>... fields)
    • setHidden

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

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

      @SafeVarargs public final void hidden(boolean required, DtoField<? super T,?>... fields)
    • disableFields

      public final void disableFields()
    • setDisabled

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

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

      public final void disable(boolean disabled, DtoField<? super T,?>... fields)
    • setDisabled

      public void setDisabled(List<String> fields)
    • setDictionaryTypeWithAllValues

      public final void setDictionaryTypeWithAllValues(DtoField<? super T,?> field, org.cxbox.api.data.dictionary.IDictionaryType type)
      Parameters:
      field - dto field
      type - 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 null

      See 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

      public final void setDictionaryTypeWithAllValues(DtoField<? super T,?> field, String type)
    • setDictionaryTypeWithConcreteValues

      @Deprecated public final void setDictionaryTypeWithConcreteValues(DtoField<? super T,?> field, org.cxbox.api.data.dictionary.IDictionaryType type, String... keys)
      Deprecated.
    • setDictionaryTypeWithCustomValues

      public final void setDictionaryTypeWithCustomValues(DtoField<? super T,?> field, String... keys)
    • setDictionaryTypeWithConcreteValues

      public final void setDictionaryTypeWithConcreteValues(DtoField<? super T,?> field, org.cxbox.api.data.dictionary.IDictionaryType type, List<org.cxbox.api.data.dictionary.LOV> lovs)
    • setDictionaryTypeWithConcreteValues

      public final void setDictionaryTypeWithConcreteValues(DtoField<? super T,?> field, org.cxbox.api.data.dictionary.IDictionaryType type, org.cxbox.api.data.dictionary.LOV... lovs)
    • setConcreteValues

      public final void setConcreteValues(DtoField<? super T,?> field, Collection<org.cxbox.api.data.dictionary.SimpleDictionary> dictDtoList)
    • setEnumValues

      public <E extends Enum> void setEnumValues(@Nullable DtoField<? super T,E> field, @NonNull @NonNull E... values)
    • setDrilldown

      public final void setDrilldown(DtoField<? super T,?> field, DrillDownTypeSpecifier drillDownType, String drillDown)
    • setDrilldowns

      public final void setDrilldowns(List<FieldDrillDown> drillDowns)
    • setDictionaryValuesWithIcons

      @Deprecated(since="4.0.0-M11", forRemoval=true) public final void setDictionaryValuesWithIcons(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)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Since 4.0.0-M11 Not recommended to load icons individually for specific values. Instead, load all icons at once as a complete dictionary use FieldsMeta.setAllValuesWithIcons(DtoField, IDictionaryType, Map)}
    • setCurrentValue

      public final <V> void setCurrentValue(DtoField<? super T,V> field, V value)
    • setPlaceholder

      public final void setPlaceholder(DtoField<? super T,?> field, String placeholder)