org.apache.tapestry.enhance
Class ParameterPropertyWorker
java.lang.Object
org.apache.tapestry.enhance.ParameterPropertyWorker
- All Implemented Interfaces:
- EnhancementWorker
public class ParameterPropertyWorker
- extends Object
- implements EnhancementWorker
Responsible for creating properties for connected parameters.
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParameterPropertyWorker
public ParameterPropertyWorker()
performEnhancement
public void performEnhancement(EnhancementOperation op,
IComponentSpecification spec)
- Specified by:
performEnhancement
in interface EnhancementWorker
addParameter
public void addParameter(EnhancementOperation op,
String parameterName,
String propertyName,
String specifiedType,
boolean cache,
org.apache.hivemind.Location location)
- Adds a parameter as a (very smart) property.
- Parameters:
op
- the enhancement operationparameterName
- the name of the parameter (used to access the binding)propertyName
- the name of the property to create (usually, but not always,
matches the parameterName)specifiedType
- the type declared in the DTD (only 3.0 DTD supports this), may
be null (always null for 4.0 DTD)cache
- if true, then the value should be cached while the component
renders; false (a much less common case) means that every
access will work through binding object.location
- Used for reporting line-precise errors in binding resolution / setting / etc..
setErrorLog
public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)
Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.