org.apache.tapestry.enhance
Class SpecifiedPropertyWorker

java.lang.Object
  extended by org.apache.tapestry.enhance.SpecifiedPropertyWorker
All Implemented Interfaces:
EnhancementWorker

public class SpecifiedPropertyWorker
extends Object
implements EnhancementWorker

Responsible for adding properties to a class corresponding to specified properties in the component's specification - which may come from .jwc / .page specifications or annotated abstract methods.

Since:
4.0
Author:
Howard M. Lewis Ship

Constructor Summary
SpecifiedPropertyWorker()
           
 
Method Summary
 void addProperty(EnhancementOperation op, String propertyName, String specifiedType, boolean persistent, String initialValue, org.apache.hivemind.Location location, IPropertySpecification ps)
           
 void performEnhancement(EnhancementOperation op, IComponentSpecification spec)
          Iterates over the specified properties, creating an enhanced property for each (a field, an accessor, a mutator).
 void setBindingSource(BindingSource bindingSource)
           
 void setErrorLog(org.apache.hivemind.ErrorLog errorLog)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecifiedPropertyWorker

public SpecifiedPropertyWorker()
Method Detail

performEnhancement

public void performEnhancement(EnhancementOperation op,
                               IComponentSpecification spec)
Iterates over the specified properties, creating an enhanced property for each (a field, an accessor, a mutator). Persistent properties will invoke Tapestry.fireObservedChange(IComponent, String, Object)in thier mutator.

Specified by:
performEnhancement in interface EnhancementWorker

addProperty

public void addProperty(EnhancementOperation op,
                        String propertyName,
                        String specifiedType,
                        boolean persistent,
                        String initialValue,
                        org.apache.hivemind.Location location,
                        IPropertySpecification ps)

setErrorLog

public void setErrorLog(org.apache.hivemind.ErrorLog errorLog)

setBindingSource

public void setBindingSource(BindingSource bindingSource)


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.