2013-02-06 23:25:43 +01:00
|
|
|
package org.gcube.portlets.user.reportgenerator.client;
|
|
|
|
|
2013-03-15 19:52:49 +01:00
|
|
|
import com.google.gwt.core.client.GWT;
|
2013-11-25 17:12:01 +01:00
|
|
|
import com.google.gwt.user.client.ui.VerticalPanel;
|
2013-02-06 23:25:43 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @author Massimiliano Assante, ISTI-CNR - massimiliano.assante@isti.cnr.it
|
|
|
|
*/
|
|
|
|
|
2013-11-25 17:12:01 +01:00
|
|
|
public class ToolboxPanel extends VerticalPanel {
|
2013-02-06 23:25:43 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public static final int TOOLBOX_WIDTH = 235;
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public static final int TOOLBOX_HEIGHT= 800;
|
|
|
|
|
2014-04-28 18:26:53 +02:00
|
|
|
public ToolboxPanel() {
|
2013-02-06 23:25:43 +01:00
|
|
|
}
|
2013-11-22 18:28:12 +01:00
|
|
|
|
|
|
|
public void showStructure(ReportStructurePanel panel) {
|
|
|
|
clear();
|
|
|
|
setWidth("240px");
|
|
|
|
add(panel);
|
|
|
|
}
|
2013-11-25 17:12:01 +01:00
|
|
|
|
|
|
|
public void collapse() {
|
2013-12-18 17:33:25 +01:00
|
|
|
clear();
|
|
|
|
GWT.log("collapse");
|
2013-11-25 17:12:01 +01:00
|
|
|
setWidth("20px");
|
|
|
|
}
|
2013-02-06 23:25:43 +01:00
|
|
|
|
2013-03-14 17:30:16 +01:00
|
|
|
public void showExportedVersion(String id, String fileName) {
|
2013-03-15 19:52:49 +01:00
|
|
|
GWT.log("showExportedVersion");
|
2014-04-28 18:26:53 +02:00
|
|
|
//AppControllerExplorer.getEventBus().fireEvent(new FileDownloadEvent(id, fileName, DownloadType.SHOW));
|
2013-03-14 17:30:16 +01:00
|
|
|
}
|
2013-02-06 23:25:43 +01:00
|
|
|
/**
|
|
|
|
* refresh the root
|
|
|
|
*/
|
|
|
|
public void refreshRoot() {
|
2013-11-22 18:28:12 +01:00
|
|
|
//appController.refreshRoot();
|
2013-02-06 23:25:43 +01:00
|
|
|
}
|
|
|
|
/**
|
|
|
|
* lalala
|
|
|
|
* @return the toolbox height
|
|
|
|
*/
|
|
|
|
public int getTreePanelHeight() {
|
|
|
|
return TOOLBOX_HEIGHT;
|
|
|
|
}
|
|
|
|
}
|