- 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:
parent
8da8b6afae
commit
79ce4485eb
|
@ -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>() {
|
||||
|
|
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue