cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From br...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel Repeater.java
Date Thu, 26 Jun 2003 09:15:05 GMT
bruno       2003/06/26 02:15:05

  Modified:    src/blocks/woody/java/org/apache/cocoon/woody/formmodel
                        Repeater.java
  Log:
  Make addRow return the new row
  
  Revision  Changes    Path
  1.4       +4 -2      cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/Repeater.java
  
  Index: Repeater.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/Repeater.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- Repeater.java	14 May 2003 11:45:44 -0000	1.3
  +++ Repeater.java	26 Jun 2003 09:15:04 -0000	1.4
  @@ -85,8 +85,10 @@
           return rows.size();
       }
   
  -    public void addRow() {
  -        rows.add(new RepeaterRow());
  +    public RepeaterRow addRow() {
  +        RepeaterRow repeaterRow = new RepeaterRow();
  +        rows.add(repeaterRow);
  +        return repeaterRow;
       }
   
       public RepeaterRow getRow(int index) {
  
  
  

Mime
View raw message