Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
titleDatasetEditor.java
package org.sagebionetworks.web.client.widget.editpanels;

import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

public class DatasetEditor implements DatasetEditorView.Presenter, SynapseWidgetPresenter {

	private DatasetEditorView view;

	@Inject
	public DatasetEditor(DatasetEditorView view) {
		this.view = view;
		view.setPresenter(this);
	}

	public Widget asWidget() {
		return view.asWidget();
	}

}

...

Code Block
languagejava
titleDatasetEditorView.java
package org.sagebionetworks.web.client.widget.editpanels;

import com.google.gwt.user.client.ui.IsWidget;

public interface DatasetEditorView extends IsWidget, SynapseWidgetView {

	/**
	 * Set the presenter.
	 * @param presenter
	 */
	public void setPresenter(Presenter presenter);


	/**
	 * Presenter interface
	 */
	public interface Presenter {

	}
}

...