68 lines
1.7 KiB
Java
68 lines
1.7 KiB
Java
/**
|
|
*
|
|
*/
|
|
package org.gcube.portlets.widgets.wsexplorer.client;
|
|
|
|
import org.gcube.portlets.widgets.wsexplorer.client.view.Breadcrumbs;
|
|
import org.gcube.portlets.widgets.wsexplorer.client.view.Navigation;
|
|
import org.gcube.portlets.widgets.wsexplorer.client.view.WorkspaceNavigator;
|
|
|
|
import com.google.gwt.user.client.ui.DockPanel;
|
|
import com.google.gwt.user.client.ui.ScrollPanel;
|
|
|
|
|
|
/**
|
|
* The Class SplitPanel.
|
|
*
|
|
* @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it
|
|
* Jun 23, 2015
|
|
*/
|
|
public class WorkspaceNavigatorPanel extends DockPanel{
|
|
|
|
public int width = 550;
|
|
public int height = 400;
|
|
public int west_width = 130;
|
|
|
|
private ScrollPanel westPanel = new ScrollPanel();
|
|
private ScrollPanel centerScrollable = new ScrollPanel();
|
|
private Breadcrumbs breadcrumbs = new Breadcrumbs();
|
|
private Navigation navigation = new Navigation();
|
|
private WorkspaceNavigator wsExplorer = new WorkspaceNavigator();
|
|
/**
|
|
* Instantiates a new split panel.
|
|
*/
|
|
public WorkspaceNavigatorPanel(int splitterSize) {
|
|
// setStyleName("cw-DockPanel");
|
|
ensureDebugId("WorkspaceNavigatorPanel");
|
|
setSpacing(4);
|
|
// setHorizontalAlignment(DockPanel.ALIGN_CENTER);
|
|
|
|
add(breadcrumbs, DockPanel.NORTH);
|
|
// northPanel.add(breadcrumbs);
|
|
westPanel.setWidth(west_width+"px");
|
|
westPanel.add(navigation);
|
|
add(westPanel, DockPanel.WEST);
|
|
|
|
centerScrollable.setSize(width+"px", height+"px");
|
|
centerScrollable.add(wsExplorer.getExplorerPanel());
|
|
add(centerScrollable, DockPanel.CENTER);
|
|
}
|
|
|
|
/**
|
|
* @return the westPanel
|
|
*/
|
|
public ScrollPanel getWestPanel() {
|
|
return westPanel;
|
|
}
|
|
|
|
/**
|
|
* @return the centerScrollable
|
|
*/
|
|
public ScrollPanel getCenterScrollable() {
|
|
return centerScrollable;
|
|
}
|
|
}
|
|
|
|
|
|
|