use of org.linkki.core.ui.section.descriptor.UIAnnotationReader in project linkki by linkki-framework.
the class StaticValueDispatcherTest method setUp.
@Before
public void setUp() {
objectWithUIAnnotations = new TestObjectWithUIAnnotations();
UIAnnotationReader uiAnnotationReader = new UIAnnotationReader(objectWithUIAnnotations.getClass());
uiAnnotationDispatchers = uiAnnotationReader.getUiElements().stream().collect(Collectors.toMap(e -> e.getPmoPropertyName(), e -> new StaticValueDispatcher(uiAnnotationFallbackDispatcher)));
}
use of org.linkki.core.ui.section.descriptor.UIAnnotationReader 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));
}
}
Aggregations