diff --git a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanel.java b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanel.java index fe0380c..26b008d 100644 --- a/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanel.java +++ b/src/main/java/org/gcube/portlets/widgets/wsexplorer/client/explore/WorkspaceResourcesExplorerPanel.java @@ -36,12 +36,11 @@ import com.google.gwt.user.client.ui.ScrollPanel; import com.google.gwt.user.client.ui.VerticalPanel; - /** - * The Class WorkspaceExplorerSelectPanel. + * The Class WorkspaceResourcesExplorerPanel. * * @author Francesco Mangiacrapa francesco.mangiacrapa@isti.cnr.it - * Jul 28, 2015 + * Dec 3, 2015 */ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWorskpaceExplorerSelectNotificationListener{ @@ -64,12 +63,22 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor * Instantiates a new workspace folder explorer select panel. * * @param folderId the folder id - * @throws Exception + * @param folderName the folder name + * @throws Exception the exception */ public WorkspaceResourcesExplorerPanel(String folderId, String folderName) throws Exception { initExplorer(folderId, folderName, ItemType.values(), ItemType.values()); } + /** + * Inits the explorer. + * + * @param folderId the folder id + * @param folderName the folder name + * @param selectableTypes the selectable types + * @param showableTypes the showable types + * @throws Exception the exception + */ private void initExplorer(String folderId, String folderName, ItemType[] selectableTypes, ItemType[] showableTypes) throws Exception{ this.folderId = folderId; bindEvents(); @@ -82,9 +91,9 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor /** * Instantiates a new workspace explorer select panel. * - * @param captionTxt the caption txt + * @param folderId the folder id * @param showOnlyFolders the show only folders - * @throws Exception + * @throws Exception the exception */ public WorkspaceResourcesExplorerPanel(String folderId, boolean showOnlyFolders) throws Exception { @@ -183,30 +192,6 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor southPanel.clear(); } -// @Override -// public void onResize() { -// super.onResize(); -// GWT.log("on Resize..."); -// adjustSize(); -// } - - /* (non-Javadoc) - * @see com.google.gwt.user.client.ui.Widget#onLoad() - */ -// @Override -// protected void onLoad() { -// super.onLoad(); -// GWT.log("on Load..."); -//// adjustSize(); -// adjustSize(); -// } -// -// private void adjustSize(){ -// if(this.getParent()!=null && this.getParent().getElement()!=null) -// Util.adjustSize(this.getParent().getElement(), wsExplorer.getPanel(), 85); -// } - - /** * Inits the panel. * @@ -218,7 +203,6 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor setTitle(this.captionTxt); add(breadcrumbs, DockPanel.NORTH); - // centerScrollable.setSize(width+"px", height); setAlertConfirm("", false, null);