syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmarte...@apache.org
Subject svn commit: r1329631 - /incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java
Date Tue, 24 Apr 2012 10:44:03 GMT
Author: fmartelli
Date: Tue Apr 24 10:44:03 2012
New Revision: 1329631

URL: http://svn.apache.org/viewvc?rev=1329631&view=rev
Log:
SYNCOPE-63 #comment On-change event used to be written onChange instead of onchange

Modified:
    incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java

Modified: incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java?rev=1329631&r1=1329630&r2=1329631&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java
(original)
+++ incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/PolicyBeanPanel.java
Tue Apr 24 10:44:03 2012
@@ -116,29 +116,29 @@ public class PolicyBeanPanel extends Pan
                 try {
                     if (field.getType().equals(ConflictResolutionAction.class)) {
                         classMethod = policy.getClass().getMethod("get" + StringUtils.capitalize(field.getName()),
-                                new Class[] {});
+                                new Class[]{});
 
                         component = new AjaxDropDownChoicePanel("field", field.getName(),
new PropertyModel(policy,
                                 field.getName()));
 
-                        ((AjaxDropDownChoicePanel) component).setChoices(Arrays.asList(ConflictResolutionAction
-                                .values()));
+                        ((AjaxDropDownChoicePanel) component).setChoices(
+                                Arrays.asList(ConflictResolutionAction.values()));
 
                         item.add(component);
 
                         item.add(getActivationControl(component,
-                                (Enum) classMethod.invoke(policy, new Object[] {}) != null,
+                                (Enum) classMethod.invoke(policy, new Object[]{}) != null,
                                 ConflictResolutionAction.IGNORE, ConflictResolutionAction.IGNORE));
 
                     } else if (field.getType().equals(boolean.class) || field.getType().equals(Boolean.class))
{
-                        item.add(new AjaxCheckBoxPanel("check", field.getName(), new PropertyModel(policy,
field
-                                .getName())));
+                        item.add(new AjaxCheckBoxPanel("check", field.getName(), new PropertyModel(policy,
+                                field.getName())));
 
                         item.add(new Label("field", new Model(null)));
 
                     } else if (field.getType().equals(List.class) || field.getType().equals(Set.class))
{
                         classMethod = policy.getClass().getMethod("get" + StringUtils.capitalize(field.getName()),
-                                new Class[] {});
+                                new Class[]{});
 
                         if (field.getSchemaList() != null) {
                             final List values = schemas.getObject();
@@ -154,14 +154,14 @@ public class PolicyBeanPanel extends Pan
                             item.add(component);
 
                             item.add(getActivationControl(component, !((List) classMethod.invoke(policy,
-                                    new Object[] {})).isEmpty(), new ArrayList<String>(),
new ArrayList<String>()));
+                                    new Object[]{})).isEmpty(), new ArrayList<String>(),
new ArrayList<String>()));
                         } else {
                             final FieldPanel panel = new AjaxTextFieldPanel("panel", field.getName(),
new Model(null));
 
                             panel.setRequired(true);
 
-                            component = new MultiValueSelectorPanel<String>("field",
new PropertyModel(policy, field
-                                    .getName()), panel);
+                            component = new MultiValueSelectorPanel<String>("field",
new PropertyModel(policy, field.
+                                    getName()), panel);
 
                             item.add(component);
 
@@ -170,21 +170,21 @@ public class PolicyBeanPanel extends Pan
                             reinitializedValue.add("");
 
                             item.add(getActivationControl(component, !((List<String>)
classMethod.invoke(policy,
-                                    new Object[] {})).isEmpty(), (Serializable) new ArrayList<String>(),
+                                    new Object[]{})).isEmpty(), (Serializable) new ArrayList<String>(),
                                     (Serializable) reinitializedValue));
                         }
                     } else if (field.getType().equals(int.class) || field.getType().equals(Integer.class))
{
 
                         classMethod = policy.getClass().getMethod("get" + StringUtils.capitalize(field.getName()),
-                                new Class[] {});
+                                new Class[]{});
 
-                        component = new AjaxTextFieldPanel("field", field.getName(), new
PropertyModel(policy, field
-                                .getName()));
+                        component = new AjaxTextFieldPanel("field", field.getName(), new
PropertyModel(policy, field.
+                                getName()));
 
                         item.add(component);
 
                         item.add(getActivationControl(component,
-                                (Integer) classMethod.invoke(policy, new Object[] {}) >
0, 0, 0));
+                                (Integer) classMethod.invoke(policy, new Object[]{}) >
0, 0, 0));
                     } else {
                         item.add(new AjaxCheckBoxPanel("check", field.getName(), new Model()));
                         item.add(new Label("field", new Model(null)));
@@ -205,7 +205,7 @@ public class PolicyBeanPanel extends Pan
 
         panel.setEnabled(checked);
 
-        check.getField().add(new AjaxFormComponentUpdatingBehavior("onChange") {
+        check.getField().add(new AjaxFormComponentUpdatingBehavior("onchange") {
 
             private static final long serialVersionUID = -1107858522700306810L;
 



Mime
View raw message