@Test public void testSaveClickHide() { ioEditor.handleOkClick(); verify(ioEditorView).hideView(); }
@Override public void handleOkClick() { if (callback != null) { AssignmentData data = new AssignmentData(view.getInputAssignmentData(), view.getOutputAssignmentData(), dataTypes, dataTypeDisplayNames); data.setVariableCountsString(hasInputVars, isSingleInputVar, hasOutputVars, isSingleOutputVar); String sData = marshallToJson(data); callback.getData(sData); } view.hideView(); }
ActivityDataIOEditor implements ActivityDataIOEditorView.Presenter { @Override public void handleOkClick() { if (callback != null) { AssignmentData data = new AssignmentData(view.getInputAssignmentData(), view.getOutputAssignmentData(), dataTypes, dataTypeDisplayNames); data.setVariableCountsString(hasInputVars, isSingleInputVar, hasOutputVars, isSingleOutputVar); String sData = marshallToJson(data); callback.getData(sData); } view.hideView(); } }
ActivityDataIOEditor implements ActivityDataIOEditorView.Presenter { @Override public void handleOkClick() { if (callback != null) { AssignmentData data = new AssignmentData(view.getInputAssignmentData(), view.getOutputAssignmentData(), dataTypes, dataTypeDisplayNames); data.setVariableCountsString(hasInputVars, isSingleInputVar, hasOutputVars, isSingleOutputVar); String sData = marshallToJson(data); callback.getData(sData); } view.hideView(); }  }
ActivityDataIOEditor implements ActivityDataIOEditorView.Presenter { @Override public void handleOkClick() { if (callback != null) { AssignmentData data = new AssignmentData(view.getInputAssignmentData(), view.getOutputAssignmentData(), dataTypes, dataTypeDisplayNames); data.setVariableCountsString(hasInputVars, isSingleInputVar, hasOutputVars, isSingleOutputVar); String sData = marshallToJson(data); callback.getData(sData); } view.hideView(); }  @PostConstruct void init(); void setCallback(final GetDataCallback callback); @Override void handleOkClick(); @Override void handleCancelClick(); void setDataTypes(final List<String> dataTypes,
                             final List<String> dataTypeDisplayNames); void setAssignmentData(final AssignmentData assignmentData); void configureDialog(final String taskName,
                                final boolean hasInputVars,
                                final boolean isSingleInputVar,
                                final boolean hasOutputVars,
                                final boolean isSingleOutputVar); void setDisallowedPropertyNames(final List<String> disallowedPropertyNames); void setProcessVariables(final List<String> processVariables); void setInputAssignmentRows(final List<AssignmentRow> inputAssignmentRows); void setOutputAssignmentRows(final List<AssignmentRow> outputAssignmentRows); void setReadOnly(final boolean readOnly); void show(); @Override ListBoxValues.ValueTester dataTypesTester(); @Override ListBoxValues.ValueTester processVarTester(); }
ActivityDataIOEditor implements ActivityDataIOEditorView.Presenter { @Override public void handleOkClick() { if (callback != null) { AssignmentData data = new AssignmentData(view.getInputAssignmentData(), view.getOutputAssignmentData(), dataTypes, dataTypeDisplayNames); data.setVariableCountsString(hasInputVars, isSingleInputVar, hasOutputVars, isSingleOutputVar); String sData = marshallToJson(data); callback.getData(sData); } view.hideView(); }  @PostConstruct void init(); void setCallback(final GetDataCallback callback); @Override void handleOkClick(); @Override void handleCancelClick(); void setDataTypes(final List<String> dataTypes,
                             final List<String> dataTypeDisplayNames); void setAssignmentData(final AssignmentData assignmentData); void configureDialog(final String taskName,
                                final boolean hasInputVars,
                                final boolean isSingleInputVar,
                                final boolean hasOutputVars,
                                final boolean isSingleOutputVar); void setDisallowedPropertyNames(final List<String> disallowedPropertyNames); void setProcessVariables(final List<String> processVariables); void setInputAssignmentRows(final List<AssignmentRow> inputAssignmentRows); void setOutputAssignmentRows(final List<AssignmentRow> outputAssignmentRows); void setReadOnly(final boolean readOnly); void show(); @Override ListBoxValues.ValueTester dataTypesTester(); @Override ListBoxValues.ValueTester processVarTester();  }