2013-02-08 10:56:27 +01:00
|
|
|
package org.gcube.portlets.user.workspace.client.view;
|
|
|
|
|
|
|
|
import org.gcube.portlets.user.workspace.client.view.grids.GxtGridFilterGroupPanel;
|
|
|
|
import org.gcube.portlets.user.workspace.client.view.panels.GxtBasicTabPanel;
|
|
|
|
import org.gcube.portlets.user.workspace.client.view.panels.GxtBorderLayoutPanel;
|
|
|
|
import org.gcube.portlets.user.workspace.client.view.panels.GxtCardLayoutResultPanel;
|
|
|
|
import org.gcube.portlets.user.workspace.client.view.panels.GxtSeachAndFilterPanel;
|
2014-01-14 14:40:25 +01:00
|
|
|
import org.gcube.portlets.user.workspace.client.view.toolbars.GxtBottomToolBarItem;
|
2014-02-17 19:20:45 +01:00
|
|
|
import org.gcube.portlets.user.workspace.client.view.toolbars.GxtBreadcrumbPathPanel;
|
2015-10-28 17:13:31 +01:00
|
|
|
import org.gcube.portlets.widgets.workspaceuploader.client.uploader.dragdrop.MultipleDNDUpload;
|
2013-02-08 10:56:27 +01:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
public class WorskpacePortlet {
|
|
|
|
|
|
|
|
private GxtBorderLayoutPanel borderLayoutContainer = null;
|
|
|
|
private GxtBasicTabPanel basicTabContainer = null;
|
|
|
|
// private GxtToolBarFunctionsPanel toolbarPanelContainer = null;
|
|
|
|
private ExplorerPanel explorerPanel = null;
|
2014-01-14 14:40:25 +01:00
|
|
|
private GxtBottomToolBarItem toolBarItemDetails;
|
2013-02-08 10:56:27 +01:00
|
|
|
private GxtListView listViewContainer;
|
2014-02-17 19:20:45 +01:00
|
|
|
private GxtBreadcrumbPathPanel toolBarPathPanel;
|
2013-02-08 10:56:27 +01:00
|
|
|
private GxtGridFilterGroupPanel gridFilterGroupContainer;
|
|
|
|
private GxtSeachAndFilterPanel searchAndFilterContainer;
|
2015-10-23 16:01:23 +02:00
|
|
|
private GxtCardLayoutResultPanel gxtCardLayoutResultPanel;
|
2015-10-28 17:13:31 +01:00
|
|
|
private MultipleDNDUpload dnd;
|
2013-02-08 10:56:27 +01:00
|
|
|
|
|
|
|
public WorskpacePortlet(boolean activeGroup) {
|
|
|
|
|
|
|
|
this.basicTabContainer = new GxtBasicTabPanel();
|
2014-02-17 19:20:45 +01:00
|
|
|
this.toolBarPathPanel = new GxtBreadcrumbPathPanel();
|
2014-05-16 17:44:31 +02:00
|
|
|
this.searchAndFilterContainer = new GxtSeachAndFilterPanel(this.toolBarPathPanel);
|
2013-02-08 10:56:27 +01:00
|
|
|
|
|
|
|
this.gridFilterGroupContainer = new GxtGridFilterGroupPanel(activeGroup);
|
|
|
|
this.listViewContainer = new GxtListView();
|
2014-01-14 14:40:25 +01:00
|
|
|
this.toolBarItemDetails = new GxtBottomToolBarItem();
|
2013-02-08 10:56:27 +01:00
|
|
|
|
2013-05-23 19:03:22 +02:00
|
|
|
this.gxtCardLayoutResultPanel = new GxtCardLayoutResultPanel(gridFilterGroupContainer, listViewContainer, toolBarItemDetails);
|
2013-02-08 10:56:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public WorskpacePortlet(ExplorerPanel expPanel, boolean activeGroup) {
|
|
|
|
this(activeGroup);
|
|
|
|
this.explorerPanel = expPanel;
|
2015-10-28 17:13:31 +01:00
|
|
|
this.dnd = new MultipleDNDUpload();
|
2015-10-23 16:01:23 +02:00
|
|
|
this.borderLayoutContainer = new GxtBorderLayoutPanel(this.searchAndFilterContainer, this.explorerPanel, this.gxtCardLayoutResultPanel, this.toolBarItemDetails, this.dnd);
|
2013-02-08 10:56:27 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public GxtBorderLayoutPanel getBorderLayoutContainer() {
|
|
|
|
return borderLayoutContainer;
|
|
|
|
}
|
|
|
|
|
|
|
|
public GxtBasicTabPanel getBasicTabContainer() {
|
|
|
|
return basicTabContainer;
|
|
|
|
}
|
|
|
|
|
|
|
|
public GxtSeachAndFilterPanel getSearchAndFilterContainer() {
|
|
|
|
return searchAndFilterContainer;
|
|
|
|
}
|
|
|
|
|
2015-10-23 16:01:23 +02:00
|
|
|
/**
|
|
|
|
* Gets the tool bar path.
|
|
|
|
*
|
|
|
|
* @return the tool bar path
|
|
|
|
*/
|
2014-02-17 19:20:45 +01:00
|
|
|
public GxtBreadcrumbPathPanel getToolBarPath() {
|
2013-02-08 10:56:27 +01:00
|
|
|
return toolBarPathPanel;
|
|
|
|
}
|
|
|
|
|
|
|
|
public GxtGridFilterGroupPanel getGridGroupContainer() {
|
|
|
|
return gridFilterGroupContainer;
|
|
|
|
}
|
|
|
|
|
|
|
|
public ExplorerPanel getExplorerPanel() {
|
|
|
|
return explorerPanel;
|
|
|
|
}
|
2013-02-12 16:02:16 +01:00
|
|
|
|
2013-02-08 10:56:27 +01:00
|
|
|
public GxtCardLayoutResultPanel getGxtCardLayoutResultPanel() {
|
|
|
|
return gxtCardLayoutResultPanel;
|
|
|
|
}
|
2013-05-23 19:03:22 +02:00
|
|
|
|
2014-01-14 14:40:25 +01:00
|
|
|
public GxtBottomToolBarItem getToolBarItemDetails() {
|
2013-05-23 19:03:22 +02:00
|
|
|
return toolBarItemDetails;
|
|
|
|
}
|
2015-10-23 16:01:23 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @return the dnd
|
|
|
|
*/
|
2015-10-28 17:13:31 +01:00
|
|
|
public MultipleDNDUpload getDND() {
|
2015-10-23 16:01:23 +02:00
|
|
|
return dnd;
|
|
|
|
}
|
2013-02-08 10:56:27 +01:00
|
|
|
}
|