View Javadoc

1   /*
2    * EditorModelGroupBindingFactory.java
3    *
4    * Created on 3 Март 2006 г., 17:15
5    */
6   
7   package org.weda.tapestry.binding;
8   
9   import org.apache.hivemind.Location;
10  import org.apache.tapestry.IBinding;
11  import org.apache.tapestry.IComponent;
12  import org.apache.tapestry.binding.AbstractBindingFactory;
13  import org.weda.model.EditorModelRegistry;
14  
15  /**
16   *
17   * @author Mikhail Titov
18   */
19  public class EditorModelGroupBindingFactory extends AbstractBindingFactory {    
20      private EditorModelRegistry modelRegistry;
21              
22      public IBinding createBinding(
23              IComponent iComponent, String description, String expression
24              , Location location) 
25      {
26          return new EditorModelGroupBinding(
27                  description, getValueConverter(), location, modelRegistry
28                  , expression);
29      }    
30  
31      public void setModelRegistry(EditorModelRegistry modelRegistry) {
32          this.modelRegistry = modelRegistry;
33      }
34  }