1 6 7 package albel.tags.table.render.impl; 8 9 13 import albel.tags.table.utils.*; 14 import albel.tags.table.model.*; 15 import albel.tags.table.render.*; 16 import org.apache.ecs.html.*; 17 18 19 public class ColumnEditor implements albel.tags.table.render.IColumnEditor 20 { 21 22 23 public ColumnEditor() 24 { 25 } 26 27 public org.apache.ecs.html.TD render(albel.tags.table.model.Cell rowcol) throws javax.servlet.jsp.JspException  28 { 29 TD td=new TD(); 30 Input input=new Input(); 31 input.setType(Input.TEXT); 32 input.setName(rowcol.getColumn().getProperty()); 33 input.setValue(org.apache.commons.lang.StringUtils.defaultString(rowcol.getValue())); 34 input.setMaxlength(rowcol.getColumn().getWidth()); 35 input.setSize(rowcol.getColumn().getWidth()); 36 td.addElement(input); 37 return td; 38 } 39 40 } 41 | Popular Tags |