public static CategoryAttribute getCategoryAttribute(MetaProperty metaProperty) { return ((DynamicAttributesMetaProperty) metaProperty).getAttribute(); }
protected List<FieldGroup.FieldConfig> createFieldsForAttributes(FieldGroup newRuntimeFieldGroup) { @SuppressWarnings("unchecked") Collection<DynamicAttributesMetaProperty> metaProperties = rds.getPropertiesFilteredByCategory(); List<FieldGroup.FieldConfig> fields = new ArrayList<>(metaProperties.size()); for (DynamicAttributesMetaProperty property : metaProperties) { FieldGroup.FieldConfig field = newRuntimeFieldGroup.createField(property.getName()); field.setProperty(property.getName()); CategoryAttribute attribute = property.getAttribute(); if (attribute != null) { field.setCaption(attribute.getLocaleName()); if (StringUtils.isNotBlank(attribute.getWidth())) { field.setWidth(attribute.getWidth()); } else { field.setWidth(fieldWidth); } } else { field.setCaption(property.getName()); field.setWidth(fieldWidth); } fields.add(field); } return fields; }
CategoryAttribute attribute = metaProperty.getAttribute(); if (Boolean.TRUE.equals(attribute.getLookup())) { DynamicAttributesGuiTools dynamicAttributesGuiTools = AppBeans.get(DynamicAttributesGuiTools.class); (DynamicAttributesMetaProperty) mpp.getMetaProperty(); dynamicAttributesGuiTools.initEntityPickerField(pickerField, dynamicAttributesMetaProperty.getAttribute());
CategoryAttribute attribute = metaProperty.getAttribute(); if (Boolean.TRUE.equals(attribute.getLookup())) { DynamicAttributesGuiTools dynamicAttributesGuiTools = AppBeans.get(DynamicAttributesGuiTools.class); (DynamicAttributesMetaProperty) mpp.getMetaProperty(); dynamicAttributesGuiTools.initEntityPickerField(pickerField, dynamicAttributesMetaProperty.getAttribute());