1
2
3
4
5 package oscon2006.web.excel;
6
7 import wicket.Component;
8 import wicket.model.IModel;
9 import org.apache.poi.hssf.usermodel.*;
10
11 public class ExcelRowModel implements IModel
12 {
13 private transient HSSFRow row;
14
15 public ExcelRowModel(HSSFRow r)
16 {
17 this.row = r;
18 }
19
20 public IModel getNestedModel()
21 {
22 return null;
23 }
24
25 public Object getObject(Component component)
26 {
27 return this.row;
28 }
29
30 public void setObject(Component c, Object obj)
31 {
32 this.row = (HSSFRow) obj;
33 }
34
35 public void detach()
36 {
37
38 }
39
40 }