[Yanel-commits] rev 32966 - in public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor: client public

michi at wyona.com michi at wyona.com
Wed Mar 5 23:16:57 CET 2008


Author: michi
Date: 2008-03-05 23:16:57 +0100 (Wed, 05 Mar 2008)
New Revision: 32966

Modified:
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AccessPolicyEditor.java
   public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/style.css
Log:
more style added

Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AccessPolicyEditor.java
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AccessPolicyEditor.java	2008-03-05 22:04:47 UTC (rev 32965)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/client/AccessPolicyEditor.java	2008-03-05 22:16:57 UTC (rev 32966)
@@ -47,6 +47,7 @@
 
     IdentitiesListBoxWidget identitiesLBW;
     PolicyListBoxWidget policyLBW;
+    Button saveButton;
 
     int visibleItemCount = 10;
 
@@ -83,7 +84,7 @@
         TextBox searchTB = new TextBox();
         searchTB.setVisibleLength(30);
         searchFilterVP.add(searchTB);
-        searchFilterVP.add(new Button("Search within Identities"));
+        searchFilterVP.add(new Button("Search User or Group"));
 
         HorizontalPanel hp = new HorizontalPanel();
         hp.setVerticalAlignment(HasVerticalAlignment.ALIGN_MIDDLE);
@@ -96,12 +97,14 @@
 
         // Save Button
         final String savePolicyUrl = savePolicyURL;
-        //Button saveButton = new Button("Save Policy and Exit", new ClickListener() {
-        Button saveButton = new Button("Save Policy", new ClickListener() {
+        //saveButton = new Button("Save Policy and Exit", new ClickListener() {
+        saveButton = new Button("Save Policy", new ClickListener() {
             public void onClick(Widget sender) {
                 final AsynchronousPolicySetter aps = new AsynchronousPolicySetter(savePolicyUrl);
                 try {
                     com.google.gwt.http.client.Request request = aps.sendRequest(policyLBW.getUsers(), policyLBW.getGroups(), policyLBW.getUseInheritedPolicies());
+                    // TODO: Disable button during save (start a timer in order to enable when response has been received)
+                    //saveButton.setEnabled(false);
                 } catch (Exception e) {
                     Window.alert("Exception: " + e.getMessage());
                 }
@@ -129,6 +132,7 @@
         policyLBW = new PolicyListBoxWidget(visibleItemCount, policyUsers, policyGroups, useInheritedPolicies);
 
 	AddRemoveIdentitiesWidget ariw = new AddRemoveIdentitiesWidget(identitiesLBW.getListBox(), policyLBW.getListBox(), policyLBW);
+        ariw.setStyleName("gwt-wyona-AddRemoveWidget");
 
         //Button removeIdentityButton = new Button("DEBUG", new AddRemoveClickListener(identitiesLB));
 

Modified: public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/style.css
===================================================================
--- public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/style.css	2008-03-05 22:04:47 UTC (rev 32965)
+++ public/yanel/contributions/ajax-components/src/access-policy-editor/java/org/wyona/security/gwt/accesspolicyeditor/public/style.css	2008-03-05 22:16:57 UTC (rev 32966)
@@ -10,6 +10,12 @@
 /* Custom style */
 
 /* */
+.gwt-wyona-AddRemoveWidget {
+  margin: 20px;
+  font-size: 300%;
+*/
+
+/* */
 /*
 .gwt-wyona-SaveButton {
   font-size: 300%;
@@ -19,7 +25,7 @@
 
 /* */
 /*
-.gwt-wyona-CanelButton {
+.gwt-wyona-CancelButton {
   font-size: 300%;
   width: 200px;
 }



More information about the Yanel-commits mailing list