Search in sources :

Example 1 with PropertyElementDescriptors

use of org.linkki.core.ui.section.descriptor.PropertyElementDescriptors in project linkki by linkki-framework.

the class SectionCreationContext method createUiElements.

private void createUiElements(BaseSection section) {
    UIAnnotationReader annotationReader = new UIAnnotationReader(getPmo().getClass());
    for (PropertyElementDescriptors elementDescriptors : annotationReader.getUiElements()) {
        ElementDescriptor uiElement = elementDescriptors.getDescriptor(pmo);
        bindUiElement(uiElement, createLabelAndComponent(section, uiElement));
    }
}
Also used : UIAnnotationReader(org.linkki.core.ui.section.descriptor.UIAnnotationReader) PropertyElementDescriptors(org.linkki.core.ui.section.descriptor.PropertyElementDescriptors) ElementDescriptor(org.linkki.core.ui.section.descriptor.ElementDescriptor)

Aggregations

ElementDescriptor (org.linkki.core.ui.section.descriptor.ElementDescriptor)1 PropertyElementDescriptors (org.linkki.core.ui.section.descriptor.PropertyElementDescriptors)1 UIAnnotationReader (org.linkki.core.ui.section.descriptor.UIAnnotationReader)1