1 package org.weda.tapestry.binding;
2
3 import org.apache.hivemind.Location;
4 import org.apache.tapestry.binding.AbstractBinding;
5 import org.apache.tapestry.coerce.ValueConverter;
6 import org.weda.model.TableModelRegistry;
7
8 /**
9 *
10 * @author tim
11 */
12 public class TableModeleBinding extends AbstractBinding {
13 private TableModelRegistry tableModelRegistry;
14 private String tableModelName;
15
16 public TableModeleBinding(
17 String description, ValueConverter valueConverter, Location location
18 , TableModelRegistry tableModelRegistry, String tableModelName)
19 {
20 super(description, valueConverter, location);
21 this.tableModelRegistry=tableModelRegistry;
22 this.tableModelName=tableModelName;
23 }
24
25 public Object getObject() {
26 return tableModelRegistry.getTableModel(tableModelName);
27 }
28
29 public boolean isInvariant() {
30 return false;
31 }
32
33 }