click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r960209 - /click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java
Date Sat, 03 Jul 2010 12:26:59 GMT
Author: sabob
Date: Sat Jul  3 12:26:59 2010
New Revision: 960209

URL: http://svn.apache.org/viewvc?rev=960209&view=rev
Log:
Menu.add should return menu to be consistent with rest of framework.

Modified:
    click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java

Modified: click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java
URL: http://svn.apache.org/viewvc/click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java?rev=960209&r1=960208&r2=960209&view=diff
==============================================================================
--- click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java (original)
+++ click/trunk/click/extras/src/org/apache/click/extras/control/Menu.java Sat Jul  3 12:26:59
2010
@@ -1088,10 +1088,12 @@ public class Menu extends AbstractContro
      * of the submenu.
      *
      * @param menu the submenu to add
+     * @return the menu that was added
      */
-    public void add(Menu menu) {
+    public Menu add(Menu menu) {
         getChildren().add(menu);
         menu.setParent(this);
+        return menu;
     }
 
     /**



Mime
View raw message