@Test public void testRowCountZero() { reassignmentWidgetViewImpl.init(presenter, Collections.EMPTY_LIST); ListDataProvider<ReassignmentRow> dataProvider = getFieldValue(ReassignmentWidgetViewImpl.class, reassignmentWidgetViewImpl, "dataProvider"); Assert.assertEquals(0, dataProvider.getList().size()); }
@PostConstruct public void init() { addButton.addEventListener("click", event -> addOrEdit(new ReassignmentRow()), false); closeButton.addEventListener("click", event -> hide(), false); okButton.addEventListener("click", event -> ok(), false); }
ReassignmentWidgetViewImpl extends Composite implements ReassignmentWidgetView { @PostConstruct public void init() { addButton.addEventListener("click", event -> addOrEdit(new ReassignmentRow()), false); closeButton.addEventListener("click", event -> hide(), false); okButton.addEventListener("click", event -> ok(), false); } }
ReassignmentWidgetViewImpl extends Composite implements ReassignmentWidgetView { @PostConstruct public void init() { addButton.addEventListener("click", event -> addOrEdit(new ReassignmentRow()), false); closeButton.addEventListener("click", event -> hide(), false); okButton.addEventListener("click", event -> ok(), false); }  }
ReassignmentWidgetViewImpl extends Composite implements ReassignmentWidgetView { @PostConstruct public void init() { addButton.addEventListener("click", event -> addOrEdit(new ReassignmentRow()), false); closeButton.addEventListener("click", event -> hide(), false); okButton.addEventListener("click", event -> ok(), false); }  @PostConstruct void init(); @Override void init(final ReassignmentWidgetView.Presenter presenter, List<ReassignmentRow> rows); @Override void delete(ReassignmentRow row); @Override void addOrEdit(ReassignmentRow row); @Override void setReadOnly(boolean readOnly); @Override void show(); void onSubscription(@Observes ReassignmentEvent event); @Override void refreshTable(); @Override void hide(); }
ReassignmentWidgetViewImpl extends Composite implements ReassignmentWidgetView { @PostConstruct public void init() { addButton.addEventListener("click", event -> addOrEdit(new ReassignmentRow()), false); closeButton.addEventListener("click", event -> hide(), false); okButton.addEventListener("click", event -> ok(), false); }  @PostConstruct void init(); @Override void init(final ReassignmentWidgetView.Presenter presenter, List<ReassignmentRow> rows); @Override void delete(ReassignmentRow row); @Override void addOrEdit(ReassignmentRow row); @Override void setReadOnly(boolean readOnly); @Override void show(); void onSubscription(@Observes ReassignmentEvent event); @Override void refreshTable(); @Override void hide();  }