[Yanel-commits] rev 33450 -
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client
michi at wyona.com
michi at wyona.com
Sun Mar 16 14:07:46 CET 2008
Author: michi
Date: 2008-03-16 14:07:44 +0100 (Sun, 16 Mar 2008)
New Revision: 33450
Modified:
public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java
Log:
add empty rights according to available rights
Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java 2008-03-15 23:18:57 UTC (rev 33449)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java 2008-03-16 13:07:44 UTC (rev 33450)
@@ -512,7 +512,7 @@
writeCB.addClickListener(this);
vp.add(writeCB);
} else {
- Window.alert("Available rights not loaded yet! Please don't worry, they will arrive soon hopefully!");
+ //Window.alert("Available rights not loaded yet! Please don't worry, they will arrive soon hopefully!");
}
}
@@ -521,6 +521,11 @@
* @param name Name of user or group
*/
public void addItem(String type, String name) {
- lb.addItem(type + ": (-,-) " + name, type + ": " + name);
+ StringBuffer emptyRights = new StringBuffer("(-");
+ for (int i = 1; i < availableRightsCB.length; i++) {
+ emptyRights.append(",-");
+ }
+ emptyRights.append(")");
+ lb.addItem(type + ": " + emptyRights + " " + name, type + ": " + name);
}
}
More information about the Yanel-commits
mailing list