|
||||||||||
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.form.AbstractFormComponent net.sf.tacos.ajax.components.AbstractSubmit
public abstract class AbstractSubmit
Superclass for components submitting their form.
Constructor Summary | |
---|---|
AbstractSubmit()
|
Method Summary | |
---|---|
Map |
constructScriptParameter(org.apache.tapestry.IRequestCycle cycle)
Construct the parameter used by script. |
abstract org.apache.tapestry.IActionListener |
getAction()
parameter |
org.apache.tapestry.engine.ILink |
getAjaxLink()
Generates ajax link for form submission via javascript |
abstract boolean |
getDefer()
parameter |
String |
getEncodingType()
Should return null if current form is not a AjaxForm . |
abstract String |
getFocusElement()
Component id string to focus after the ajax request. |
abstract org.apache.tapestry.IActionListener |
getListener()
parameter |
abstract org.apache.tapestry.listener.ListenerInvoker |
getListenerInvoker()
Injected |
abstract Object |
getParameters()
parameter |
abstract Object |
getTag()
parameter |
protected void |
handleClick(org.apache.tapestry.IRequestCycle cycle,
org.apache.tapestry.IForm form)
Handles button clicked events |
protected abstract boolean |
isClicked(org.apache.tapestry.IRequestCycle cycle,
String name)
Determine if this submit component was clicked. |
protected void |
rewindFormComponent(org.apache.tapestry.IMarkupWriter writer,
org.apache.tapestry.IRequestCycle cycle)
|
abstract void |
setSelected(Object tag)
parameter |
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
---|
getAlwaysRenderBodyOnRewind, getCanTakeFocus, getForm, getIdParameter, getName, isRequired, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, renderFormComponent, renderIdAttribute, setClientId, setForm, setName, setName |
Methods inherited from class org.apache.tapestry.AbstractComponent |
---|
addAsset, addBody, addComponent, checkActiveLock, cleanupAfterRender, enterActiveState, finishLoad, finishLoad, format, format, format, format, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isInActiveState, isParameterBound, isRendering, pageEndRender, prepareForRender, render, renderBody, renderInformalParameters, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty, toString |
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface net.sf.tacos.ajax.AjaxSubmitInvocation |
---|
getComponentId, getFunctionName, getHiddenId, isClientSideValidationEnabled, isDeferred, isSubmitNormal |
Methods inherited from interface net.sf.tacos.ajax.AjaxInvocation |
---|
getAjaxEngine, getBackLink, getEffects, getForwardLink, getPopup, getPreEffects, getStatusElement, getUpdateComponents, getUpdateObject |
Methods inherited from interface org.apache.tapestry.form.IFormComponent |
---|
getClientId, getDisplayName, isDisabled |
Methods inherited from interface org.apache.tapestry.IComponent |
---|
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainedComponent, getContainer, getExtendedId, getId, getIdPath, getListeners, getMessage, getMessages, getNamespace, getPage, getProperty, getSpecification, isRendering, renderBody, setBinding, setContainedComponent, setContainer, setId, setNamespace, setPage, setProperty |
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 |
Constructor Detail |
---|
public AbstractSubmit()
Method Detail |
---|
public abstract String getFocusElement()
protected abstract boolean isClicked(org.apache.tapestry.IRequestCycle cycle, String name)
cycle
- name
-
protected void rewindFormComponent(org.apache.tapestry.IMarkupWriter writer, org.apache.tapestry.IRequestCycle cycle)
rewindFormComponent
in class org.apache.tapestry.form.AbstractFormComponent
AbstractFormComponent.rewindFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
protected void handleClick(org.apache.tapestry.IRequestCycle cycle, org.apache.tapestry.IForm form)
cycle
- form
- public abstract org.apache.tapestry.IActionListener getListener()
public abstract org.apache.tapestry.IActionListener getAction()
public abstract Object getTag()
public abstract void setSelected(Object tag)
public abstract boolean getDefer()
public abstract Object getParameters()
public abstract org.apache.tapestry.listener.ListenerInvoker getListenerInvoker()
public Map constructScriptParameter(org.apache.tapestry.IRequestCycle cycle)
cycle
-
public String getEncodingType()
AjaxInvocation
AjaxForm
.
getEncodingType
in interface AjaxInvocation
public org.apache.tapestry.engine.ILink getAjaxLink()
getAjaxLink
in interface AjaxInvocation
ILink
to be used in async io javascript calls
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |