KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > albel > tags > table > render > impl > ColumnEditor


1 /*
2  * ColumnEditor.java
3  *
4  * Created on Antradienis, 2004, Rugsėjo 7, 08.55
5  */

6
7 package albel.tags.table.render.impl;
8
9 /**
10  *
11  * @author alblau
12  */

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     /** Creates a new instance of ColumnEditor */
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 JavaDoc
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