data-miner-manager-tester/src/main/java/org/gcube/portlets/user/dataminermanagertester/client/gin/CustomRootPresenter.java

42 lines
1.1 KiB
Java
Executable File

package org.gcube.portlets.user.dataminermanagertester.client.gin;
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.IsWidget;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.inject.Inject;
import com.google.web.bindery.event.shared.EventBus;
import com.gwtplatform.mvp.client.RootPresenter;
/**
*
* @author Giancarlo Panichi
*
*
*/
public class CustomRootPresenter extends RootPresenter {
private static final String SM_DIV = "contentDiv";
public static final class CustomRootView extends RootView {
@Override
public void setInSlot(Object slot, IsWidget widget) {
RootPanel root = RootPanel.get(SM_DIV);
if (root != null) {
GWT.log("Add Panel in Div " + SM_DIV);
root.add(widget);
***REMOVED***
GWT.log("Add Panel in Root");
RootPanel.get().add(widget);
***REMOVED***
***REMOVED***
***REMOVED***
@Inject
CustomRootPresenter(EventBus eventBus, CustomRootView myRootView) {
super( eventBus, myRootView );
***REMOVED***
***REMOVED***