- set depressed toogle to ACL at false

- denied drag of VRE Folder

git-svn-id: http://svn.d4science-ii.research-infrastructures.eu/gcube/trunk/portlets/user/workspace-tree-widget@91943 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Francesco Mangiacrapa 2014-02-19 16:02:28 +00:00
parent 8da8b6afae
commit 79ce4485eb
2 changed files with 7 additions and 0 deletions

View File

@ -59,6 +59,7 @@ public class PanelTogglePermission extends LayoutContainer {
final ToggleButton bToggle = new ToggleButton(acl.getLabel());
bToggle.setScale(ButtonScale.MEDIUM);
bToggle.setId(acl.getId());
bToggle.setAllowDepress(false);
bToggle.toggle(acl.getDefaultValue());
bToggle.setIconAlign(IconAlign.TOP);
bToggle.addSelectionListener(new SelectionListener<ButtonEvent>() {

View File

@ -318,6 +318,12 @@ public class AsyncTreePanel extends LayoutContainer {
return;
}
if(sel.isVreFolder()){
event.setCancelled(true);
event.getStatus().setStatus(false);
return;
}
if(sel != null && sel.getName()!= null)
System.out.println("Start drag of " + sel.getName());