package org.gcube.portlets.user.td.codelistmappingimportwidget.client.workspace; import org.gcube.portlets.widgets.lighttree.client.WorkspaceLightTreePanel; import com.allen_sauer.gwt.log.client.Log; import com.sencha.gxt.widget.core.client.box.AutoProgressMessageBox; import com.sencha.gxt.widget.core.client.event.DisableEvent; import com.sencha.gxt.widget.core.client.event.EnableEvent; public class WorkspacePanel extends WorkspaceLightTreePanel { AutoProgressMessageBox box; public void setSpWidth(String w) { sp.setWidth(w); } public void setSpHeight(String h) { sp.setHeight(h); } public void disable() { Log.debug("WorkspacePanel Disable"); fireEvent(new DisableEvent()); } public void enable() { Log.debug("WorkspacePanel Enable"); fireEvent(new EnableEvent()); } public void startWaiting() { box= new AutoProgressMessageBox("Loading", "Retriving data from workspace, please wait..."); box.setProgressText("Loading..."); box.setModal(false); box.auto(); box.show(); } public void endWaiting() { box.hide(); } }