From d9841cda928f3c7135160d0e093b434a6a3f4c30 Mon Sep 17 00:00:00 2001 From: Francesco Mangiacrapa Date: Mon, 17 Feb 2014 18:29:04 +0000 Subject: [PATCH] enhancements on ACls display git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace@91807 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../gcube/portlets/user/workspace/client/AppController.java | 1 + .../user/workspace/client/view/toolbars/ACLDivInfo.java | 6 +++++- .../client/view/toolbars/GxtBottomToolBarItem.java | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/AppController.java b/src/main/java/org/gcube/portlets/user/workspace/client/AppController.java index d5669fd..22bc8ec 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/AppController.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/AppController.java @@ -1074,6 +1074,7 @@ public class AppController implements SubscriberInterface { private void setACLInfo(String parentId){ + GWT.log("Updating ACL info for folder id: "+parentId); AppControllerExplorer.rpcWorkspaceService.getACLForFolderId(parentId, new AsyncCallback>() { @Override diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/ACLDivInfo.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/ACLDivInfo.java index 7890fc2..0464514 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/ACLDivInfo.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/ACLDivInfo.java @@ -24,11 +24,14 @@ public class ACLDivInfo extends LayoutContainer { hpPanel.setWidth("100%"); updateInfo(caption,img); + + hpPanel.add(text); + add(hpPanel); } public void updateInfo(String caption, AbstractImagePrototype img){ - String html = "
"; + String html = "
"; if(img!=null) html+=addImage(img); @@ -42,6 +45,7 @@ public class ACLDivInfo extends LayoutContainer { text.setHTML(html); hpPanel.layout(); + this.layout(); } private String addImage(AbstractImagePrototype img){ diff --git a/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtBottomToolBarItem.java b/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtBottomToolBarItem.java index eb13fec..0cc733c 100644 --- a/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtBottomToolBarItem.java +++ b/src/main/java/org/gcube/portlets/user/workspace/client/view/toolbars/GxtBottomToolBarItem.java @@ -173,5 +173,6 @@ public class GxtBottomToolBarItem extends ToolBar{ AbstractImagePrototype img = GetPermissionIconByACL.getImage(acl); aclDivInfo.updateInfo(acl.getLabel(), img); + this.layout(); } }