@Test public void testOpen() throws Exception { presenter.def = dataSetDef; presenter.open(); verify(dataSetSummary, times(1)).show(dataSetDef); verify(view, times(0)).init(presenter); verify(view, times(0)).configure(any(DataSetSummary.View.class)); verify(view, times(0)).showHeader(anyString(), anyString(), any(SafeUri.class), anyString(), anyString()); verify(view, times(1)).showSummary(); verify(view, times(0)).hideSummary(); verify(view, times(1)).enableActionButton(anyString(), any(ClickHandler.class)); verify(view, times(0)).disableActionButton(); }
void open() { dataSetSummary.show(def); view.showSummary(); view.enableActionButton(DataSetExplorerConstants.INSTANCE.edit(), new ClickHandler() { @Override public void onClick(final ClickEvent clickEvent) { editDataSetEvent.fire(new EditDataSetEvent(def)); } });; }
DataSetPanel implements IsWidget { void open() { dataSetSummary.show(def); view.showSummary(); view.enableActionButton(DataSetExplorerConstants.INSTANCE.edit(), new ClickHandler() { @Override public void onClick(final ClickEvent clickEvent) { editDataSetEvent.fire(new EditDataSetEvent(def)); } });; } }
DataSetPanel implements IsWidget { void open() { dataSetSummary.show(def); view.showSummary(); view.enableActionButton(DataSetExplorerConstants.INSTANCE.edit(), new ClickHandler() { @Override public void onClick(final ClickEvent clickEvent) { editDataSetEvent.fire(new EditDataSetEvent(def)); } });; } @Inject  DataSetPanel(final DataSetSummary dataSetSummary, 
                        final Event<EditDataSetEvent> editDataSetEvent, 
                        final View view); }
DataSetPanel implements IsWidget { void open() { dataSetSummary.show(def); view.showSummary(); view.enableActionButton(DataSetExplorerConstants.INSTANCE.edit(), new ClickHandler() { @Override public void onClick(final ClickEvent clickEvent) { editDataSetEvent.fire(new EditDataSetEvent(def)); } });; } @Inject  DataSetPanel(final DataSetSummary dataSetSummary, 
                        final Event<EditDataSetEvent> editDataSetEvent, 
                        final View view); @PostConstruct void init(); @Override Widget asWidget(); void show(final DataSetDef def, final String parentPanelId); void close(); void disable(); DataSetDef getDataSetDef(); }
DataSetPanel implements IsWidget { void open() { dataSetSummary.show(def); view.showSummary(); view.enableActionButton(DataSetExplorerConstants.INSTANCE.edit(), new ClickHandler() { @Override public void onClick(final ClickEvent clickEvent) { editDataSetEvent.fire(new EditDataSetEvent(def)); } });; } @Inject  DataSetPanel(final DataSetSummary dataSetSummary, 
                        final Event<EditDataSetEvent> editDataSetEvent, 
                        final View view); @PostConstruct void init(); @Override Widget asWidget(); void show(final DataSetDef def, final String parentPanelId); void close(); void disable(); DataSetDef getDataSetDef();  }