|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.tacos.ajax.impl.InjectAjaxComponentRenderWorker
public class InjectAjaxComponentRenderWorker
Adds method call before AbstractComponent.renderComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
which calls the AjaxWebRequest
, if available, to get the correct
IMarkupWriter
to use to render itself, based on the unique component id of
the IComponent
being rendered.
Constructor Summary | |
---|---|
InjectAjaxComponentRenderWorker()
|
Method Summary | |
---|---|
protected String |
buildMethodCallBack(org.apache.tapestry.spec.IComponentSpecification spec,
MethodSignature method,
MethodSignature accessor)
Builds the new enhanced render method which calls ResponseBuilder to get the correct writer
to use for method. |
protected String |
buildScriptMethodCallBack(org.apache.tapestry.spec.IComponentSpecification spec,
MethodSignature method,
MethodSignature accessor)
Called specifically when dealing with Body components. |
protected MethodSignature |
createAjaxRequestAccessor(org.apache.tapestry.enhance.EnhancementOperation op,
org.apache.tapestry.spec.IComponentSpecification spec)
Creates an accessor method on the IComponent being enhanced
so it can access the AjaxWebRequest at runtime. |
void |
performEnhancement(org.apache.tapestry.enhance.EnhancementOperation op,
org.apache.tapestry.spec.IComponentSpecification spec)
|
void |
setAjaxRequest(AjaxWebRequest ajaxRequest)
Injected ajaexRequest reference. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InjectAjaxComponentRenderWorker()
Method Detail |
---|
public void setAjaxRequest(AjaxWebRequest ajaxRequest)
ajaxRequest
- public void performEnhancement(org.apache.tapestry.enhance.EnhancementOperation op, org.apache.tapestry.spec.IComponentSpecification spec)
performEnhancement
in interface org.apache.tapestry.enhance.EnhancementWorker
protected MethodSignature createAjaxRequestAccessor(org.apache.tapestry.enhance.EnhancementOperation op, org.apache.tapestry.spec.IComponentSpecification spec)
IComponent
being enhanced
so it can access the AjaxWebRequest
at runtime.
op
- spec
-
MethodSignature
of the created accessor.protected String buildMethodCallBack(org.apache.tapestry.spec.IComponentSpecification spec, MethodSignature method, MethodSignature accessor)
ResponseBuilder
to get the correct writer
to use for method.
spec
- method
- accessor
-
protected String buildScriptMethodCallBack(org.apache.tapestry.spec.IComponentSpecification spec, MethodSignature method, MethodSignature accessor)
Body
components. This method
will do the normal writer return semantics, but will first add it's
"script" contributions to the response builder.
spec
- method
- accessor
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |