1 package org.weda.tapestry.binding; 2 3 import org.apache.hivemind.Location; 4 import org.apache.tapestry.IBinding; 5 import org.apache.tapestry.IComponent; 6 import org.apache.tapestry.binding.AbstractBindingFactory; 7 import org.weda.model.TableModelRegistry; 8 9 /** 10 * 11 * @author tim 12 */ 13 public class TableModelBindingFactory extends AbstractBindingFactory { 14 private TableModelRegistry tableModelRegistry; 15 16 public IBinding createBinding( 17 IComponent iComponent, String description, String expression 18 , Location location) 19 { 20 return new TableModeleBinding( 21 description, getValueConverter(), location, tableModelRegistry 22 , expression); 23 } 24 25 public void setTableModelRegistry(TableModelRegistry tableModelRegistry) { 26 this.tableModelRegistry = tableModelRegistry; 27 } 28 29 }