Skip to content

Meta builder

Work in progress

Basics

FieldMetaBuilder

Live Sample ·

Example

Meta extends FieldMetaBuilder


AnySourceFieldMetaBuilder

Live Sample ·

Example

Meta extends AnySourceFieldMetaBuilder

@Service
public class MyExampleMeta extends AnySourceFieldMetaBuilder<MyExampleDTO> {
// --8<-- [start:buildRowDependentMeta]
    @Override
    public void buildRowDependentMeta(RowDependentFieldsMeta<MyExampleDTO> fields, BcDescription bc,
                                      String id, String parentId) {
        fields.setEnabled(MyExampleDTO_.customField);
    }
   // --8<-- [end:buildRowDependentMeta]

   // --8<-- [start:buildIndependentMeta]
  @Override
    public void buildIndependentMeta(FieldsMeta<MyExampleDTO> fields, BcDescription bcDescription,
                                     String parentId) {
        fields.enableFilter(MyExampleDTO_.customField);
      fields.enableSort(MyExampleDTO_.customField);
    }
   // --8<-- [end:buildIndependentMeta]
}

To customize properties in interfaces, you can use the following options:

  • buildRowDependentMeta

  • buildIndependentMeta

<!--

Overall, customizing properties in interfaces allows you to tailor the user experience and provide more functionality and flexibility in your application.

buildRowDependentMeta

RowDependentFieldsMeta

/**
 * Adds a value to an existing list of selectable values
 *
 * @param field widget field with type dictionary
 * @param dictDTO DTO with dictionary value
 */