@Test public void testCreateSection_SectionHasAddButtonInHeader() { TestTablePmo containerPmo = new TestTablePmo(); BindingContext bindingContext = new BindingContext(); PmoBasedSectionFactory factory = new PmoBasedSectionFactory(); AbstractSection tableSection = factory.createSection(containerPmo, bindingContext); assertThat(tableSection, is(notNullValue())); assertThat(tableSection.getComponentCount(), is(2)); assertThat(tableSection.getComponent(0), is(instanceOf(HorizontalLayout.class))); HorizontalLayout header = (HorizontalLayout)tableSection.getComponent(0); assertThat(header.getComponentCount(), is(3)); assertThat(header.getComponent(1), is(instanceOf(Button.class))); Button addButton = (Button)header.getComponent(1); assertThat(addButton.getIcon(), is(FontAwesome.PLUS)); }
@Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); }
PmoBasedTableSectionFactory { @Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); } }
PmoBasedTableSectionFactory { @Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); } @Deprecated  PmoBasedTableSectionFactory(ContainerPmo<ROW> containerPmo, BindingContext bindingContext); }
PmoBasedTableSectionFactory { @Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); } @Deprecated  PmoBasedTableSectionFactory(ContainerPmo<ROW> containerPmo, BindingContext bindingContext); @Deprecated TableSection createSection(); }
PmoBasedTableSectionFactory { @Deprecated public TableSection createSection() { return (TableSection)new PmoBasedSectionFactory().createSection(containerPmo, bindingContext); } @Deprecated  PmoBasedTableSectionFactory(ContainerPmo<ROW> containerPmo, BindingContext bindingContext); @Deprecated TableSection createSection();  }