[Yanel-commits] rev 33448 - 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 00:18:04 CET 2008


Author: michi
Date: 2008-03-16 00:18:03 +0100 (Sun, 16 Mar 2008)
New Revision: 33448

Modified:
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java
Log:
method added to add new items

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:09:15 UTC (rev 33447)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/PolicyListBoxWidget.java	2008-03-15 23:18:03 UTC (rev 33448)
@@ -515,4 +515,12 @@
             Window.alert("Available rights not loaded yet! Please don't worry, they will arrive soon hopefully!");
         }
     }
+
+    /*
+     * @param type User or Group
+     * @param name Name of user or group
+     */
+    public void addItem(String type, String name) {
+        lb.addItem(type + ": (-,-) " + name, type + ": " + name);
+    }
 }



More information about the Yanel-commits mailing list