KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tonbeller > wcf > table > DefaultTableRow


1 /*
2  * ====================================================================
3  * This software is subject to the terms of the Common Public License
4  * Agreement, available at the following URL:
5  * http://www.opensource.org/licenses/cpl.html .
6  * Copyright (C) 2003-2004 TONBELLER AG.
7  * All Rights Reserved.
8  * You must accept the terms of that agreement to use this software.
9  * ====================================================================
10  *
11  *
12  */

13 package com.tonbeller.wcf.table;
14
15 /**
16  * default implementation of a TableRow
17  */

18
19 public class DefaultTableRow implements TableRow {
20   Object JavaDoc[] columns;
21   private Object JavaDoc userData;
22   public DefaultTableRow(Object JavaDoc[] columns) {
23     this.columns = columns;
24   }
25   public Object JavaDoc getValue(int column) {
26     return columns[column];
27   }
28   public void setUserData(Object JavaDoc newUserData) {
29     userData = newUserData;
30   }
31   public Object JavaDoc getUserData() {
32     return userData;
33   }
34
35 }
36
37
Popular Tags