click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r1083243 - in /click/trunk/click: examples/src/org/apache/click/examples/page/panel/ extras/src/org/apache/click/extras/control/ extras/src/org/apache/click/extras/spring/ framework/src/org/apache/click/ framework/src/org/apache/click/util/...
Date Sat, 19 Mar 2011 18:08:13 GMT
Author: sabob
Date: Sat Mar 19 18:08:12 2011
New Revision: 1083243

URL: http://svn.apache.org/viewvc?rev=1083243&view=rev
Log:
remove whitespaces

Modified:
    click/trunk/click/examples/src/org/apache/click/examples/page/panel/StatefulTabbedPanelDemo.java
    click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java
    click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java
    click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java
    click/trunk/click/framework/src/org/apache/click/Page.java
    click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java
    click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java

Modified: click/trunk/click/examples/src/org/apache/click/examples/page/panel/StatefulTabbedPanelDemo.java
URL: http://svn.apache.org/viewvc/click/trunk/click/examples/src/org/apache/click/examples/page/panel/StatefulTabbedPanelDemo.java?rev=1083243&r1=1083242&r2=1083243&view=diff
==============================================================================
--- click/trunk/click/examples/src/org/apache/click/examples/page/panel/StatefulTabbedPanelDemo.java
(original)
+++ click/trunk/click/examples/src/org/apache/click/examples/page/panel/StatefulTabbedPanelDemo.java
Sat Mar 19 18:08:12 2011
@@ -1,130 +1,130 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package org.apache.click.examples.page.panel;
-
-import java.util.List;
-
-import javax.annotation.Resource;
-import org.apache.click.ActionListener;
-import org.apache.click.Control;
-import org.apache.click.control.Column;
-import org.apache.click.control.Form;
-
-import org.apache.click.control.Panel;
-import org.apache.click.control.Submit;
-import org.apache.click.control.Table;
-import org.apache.click.control.TextField;
-import org.apache.click.examples.domain.Customer;
-import org.apache.click.examples.page.BorderPage;
-import org.apache.click.examples.service.CustomerService;
-import org.apache.click.extras.panel.TabbedPanel;
-import org.springframework.stereotype.Component;
-
-/**
- * Provides a stateful TabbedPanel demo. The selected Tab will be
- * preserved between requests.
- */
-@Component
-public class StatefulTabbedPanelDemo extends BorderPage {
-
-    private static final long serialVersionUID = 1L;
-
-    private TabbedPanel tabbedPanel = new TabbedPanel("tabbedPanel");
-    private List<Customer> customers;
-
-    @Resource(name="customerService")
-    private CustomerService customerService;
-
-    // Constructor ------------------------------------------------------------
-
-    @Override
-    public void onInit() {
-        super.onInit();
-
-        addControl(tabbedPanel);
-
-        Panel panel1 = new Panel("panel1", "panel/tabbed/panel1.htm");
-        tabbedPanel.add(panel1);
-
-        Panel panel2 = new Panel("panel2", "panel/tabbed/form-panel2.htm");
-        Form form = new Form("form");
-        panel2.add(form);
-
-        final TextField field = new TextField("name", "Enter your name");
-        form.add(field);
-        Submit submit = new Submit("go");
-        submit.setActionListener(new ActionListener() {
-
-            public boolean onAction(Control source) {
-                addModel("msg", "Hi " + field.getValue() + ". Your form has been saved!");
-                return true;
-            }
-        });
-
-        form.add(submit);
-        
-        panel2.setLabel("The Second Panel");
-        tabbedPanel.add(panel2);
-
-        Panel panel3 = new Panel("panel3", "panel/tabbed/table-panel3.htm");
-        Table table = new Table("table");
-        table = new Table("table");
-
-        table.setClass(Table.CLASS_ITS);
-
-        table.addColumn(new Column("id"));
-        table.addColumn(new Column("name"));
-        table.addColumn(new Column("email"));
-        table.addColumn(new Column("investments"));
-        table.setPageSize(5);
-        table.setSortable(true);
-
-        List list = customerService.getCustomersSortedByName(100);
-        table.setRowList(list);
-
-        panel3.add(table);
-
-        tabbedPanel.add(panel3);
-
-        // NOTE: Save the TabbedPanel state when a new panel is activated.
-        // Register a listener that is notified when a different panel is selected.
-        tabbedPanel.setTabListener(new ActionListener() {
-            public boolean onAction(Control source) {
-                // Save the TabbedPanel state to the session
-                tabbedPanel.saveState(getContext());
-                return true;
-            }
-        });
-
-        // NOTE: Restore the TabbedPanel state. This will set the active panel from the
-        // state that was saved from the TaListener above
-        tabbedPanel.restoreState(getContext());
-    }
-
-    // Event Handlers ---------------------------------------------------------
-
-    /**
-     * @see org.apache.click.Page#onRender()
-     */
-    @Override
-    public void onRender() {
-        customers = customerService.getCustomersSortedByName(12);
-        addModel("customers", customers);
-    }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.click.examples.page.panel;
+
+import java.util.List;
+
+import javax.annotation.Resource;
+import org.apache.click.ActionListener;
+import org.apache.click.Control;
+import org.apache.click.control.Column;
+import org.apache.click.control.Form;
+
+import org.apache.click.control.Panel;
+import org.apache.click.control.Submit;
+import org.apache.click.control.Table;
+import org.apache.click.control.TextField;
+import org.apache.click.examples.domain.Customer;
+import org.apache.click.examples.page.BorderPage;
+import org.apache.click.examples.service.CustomerService;
+import org.apache.click.extras.panel.TabbedPanel;
+import org.springframework.stereotype.Component;
+
+/**
+ * Provides a stateful TabbedPanel demo. The selected Tab will be
+ * preserved between requests.
+ */
+@Component
+public class StatefulTabbedPanelDemo extends BorderPage {
+
+    private static final long serialVersionUID = 1L;
+
+    private TabbedPanel tabbedPanel = new TabbedPanel("tabbedPanel");
+    private List<Customer> customers;
+
+    @Resource(name="customerService")
+    private CustomerService customerService;
+
+    // Constructor ------------------------------------------------------------
+
+    @Override
+    public void onInit() {
+        super.onInit();
+
+        addControl(tabbedPanel);
+
+        Panel panel1 = new Panel("panel1", "panel/tabbed/panel1.htm");
+        tabbedPanel.add(panel1);
+
+        Panel panel2 = new Panel("panel2", "panel/tabbed/form-panel2.htm");
+        Form form = new Form("form");
+        panel2.add(form);
+
+        final TextField field = new TextField("name", "Enter your name");
+        form.add(field);
+        Submit submit = new Submit("go");
+        submit.setActionListener(new ActionListener() {
+
+            public boolean onAction(Control source) {
+                addModel("msg", "Hi " + field.getValue() + ". Your form has been saved!");
+                return true;
+            }
+        });
+
+        form.add(submit);
+
+        panel2.setLabel("The Second Panel");
+        tabbedPanel.add(panel2);
+
+        Panel panel3 = new Panel("panel3", "panel/tabbed/table-panel3.htm");
+        Table table = new Table("table");
+        table = new Table("table");
+
+        table.setClass(Table.CLASS_ITS);
+
+        table.addColumn(new Column("id"));
+        table.addColumn(new Column("name"));
+        table.addColumn(new Column("email"));
+        table.addColumn(new Column("investments"));
+        table.setPageSize(5);
+        table.setSortable(true);
+
+        List list = customerService.getCustomersSortedByName(100);
+        table.setRowList(list);
+
+        panel3.add(table);
+
+        tabbedPanel.add(panel3);
+
+        // NOTE: Save the TabbedPanel state when a new panel is activated.
+        // Register a listener that is notified when a different panel is selected.
+        tabbedPanel.setTabListener(new ActionListener() {
+            public boolean onAction(Control source) {
+                // Save the TabbedPanel state to the session
+                tabbedPanel.saveState(getContext());
+                return true;
+            }
+        });
+
+        // NOTE: Restore the TabbedPanel state. This will set the active panel from the
+        // state that was saved from the TaListener above
+        tabbedPanel.restoreState(getContext());
+    }
+
+    // Event Handlers ---------------------------------------------------------
+
+    /**
+     * @see org.apache.click.Page#onRender()
+     */
+    @Override
+    public void onRender() {
+        customers = customerService.getCustomersSortedByName(12);
+        addModel("customers", customers);
+    }
+}

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java?rev=1083243&r1=1083242&r2=1083243&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/DateField.java Sat Mar 19
18:08:12 2011
@@ -157,8 +157,8 @@ import org.apache.commons.lang.StringUti
  *   <li><tt>calendar-today</tt> - the label on the "Today" button.</li>
  *   <li><tt>calendar-clear</tt> - the label on the "Clear" button.</li>
  * </ul>
- * The buttons are only shown when DateField popup also contains time: 
- * <tt>field.setShowTime(true);</tt> 
+ * The buttons are only shown when DateField popup also contains time:
+ * <tt>field.setShowTime(true);</tt>
  * <p/>
  * See also W3C HTML reference
  * <a class="external" target="_blank" title="W3C HTML 4.01 Specification"

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java?rev=1083243&r1=1083242&r2=1083243&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/PickList.java Sat Mar 19
18:08:12 2011
@@ -888,7 +888,7 @@ public class PickList extends Field {
         if (hasAttributes()) {
             Map<String, String> localAttributes = getAttributes();
             for (Map.Entry<String, String> entry : localAttributes.entrySet()) {
-                String attrName = entry.getKey(); 
+                String attrName = entry.getKey();
                 if (!attrName.equals("id") && !attrName.equals("class")) {
                     attributesBuffer.appendAttributeEscaped(attrName, entry.getValue());
                 }

Modified: click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java?rev=1083243&r1=1083242&r2=1083243&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/spring/SpringClickServlet.java Sat
Mar 19 18:08:12 2011
@@ -368,7 +368,7 @@ public class SpringClickServlet extends 
     protected ApplicationContext applicationContext;
 
     /** The list of page injectable Spring beans, keyed on page class name. */
-    protected Map<Class<? extends Page>, List<BeanNameAndMethod>> pageSetterBeansMap
= 
+    protected Map<Class<? extends Page>, List<BeanNameAndMethod>> pageSetterBeansMap
=
         new HashMap<Class<? extends Page>, List<BeanNameAndMethod>>();
 
     // Public Methods ----------------------------------------------------------

Modified: click/trunk/click/framework/src/org/apache/click/Page.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/Page.java?rev=1083243&r1=1083242&r2=1083243&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/Page.java (original)
+++ click/trunk/click/framework/src/org/apache/click/Page.java Sat Mar 19 18:08:12 2011
@@ -1197,7 +1197,7 @@ public class Page implements Serializabl
 
             Iterator<? extends Map.Entry<String, ?>> i = params.entrySet().iterator();
             while (i.hasNext()) {
-                Map.Entry<String, ?> entry = i.next(); 
+                Map.Entry<String, ?> entry = i.next();
                 String paramName = entry.getKey();
                 Object paramValue = entry.getValue();
 

Modified: click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java?rev=1083243&r1=1083242&r2=1083243&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java (original)
+++ click/trunk/click/framework/src/org/apache/click/util/ContainerUtils.java Sat Mar 19 18:08:12
2011
@@ -177,7 +177,7 @@ public class ContainerUtils {
             }
         }
     }
-    
+
     /**
      * Populate the given object attributes from the Containers field values.
      *
@@ -1381,10 +1381,10 @@ public class ContainerUtils {
 
         ClickUtils.getLogService().warn(message);
     }
-    
+
     /**
-     * This class fix an error in ognl's conversion of double->BigDecimal. The 
-     * default conversion uses BigDecimal(double), the fix is to use 
+     * This class fix an error in ognl's conversion of double->BigDecimal. The
+     * default conversion uses BigDecimal(double), the fix is to use
      * BigDecimal.valueOf(double)
      *
      */

Modified: click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java
URL: http://svn.apache.org/viewvc/click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java?rev=1083243&r1=1083242&r2=1083243&view=diff
==============================================================================
--- click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java (original)
+++ click/trunk/click/mock/src/org/apache/click/servlet/MockRequest.java Sat Mar 19 18:08:12
2011
@@ -678,7 +678,7 @@ public class MockRequest implements Http
                     final String name = iterator.next();
                     final Object value = parameters.get(name);
                     if (value instanceof String[]) {
-                        String[] aValue = (String[]) value; 
+                        String[] aValue = (String[]) value;
                         for (int i = 0; i < aValue.length; i++) {
                             buf.append(URLEncoder.encode(name, "UTF-8"));
                             buf.append('=');



Mime
View raw message