Clover coverage report - angkor - 0.4
Coverage timestamp: ti okt 15 2002 22:32:48 CEST
file stats: LOC: 39   Methods: 1
NCLOC: 22   Classes: 1
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
DefaultTableCellViewFactory.java 0% 0% 0% 0%
 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   
 
 11   
 import com.tirsen.angkor.View;
 12   
 import com.tirsen.angkor.widget.TextInput;
 13   
 import com.tirsen.angkor.widget.ValueModel;
 14   
 
 15   
 /**
 16   
  * @author $Author: tirsen $
 17   
  * @version $Revision: 1.4 $
 18   
  * <BR>
 19   
  * $Id: DefaultTableCellViewFactory.java,v 1.4 2002/10/09 21:37:37 tirsen Exp $
 20   
  */
 21   
 public class DefaultTableCellViewFactory extends ReadOnlyCellViewFactory
 22   
 {
 23  0
     public View getTableCellView(Table table, ValueModel value, int row, int column)
 24   
     {
 25  0
         View cell;
 26  0
         if (value.isReadOnly())
 27   
         {
 28  0
             cell = super.getTableCellView(table, value, row, column);
 29   
         }
 30   
         else
 31   
         {
 32  0
             TextInput input = new TextInput();
 33  0
             input.setModel(value);
 34  0
             cell = input;
 35   
         }
 36  0
         return cell;
 37   
     }
 38   
 }
 39