| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
|
| 6 |
|
package net.sf.tacos.binding; |
| 7 |
|
|
| 8 |
|
import org.apache.hivemind.Location; |
| 9 |
|
import org.apache.tapestry.IBinding; |
| 10 |
|
import org.apache.tapestry.IComponent; |
| 11 |
|
import org.apache.tapestry.binding.AbstractBindingFactory; |
| 12 |
|
import org.apache.tapestry.binding.BindingFactory; |
| 13 |
|
|
| 14 |
|
|
| 15 |
|
|
| 16 |
|
|
| 17 |
|
|
| 18 |
0 |
public class TemplateBindingFactory extends AbstractBindingFactory |
| 19 |
|
{ |
| 20 |
|
|
| 21 |
|
|
| 22 |
|
|
| 23 |
|
private BindingFactory nestedBindingFactory; |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
|
| 27 |
|
|
| 28 |
|
|
| 29 |
|
|
| 30 |
|
public void setNestedBindingFactory(BindingFactory nestedBindingFactory) |
| 31 |
|
{ |
| 32 |
0 |
this.nestedBindingFactory = nestedBindingFactory; |
| 33 |
0 |
} |
| 34 |
|
|
| 35 |
|
|
| 36 |
|
|
| 37 |
|
|
| 38 |
|
public IBinding createBinding(IComponent root, String bindingDescription, String path, Location location) |
| 39 |
|
{ |
| 40 |
0 |
return new TemplateBinding(bindingDescription, location, getValueConverter(), root, path, nestedBindingFactory); |
| 41 |
|
} |
| 42 |
|
} |