use of org.linkki.core.ui.section.annotations.UITableColumn in project linkki by linkki-framework.
the class UIAnnotationReader method createAndAddDescriptor.
private void createAndAddDescriptor(Annotation annotation, Method method) {
List<LinkkiAspectDefinition> aspectDefs = AspectAnnotationReader.createAspectDefinitionsFrom(annotation);
String pmoPropertyName = getPmoPropertyName(method);
PropertyElementDescriptors elementDescriptors = descriptorsByProperty.computeIfAbsent(pmoPropertyName, PropertyElementDescriptors::new);
if (BindingDefinition.isLinkkiBindingDefinition(annotation)) {
BindingDefinition uiElement = BindingDefinition.from(annotation);
addDescriptor(elementDescriptors, uiElement, pmoPropertyName, annotation, aspectDefs);
} else {
elementDescriptors.addAspect(aspectDefs);
if (annotation instanceof UITableColumn) {
columnDescriptors.put(elementDescriptors, new TableColumnDescriptor(annotatedClass, method, (UITableColumn) annotation));
}
}
}
Aggregations