|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.binding.AbstractBinding
net.sf.tacos.services.impl.TemplateBinding
public class TemplateBinding
An implementation of Tapestry IBinding
,
provide a LiteralBinding
similar binding which could have variables inside.
the variable inside should be put into ${}
.
example:
<binding name="effects" value="template:some id is ${currNote.id}."/>
You may also get the expression from page's locale file.
example:
<binding name="effects" value="template:%message-code"/>
Constructor Summary | |
---|---|
TemplateBinding(String description,
Location location,
org.apache.tapestry.coerce.ValueConverter valueConverter,
org.apache.tapestry.IComponent root,
String expression,
org.apache.tapestry.binding.BindingFactory nestedBindingFactory)
constructor |
Method Summary | |
---|---|
Object |
getObject()
Evaluate the value with inside variables. |
boolean |
isInvariant()
Should be variant because of inside ognl expression. |
Methods inherited from class org.apache.tapestry.binding.AbstractBinding |
---|
createReadOnlyBindingException, extendDescription, getComponent, getDescription, getLocation, getObject, getValueConverter, setObject, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TemplateBinding(String description, Location location, org.apache.tapestry.coerce.ValueConverter valueConverter, org.apache.tapestry.IComponent root, String expression, org.apache.tapestry.binding.BindingFactory nestedBindingFactory)
description
- location
- valueConverter
- root
- The root object against which the nested property name is evaluated.expression
- plain string or message code in page's specification file.nestedBindingFactory
- Internal used BindingFactoryMethod Detail |
---|
public Object getObject()
public boolean isInvariant()
isInvariant
in interface org.apache.tapestry.IBinding
isInvariant
in class org.apache.tapestry.binding.AbstractBinding
IBinding.isInvariant()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |