|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.tacos.ajax.impl.FormComponentEventWorker
public class FormComponentEventWorker
Looks for the existance of any "eventListener" parameters to
IFormComponent
and adds render contributions
to the component for linking javascript events to ajax actions.
Field Summary | |
---|---|
protected AjaxWebRequest |
ajaxRequest
injected ajex request reference |
static String |
EVENT_PARAMETER
event listener parameter name |
protected org.apache.tapestry.services.ExpressionEvaluator |
expressionEvaluator
injected ognl parser |
static String |
FORMATTER_PARAMETER
formatting parameter name |
protected static String |
RENDER_METHOD
render method of IRender |
protected static Class[] |
RENDER_PARAMS
parameters to render method in IRender |
protected org.apache.tapestry.engine.IScriptSource |
scriptSource
injected script source. |
Constructor Summary | |
---|---|
FormComponentEventWorker()
|
Method Summary | |
---|---|
protected String |
buildMethodCallBack(org.apache.tapestry.spec.IComponentSpecification spec,
MethodSignature method,
MethodSignature accessor,
MethodSignature exprAccessor,
MethodSignature scriptSourceAccessor)
Enhances the AbstractFormComponent.renderFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
method of all form fields to handle any possible defferred script actions. |
protected MethodSignature |
createExpressionAccessor(org.apache.tapestry.enhance.EnhancementOperation op,
org.apache.tapestry.spec.IComponentSpecification spec)
Creates an injected ExpressionEvaluator field into the component which
will be used by enhanced methods to generate ajax request links. |
protected MethodSignature |
createRequestAccessor(org.apache.tapestry.enhance.EnhancementOperation op,
org.apache.tapestry.spec.IComponentSpecification spec)
Creates an injected AjaxWebRequest field into the component which
will be used by enhanced methods to use ajax resources. |
protected MethodSignature |
createScriptSourceAccessor(org.apache.tapestry.enhance.EnhancementOperation op,
org.apache.tapestry.spec.IComponentSpecification spec)
Creates an injected IScriptSource field into the component which
will be used by enhanced methods to use Tapestry script sources. |
void |
performEnhancement(org.apache.tapestry.enhance.EnhancementOperation op,
org.apache.tapestry.spec.IComponentSpecification spec)
|
void |
setAjaxRequest(AjaxWebRequest ajaxRequest)
Injected ajax request |
void |
setExpressionEvaluator(org.apache.tapestry.services.ExpressionEvaluator expressionEvaluator)
Injected ognl parser |
void |
setScriptSource(org.apache.tapestry.engine.IScriptSource scriptSource)
Injected script source |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AjaxWebRequest ajaxRequest
protected org.apache.tapestry.services.ExpressionEvaluator expressionEvaluator
protected org.apache.tapestry.engine.IScriptSource scriptSource
public static final String EVENT_PARAMETER
public static final String FORMATTER_PARAMETER
protected static final String RENDER_METHOD
IRender
protected static final Class[] RENDER_PARAMS
IRender
Constructor Detail |
---|
public FormComponentEventWorker()
Method Detail |
---|
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 createRequestAccessor(org.apache.tapestry.enhance.EnhancementOperation op, org.apache.tapestry.spec.IComponentSpecification spec)
AjaxWebRequest
field into the component which
will be used by enhanced methods to use ajax resources.
op
- spec
-
protected MethodSignature createScriptSourceAccessor(org.apache.tapestry.enhance.EnhancementOperation op, org.apache.tapestry.spec.IComponentSpecification spec)
IScriptSource
field into the component which
will be used by enhanced methods to use Tapestry script sources.
op
- spec
-
protected MethodSignature createExpressionAccessor(org.apache.tapestry.enhance.EnhancementOperation op, org.apache.tapestry.spec.IComponentSpecification spec)
ExpressionEvaluator
field into the component which
will be used by enhanced methods to generate ajax request links.
op
- spec
-
protected String buildMethodCallBack(org.apache.tapestry.spec.IComponentSpecification spec, MethodSignature method, MethodSignature accessor, MethodSignature exprAccessor, MethodSignature scriptSourceAccessor)
AbstractFormComponent.renderFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
method of all form fields to handle any possible defferred script actions.
spec
- method
- accessor
- Getter for ajax requestexprAccessor
- Expression evaluatorscriptSourceAccessor
- getter for script source.
public void setAjaxRequest(AjaxWebRequest ajaxRequest)
ajaxRequest
- public void setExpressionEvaluator(org.apache.tapestry.services.ExpressionEvaluator expressionEvaluator)
expressionEvaluator
- public void setScriptSource(org.apache.tapestry.engine.IScriptSource scriptSource)
scriptSource
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |