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
This commit is contained in:
Francesco Mangiacrapa 2014-02-17 18:29:04 +00:00
parent 543a3eb0d1
commit d9841cda92
3 changed files with 7 additions and 1 deletions

View File

@ -1074,6 +1074,7 @@ public class AppController implements SubscriberInterface {
private void setACLInfo(String parentId){ private void setACLInfo(String parentId){
GWT.log("Updating ACL info for folder id: "+parentId);
AppControllerExplorer.rpcWorkspaceService.getACLForFolderId(parentId, new AsyncCallback<List<WorkspaceACL>>() { AppControllerExplorer.rpcWorkspaceService.getACLForFolderId(parentId, new AsyncCallback<List<WorkspaceACL>>() {
@Override @Override

View File

@ -24,11 +24,14 @@ public class ACLDivInfo extends LayoutContainer {
hpPanel.setWidth("100%"); hpPanel.setWidth("100%");
updateInfo(caption,img); updateInfo(caption,img);
hpPanel.add(text);
add(hpPanel);
} }
public void updateInfo(String caption, AbstractImagePrototype img){ public void updateInfo(String caption, AbstractImagePrototype img){
String html = "<div style=\"width: 100%; height: 28px; text-align:left;\">"; String html = "<div style=\"width: 100%; height: 25px; text-align:left;\">";
if(img!=null) if(img!=null)
html+=addImage(img); html+=addImage(img);
@ -42,6 +45,7 @@ public class ACLDivInfo extends LayoutContainer {
text.setHTML(html); text.setHTML(html);
hpPanel.layout(); hpPanel.layout();
this.layout();
} }
private String addImage(AbstractImagePrototype img){ private String addImage(AbstractImagePrototype img){

View File

@ -173,5 +173,6 @@ public class GxtBottomToolBarItem extends ToolBar{
AbstractImagePrototype img = GetPermissionIconByACL.getImage(acl); AbstractImagePrototype img = GetPermissionIconByACL.getImage(acl);
aclDivInfo.updateInfo(acl.getLabel(), img); aclDivInfo.updateInfo(acl.getLabel(), img);
this.layout();
} }
} }