...
Code Block | ||||
---|---|---|---|---|
| ||||
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 | ||||
---|---|---|---|---|
| ||||
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 {
}
}
|
...