Replaced the Workspace light tree with workspace explorer #804

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/reports@119164 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2015-09-29 14:36:17 +00:00
parent 8ca1678cf4
commit 661f0ba896
4 changed files with 34 additions and 32 deletions

View File

@ -1,4 +1,8 @@
<ReleaseNotes> <ReleaseNotes>
<Changeset component="org.gcube.portlets-user.report-generator-portlet.5-0-0"
date="2015-09-29">
<Change>Replaced the Workspace light tree with workspace explorer #804</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.report-generator-portlet.4-13-0" <Changeset component="org.gcube.portlets-user.report-generator-portlet.4-13-0"
date="2015-07-03"> date="2015-07-03">
<Change>Ported to GWT 2.7.0</Change> <Change>Ported to GWT 2.7.0</Change>

View File

@ -13,10 +13,10 @@ import org.gcube.portlets.user.reportgenerator.client.dialog.PagePropertiesDialo
import org.gcube.portlets.user.reportgenerator.client.model.ExportManifestationType; import org.gcube.portlets.user.reportgenerator.client.model.ExportManifestationType;
import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel; import org.gcube.portlets.user.reportgenerator.client.model.TemplateModel;
import org.gcube.portlets.user.reportgenerator.shared.VMETypeIdentifier; import org.gcube.portlets.user.reportgenerator.shared.VMETypeIdentifier;
import org.gcube.portlets.widgets.wsexplorer.shared.*;
import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSelectNotification.WorskpaceExplorerSelectNotificationListener; import org.gcube.portlets.widgets.wsexplorer.client.notification.WorkspaceExplorerSelectNotification.WorskpaceExplorerSelectNotificationListener;
import org.gcube.portlets.widgets.wsexplorer.client.select.WorkspaceExplorerSelectDialog; import org.gcube.portlets.widgets.wsexplorer.client.select.WorkspaceExplorerSelectDialog;
import org.gcube.portlets.widgets.wsexplorer.shared.FilterCriteria; import org.gcube.portlets.widgets.wsexplorer.shared.Item;
import org.gcube.portlets.widgets.wsexplorer.shared.ItemType;
import com.extjs.gxt.ui.client.widget.MessageBox; import com.extjs.gxt.ui.client.widget.MessageBox;
import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.GWT;
@ -159,7 +159,7 @@ public class Headerbar extends Composite{
captionPanel.setWidth("100%"); captionPanel.setWidth("100%");
HorizontalPanel pageHandlerPanel = new HorizontalPanel(); HorizontalPanel pageHandlerPanel = new HorizontalPanel();
pageHandlerPanel.setHeight("24"); pageHandlerPanel.setHeight("24px");
pageHandlerPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE); pageHandlerPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
captionPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER); captionPanel.setHorizontalAlignment(HasHorizontalAlignment.ALIGN_CENTER);
@ -167,8 +167,8 @@ public class Headerbar extends Composite{
mainLayout.add(pageHandlerPanel); mainLayout.add(pageHandlerPanel);
mainLayout.setCellHorizontalAlignment(menuBar, HasHorizontalAlignment.ALIGN_LEFT); mainLayout.setCellHorizontalAlignment(menuBar, HasHorizontalAlignment.ALIGN_LEFT);
mainLayout.setCellHorizontalAlignment(captionPanel, HasHorizontalAlignment.ALIGN_LEFT); mainLayout.setCellHorizontalAlignment(captionPanel, HasHorizontalAlignment.ALIGN_LEFT);
mainLayout.setCellWidth(menuBar, "200"); mainLayout.setCellWidth(menuBar, "200px");
mainLayout.setCellWidth(pageHandlerPanel, "200"); // mainLayout.setCellWidth(pageHandlerPanel, "200");
initWidget(mainLayout); initWidget(mainLayout);
} }

View File

@ -87,7 +87,7 @@ public class ReportGenerator implements EntryPoint {
public void onModuleLoad() { public void onModuleLoad() {
singleton = this; singleton = this;
presenter = new Presenter(); presenter = new Presenter();
mainLayout.setWidth("100%"); mainLayout.setWidth("95%");
mainLayout.setHeight("100%"); mainLayout.setHeight("100%");
// //
workSpacePanel = new WorkspacePanel(presenter); workSpacePanel = new WorkspacePanel(presenter);
@ -132,30 +132,30 @@ public class ReportGenerator implements EntryPoint {
// Add image and button to the RootPanel // Add image and button to the RootPanel
RootPanel.get("ReportGeneratorDIV").add(mainLayout); RootPanel.get("ReportGeneratorDIV").add(mainLayout);
int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30; // int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30;
bottomScrollerPanel.setPixelSize(scrollerWidth, 1000); // bottomScrollerPanel.setPixelSize(scrollerWidth, 1000);
//
if ( Window.getClientWidth() < 1070 ) { // if ( Window.getClientWidth() < 1070 ) {
int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT; // int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT;
bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000); // bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000);
} // }
//
Window.addResizeHandler(new ResizeHandler() { // Window.addResizeHandler(new ResizeHandler() {
public void onResize(ResizeEvent event) { // public void onResize(ResizeEvent event) {
int scrollerHeight = event.getHeight() - bottomScrollerPanel.getAbsoluteTop(); // int scrollerHeight = event.getHeight() - bottomScrollerPanel.getAbsoluteTop();
if (scrollerHeight < toolBoxPanel.getTreePanelHeight()) // if (scrollerHeight < toolBoxPanel.getTreePanelHeight())
scrollerHeight = toolBoxPanel.getTreePanelHeight(); // scrollerHeight = toolBoxPanel.getTreePanelHeight();
int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30; // int scrollerWidth = Window.getClientWidth()- TEMPLATE_LEFT - 30;
bottomScrollerPanel.setPixelSize(scrollerWidth , 1000); // bottomScrollerPanel.setPixelSize(scrollerWidth , 1000);
//
//
if ( Window.getClientWidth() < 1060 ) { // if ( Window.getClientWidth() < 1060 ) {
int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT; // int scrollerWidth2 = Window.getClientWidth()- TEMPLATE_LEFT;
bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000); // bottomScrollerPanel.setPixelSize(scrollerWidth2, 1000);
} // }
} // }
//
}); // });
//presenter.showExportPanel("", "", null, ""); //presenter.showExportPanel("", "", null, "");
//showGuidedTour() ; //showGuidedTour() ;

View File

@ -70,8 +70,6 @@ public class WorkspacePanel extends Composite {
presenter = c; presenter = c;
templateModel = presenter.getModel(); templateModel = presenter.getModel();
mainLayout.setWidth(""+(templateModel.getPageWidth()));
mainLayout.setStyleName("wpFlow"); mainLayout.setStyleName("wpFlow");
initWidget(mainLayout); initWidget(mainLayout);