Added new constructor

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@171985 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2018-10-05 15:21:54 +00:00
parent 3a6a32f88a
commit 8c6e61254f
1 changed files with 24 additions and 1 deletions

View File

@ -136,7 +136,7 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace
itemsType[1] = ItemType.PRIVATE_FOLDER;
itemsType[2] = ItemType.SHARED_FOLDER;
itemsType[3] = ItemType.VRE_FOLDER;
setSelectableTypes(itemsType);
setShowableTypes(itemsType);
}
@ -144,6 +144,29 @@ public class WorkspaceExplorerSelectDialog extends Modal implements HasWorskpace
loadExplorer(captionTxt, null);
}
/**
* Instantiates a new workspace explorer select dialog.
*
* @param captionTxt the caption txt
* @param showOnlyFolders the show only folders
* @param baseFolderId the base folder id
*/
public WorkspaceExplorerSelectDialog(String captionTxt, boolean showOnlyFolders, String baseFolderId) {
controller = new WorkspaceExplorerController(WorkspaceExplorerConstants.HEIGHT_EXPLORER_PANEL);
if(showOnlyFolders){
ItemType[] itemsType = new ItemType[4];
itemsType[0] = ItemType.FOLDER;
itemsType[1] = ItemType.PRIVATE_FOLDER;
itemsType[2] = ItemType.SHARED_FOLDER;
itemsType[3] = ItemType.VRE_FOLDER;
setSelectableTypes(itemsType);
setShowableTypes(itemsType);
}
loadExplorer(captionTxt, baseFolderId);
}
/**
* Instantiates a new workspace explorer select dialog.
*