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 public View getTableCellView(Table table, ValueModel value, int row, int column)
24 {
25 View cell;
26 if (value.isReadOnly())
27 {
28 cell = super.getTableCellView(table, value, row, column);
29 }
30 else
31 {
32 TextInput input = new TextInput();
33 input.setModel(value);
34 cell = input;
35 }
36 return cell;
37 }
38 }
This page was automatically generated by Maven