click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r937822 - in /click/trunk/click: extras/src/org/apache/click/extras/control/FormTable.java extras/src/org/apache/click/extras/control/LinkDecorator.java framework/src/org/apache/click/control/Table.java
Date Sun, 25 Apr 2010 17:00:27 GMT
Author: sabob
Date: Sun Apr 25 17:00:26 2010
New Revision: 937822

URL: http://svn.apache.org/viewvc?rev=937822&view=rev
Log:
deprecate addControl method

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
    click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java
    click/trunk/click/framework/src/org/apache/click/control/Table.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java?rev=937822&r1=937821&r2=937822&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/FormTable.java Sun Apr 25
17:00:26 2010
@@ -661,7 +661,7 @@ public class FormTable extends Table {
 
         // If Form is internal add it to table
         if (useInternalForm) {
-            addControl(form);
+            add(form);
         }
     }
 }

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java?rev=937822&r1=937821&r2=937822&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/LinkDecorator.java Sun Apr
25 17:00:26 2010
@@ -232,7 +232,7 @@ public class LinkDecorator implements De
         this.linksArray[0] = link;
         this.idProperty = idProperty;
 
-        table.addControl(new LinkDecorator.PageNumberControl(table));
+        table.add(new LinkDecorator.PageNumberControl(table));
     }
 
     /**
@@ -259,7 +259,7 @@ public class LinkDecorator implements De
         this.linksArray = links;
         this.idProperty = idProperty;
 
-        table.addControl(new LinkDecorator.PageNumberControl(table));
+        table.add(new LinkDecorator.PageNumberControl(table));
     }
 
     /**
@@ -331,7 +331,7 @@ public class LinkDecorator implements De
         this.idProperty = idProperty;
         this.linkSeparator = " ";
 
-        table.addControl(new LinkDecorator.PageNumberControl(table));
+        table.add(new LinkDecorator.PageNumberControl(table));
     }
 
     /**
@@ -402,7 +402,7 @@ public class LinkDecorator implements De
         this.idProperty = idProperty;
         this.linkSeparator = " ";
 
-        table.addControl(new LinkDecorator.PageNumberControl(table));
+        table.add(new LinkDecorator.PageNumberControl(table));
     }
 
     /**
@@ -466,7 +466,7 @@ public class LinkDecorator implements De
             }
         }
 
-        table.addControl(new LinkDecorator.PageNumberControl(table));
+        table.add(new LinkDecorator.PageNumberControl(table));
     }
 
     // ------------------------------------------------------ Public Properties

Modified: click/trunk/click/framework/src/org/apache/click/control/Table.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/control/Table.java?rev=937822&r1=937821&r2=937822&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/control/Table.java (original)
+++ click/trunk/click/framework/src/org/apache/click/control/Table.java Sun Apr 25 17:00:26
2010
@@ -710,6 +710,8 @@ public class Table extends AbstractContr
      * Add the given Control to the table. The control will be processed when
      * the Table is processed.
      *
+     * @deprecated use {@link #add(org.apache.click.Control)} instead
+     *
      * @param control the Control to add to the table
      * @return the added control
      */



Mime
View raw message