Search in sources :

Example 1 with PmoBasedSectionFactory

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

the class TestUiUtil method createSectionWith.

public static GridLayout createSectionWith(Object pmo, BindingContext bindingContext) {
    PmoBasedSectionFactory sectionFactory = new DefaultPmoBasedSectionFactory();
    AbstractSection section = sectionFactory.createSection(pmo, bindingContext);
    bindingContext.updateUI();
    Panel panel = (Panel) section.getComponent(1);
    return (GridLayout) panel.getContent();
}
Also used : Panel(com.vaadin.ui.Panel) GridLayout(com.vaadin.ui.GridLayout) DefaultPmoBasedSectionFactory(org.linkki.core.ui.section.DefaultPmoBasedSectionFactory) AbstractSection(org.linkki.core.ui.section.AbstractSection) DefaultPmoBasedSectionFactory(org.linkki.core.ui.section.DefaultPmoBasedSectionFactory) PmoBasedSectionFactory(org.linkki.core.ui.section.PmoBasedSectionFactory)

Aggregations

GridLayout (com.vaadin.ui.GridLayout)1 Panel (com.vaadin.ui.Panel)1 AbstractSection (org.linkki.core.ui.section.AbstractSection)1 DefaultPmoBasedSectionFactory (org.linkki.core.ui.section.DefaultPmoBasedSectionFactory)1 PmoBasedSectionFactory (org.linkki.core.ui.section.PmoBasedSectionFactory)1