|
|||||||||||||||||||
| Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| ReadOnlyCellViewFactory.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 |
/* |
|
| 2 |
* Angkor Web Framework |
|
| 3 |
* |
|
| 4 |
* Distributable under LGPL license. |
|
| 5 |
* See terms of license at gnu.org. |
|
| 6 |
*/ |
|
| 7 |
|
|
| 8 |
package com.tirsen.angkor.table; |
|
| 9 |
|
|
| 10 |
import com.tirsen.angkor.View; |
|
| 11 |
import com.tirsen.angkor.widget.TextLabel; |
|
| 12 |
import com.tirsen.angkor.widget.ValueModel; |
|
| 13 |
|
|
| 14 |
/** |
|
| 15 |
* <!-- $Id: ReadOnlyCellViewFactory.java,v 1.3 2002/10/09 21:37:37 tirsen Exp $ --> |
|
| 16 |
* <!-- $Author: tirsen $ --> |
|
| 17 |
* |
|
| 18 |
* @author Jon Tirs´n (tirsen@users.sourceforge.net) |
|
| 19 |
* @version $Revision: 1.3 $ |
|
| 20 |
*/ |
|
| 21 |
public class ReadOnlyCellViewFactory implements TableCellViewFactory |
|
| 22 |
{
|
|
| 23 | 15 |
public View getTableCellView(Table table, ValueModel value, int row, int column) |
| 24 |
{
|
|
| 25 | 15 |
TextLabel label = new TextLabel(); |
| 26 | 15 |
label.setModel(value); |
| 27 | 15 |
return label; |
| 28 |
} |
|
| 29 |
} |
|
| 30 |
|
|
||||||||||