1 16 package org.apache.cocoon.woody.formmodel; 17 18 import org.apache.cocoon.woody.event.ActionEvent; 19 import org.apache.cocoon.woody.event.ActionListener; 20 21 27 public class AddRowActionDefinition extends RepeaterActionDefinition { 28 29 public AddRowActionDefinition(String repeaterName) { 30 super(repeaterName); 31 32 this.addActionListener(new ActionListener() { 33 public void actionPerformed(ActionEvent event) { 34 Repeater repeater = ((RepeaterAction)event.getSource()).getRepeater(); 35 repeater.addRow(); 36 } 37 }); 38 } 39 } 40 | Popular Tags |