|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.impl.BaseLocatable org.apache.tapestry.AbstractComponent org.apache.tapestry.BaseComponent com.nordija.tapestry.bayeux.link.ClickOnce
public abstract class ClickOnce
A base component used to render a LinkSubmit, DirectLink or ActionLink with a javascript onClick event handler that secures that the rendered component cannot be activated more than once.
The component takes care of any user defined onClick eventhandler and secures that it is executed upon a user click. Note The component uses javascript statehandling to prevent more than one click, so be careful if you uses this component together with the AJAX technology.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_FUNCTION_NAME
|
static java.lang.String |
SUBMITFLAG
|
Constructor Summary | |
---|---|
ClickOnce()
|
Method Summary | |
---|---|
protected static java.lang.String |
extractOnclick(java.lang.String onclick)
Finds the onClick function call defined by the user. |
abstract boolean |
getDisabled()
|
abstract java.lang.String |
getFunctionName()
|
abstract java.lang.String |
getIdParameter()
|
abstract java.lang.String |
getNestedFunctionCall()
|
abstract java.lang.String |
getOnclick()
|
java.util.Map |
getScriptSymbols()
|
protected void |
renderComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
|
abstract void |
setFunctionName(java.lang.String name)
|
abstract void |
setIdParameter(java.lang.String value)
|
abstract void |
setNestedFunctionCall(java.lang.String nestedFunctionCall)
|
Methods inherited from class org.apache.tapestry.BaseComponent |
---|
addOuter, finishLoad |
Methods inherited from class org.apache.tapestry.AbstractComponent |
---|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.tapestry.IComponent |
---|
addAsset, addBody, addComponent, enterActiveState, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName |
Methods inherited from interface org.apache.tapestry.IRender |
---|
render |
Methods inherited from interface org.apache.hivemind.LocationHolder |
---|
setLocation |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Field Detail |
---|
public static final java.lang.String DEFAULT_FUNCTION_NAME
public static final java.lang.String SUBMITFLAG
Constructor Detail |
---|
public ClickOnce()
Method Detail |
---|
public abstract java.lang.String getOnclick()
public abstract boolean getDisabled()
public abstract void setFunctionName(java.lang.String name)
public abstract java.lang.String getFunctionName()
public abstract void setNestedFunctionCall(java.lang.String nestedFunctionCall)
public abstract java.lang.String getNestedFunctionCall()
public abstract void setIdParameter(java.lang.String value)
public abstract java.lang.String getIdParameter()
protected void renderComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
renderComponent
in class org.apache.tapestry.BaseComponent
public java.util.Map getScriptSymbols()
protected static java.lang.String extractOnclick(java.lang.String onclick)
onclick
- the javascript code to execute
null
or empty, null
is returned, otherwise a string
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |