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:
parent
543a3eb0d1
commit
d9841cda92
|
@ -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<List<WorkspaceACL>>() {
|
||||
|
||||
@Override
|
||||
|
|
|
@ -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 = "<div style=\"width: 100%; height: 28px; text-align:left;\">";
|
||||
String html = "<div style=\"width: 100%; height: 25px; text-align:left;\">";
|
||||
|
||||
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){
|
||||
|
|
|
@ -173,5 +173,6 @@ public class GxtBottomToolBarItem extends ToolBar{
|
|||
|
||||
AbstractImagePrototype img = GetPermissionIconByACL.getImage(acl);
|
||||
aclDivInfo.updateInfo(acl.getLabel(), img);
|
||||
this.layout();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue