Search in sources :

Example 1 with ContactTablePmo

use of org.linkki.samples.binding.pmo.ContactTablePmo in project linkki by linkki-framework.

the class ContactsTableComponent method createContent.

private void createContent(Consumer<Contact> editAction) {
    DefaultPmoBasedSectionFactory sectionFactory = new DefaultPmoBasedSectionFactory();
    tableSection = sectionFactory.createTableSection(new ContactTablePmo(contactStorage, editAction, contactStorage::remove), context);
    noContentLabel = new Label("No contacts available");
}
Also used : DefaultPmoBasedSectionFactory(org.linkki.core.ui.section.DefaultPmoBasedSectionFactory) Label(com.vaadin.ui.Label) ContactTablePmo(org.linkki.samples.binding.pmo.ContactTablePmo)

Aggregations

Label (com.vaadin.ui.Label)1 DefaultPmoBasedSectionFactory (org.linkki.core.ui.section.DefaultPmoBasedSectionFactory)1 ContactTablePmo (org.linkki.samples.binding.pmo.ContactTablePmo)1