use of org.linkki.core.ui.section.descriptor.ElementDescriptor in project linkki by linkki-framework.
the class FieldDescriptorTest method getLabelText_deriveFromPropertyName.
@Test
public void getLabelText_deriveFromPropertyName() {
ElementDescriptor fieldDescriptor = new ElementDescriptor(adapter, "Test", Void.class, new ArrayList<>());
assertEquals("Test", fieldDescriptor.getLabelText());
}
use of org.linkki.core.ui.section.descriptor.ElementDescriptor 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