Added method refreshFolderParentView
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/portlets/widgets/workspace-explorer@121716 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
a16557c00c
commit
15dcc16aa6
|
@ -58,6 +58,7 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor
|
|||
public final HandlerManager eventBus = new HandlerManager(null);
|
||||
private Breadcrumbs breadcrumbs = new Breadcrumbs(eventBus);
|
||||
private String folderId;
|
||||
private String folderName;
|
||||
|
||||
/**
|
||||
* Instantiates a new workspace folder explorer select panel.
|
||||
|
@ -81,6 +82,7 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor
|
|||
*/
|
||||
private void initExplorer(String folderId, String folderName, ItemType[] selectableTypes, ItemType[] showableTypes) throws Exception{
|
||||
this.folderId = folderId;
|
||||
this.folderName = folderName;
|
||||
bindEvents();
|
||||
wsExplorer = new WorkspaceExplorer(eventBus, showableTypes, selectableTypes, new DISPLAY_FIELD[]{DISPLAY_FIELD.ICON, DISPLAY_FIELD.NAME});
|
||||
Item item = new Item(folderId, folderName, true);
|
||||
|
@ -163,7 +165,7 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor
|
|||
* @param itemIdentifier the item identifier
|
||||
* @param includeItemAsParent the include item as parent
|
||||
*/
|
||||
protected void loadParentBreadcrumbByItemId(final String itemIdentifier, boolean includeItemAsParent){
|
||||
private void loadParentBreadcrumbByItemId(final String itemIdentifier, boolean includeItemAsParent){
|
||||
|
||||
GWT.log("Reload Parent Breadcrumb: [Item id: "+itemIdentifier+"]");
|
||||
|
||||
|
@ -185,6 +187,14 @@ public class WorkspaceResourcesExplorerPanel extends DockPanel implements HasWor
|
|||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh folder parent view.
|
||||
*/
|
||||
public void refreshFolderParentView(){
|
||||
Item item = new Item(folderId, folderName, true);
|
||||
eventBus.fireEvent(new LoadFolderEvent(item));
|
||||
}
|
||||
|
||||
/**
|
||||
* Clear more info.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue