@Test public void setContentSortsImportsByInternalThenExternalAlphabetically() { final List<Import> imports = view.getDataProvider().getList(); assertEquals(4, imports.size()); assertEquals(internal2, imports.get(0)); assertEquals(internal1, imports.get(1)); assertEquals(model2, imports.get(2)); assertEquals(model1, imports.get(3)); }
ListDataProvider<Import> getDataProvider() { return dataProvider; }
ImportsWidgetViewImpl extends Composite implements ImportsWidgetView { ListDataProvider<Import> getDataProvider() { return dataProvider; } }
ImportsWidgetViewImpl extends Composite implements ImportsWidgetView { ListDataProvider<Import> getDataProvider() { return dataProvider; } ImportsWidgetViewImpl(); @Inject  ImportsWidgetViewImpl(final AddImportPopup addImportPopup,
                                 final Event<LockRequiredEvent> lockRequired); }
ImportsWidgetViewImpl extends Composite implements ImportsWidgetView { ListDataProvider<Import> getDataProvider() { return dataProvider; } ImportsWidgetViewImpl(); @Inject  ImportsWidgetViewImpl(final AddImportPopup addImportPopup,
                                 final Event<LockRequiredEvent> lockRequired); @Override void init(final ImportsWidgetView.Presenter presenter); @Override void setContent(final List<Import> internalFactTypes,
                           final List<Import> externalFactTypes,
                           final List<Import> modelFactTypes,
                           final boolean isReadOnly); @UiHandler("addImportButton") void onClickAddImportButton(final ClickEvent event); @Override void updateRenderedColumns(); }
ImportsWidgetViewImpl extends Composite implements ImportsWidgetView { ListDataProvider<Import> getDataProvider() { return dataProvider; } ImportsWidgetViewImpl(); @Inject  ImportsWidgetViewImpl(final AddImportPopup addImportPopup,
                                 final Event<LockRequiredEvent> lockRequired); @Override void init(final ImportsWidgetView.Presenter presenter); @Override void setContent(final List<Import> internalFactTypes,
                           final List<Import> externalFactTypes,
                           final List<Import> modelFactTypes,
                           final boolean isReadOnly); @UiHandler("addImportButton") void onClickAddImportButton(final ClickEvent event); @Override void updateRenderedColumns();  }