|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hivemind.impl.BaseLocatable
org.apache.tapestry.AbstractComponent
org.apache.tapestry.form.AbstractFormComponent
org.apache.tapestry.form.Submit
org.apache.tapestry.form.ImageSubmit
public abstract class ImageSubmit
Used to create an image button inside a Form
. Although it is occasionally useful to know
the Point
on the image that was clicked (i.e., use the image as a kind of image map,
which was the original intent of the HTML element), it is more commonly used to provide a graphic
image for the user to click, rather than the rather plain <input type=submit>. [ Component Reference ]
Field Summary |
---|
Fields inherited from class org.apache.tapestry.AbstractComponent |
---|
_body, _bodyCount |
Constructor Summary | |
---|---|
ImageSubmit()
|
Method Summary | |
---|---|
abstract IActionListener |
getAction()
parameter. |
abstract boolean |
getDefer()
parameter. |
abstract IEngineService |
getDirectService()
Injected. |
abstract IAsset |
getDisabledImage()
parameter. |
abstract IAsset |
getImage()
parameter. |
abstract IActionListener |
getListener()
parameter. |
abstract ListenerInvoker |
getListenerInvoker()
Injected. |
abstract String |
getNameOverride()
parameter. |
abstract Object |
getParameters()
parameter. |
abstract IScript |
getSubmitScript()
Injected. |
abstract String |
getSubmitType()
The type of submission, normal/cancel/refresh. |
abstract Object |
getTag()
parameter. |
abstract List |
getUpdateComponents()
If set, will be used to update/refresh portions of a response during XHR requests. |
abstract boolean |
isAsync()
Used to specify whether or not the result of this invocation should be returned asynchronously or use normal browser page reload semantics. |
protected boolean |
isClicked(IRequestCycle cycle,
String name)
Determine if this submit component was clicked. |
abstract boolean |
isJson()
Used to specify that the return invocation of the response created should be in the "http://json.org" format. |
protected void |
prepareForRender(IRequestCycle cycle)
Invoked by AbstractComponent.render(IMarkupWriter, IRequestCycle) to prepare the component to render. |
protected void |
renderFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked from AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to render the component. |
protected void |
renderSubmitBindings(IMarkupWriter writer,
IRequestCycle cycle)
Manages rendering of important submit client side bindings, like invoking the right submit type or any of the optional IDynamicInvoker parameters. |
protected void |
rewindFormComponent(IMarkupWriter writer,
IRequestCycle cycle)
Invoked from AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle) to rewind the
component. |
protected void |
setName(IForm form)
|
abstract void |
setPoint(Point point)
parameter. |
abstract void |
setSelected(Object tag)
parameter. |
Methods inherited from class org.apache.tapestry.form.Submit |
---|
getLabel |
Methods inherited from class org.apache.tapestry.form.AbstractFormComponent |
---|
generateClientId, getCanTakeFocus, getForm, getIdParameter, getName, getRenderBodyOnRewind, isRequired, peekClientId, renderComponent, renderDelegateAttributes, renderDelegatePrefix, renderDelegateSuffix, setForm, setName |
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.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, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, 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 |
Constructor Detail |
---|
public ImageSubmit()
Method Detail |
---|
protected void setName(IForm form)
setName
in class AbstractFormComponent
AbstractFormComponent.setName(org.apache.tapestry.IForm)
protected boolean isClicked(IRequestCycle cycle, String name)
isClicked
in class Submit
cycle
- The current request.name
- The name of this form element.
protected void renderFormComponent(IMarkupWriter writer, IRequestCycle cycle)
AbstractFormComponent
AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to render the component.
renderFormComponent
in class Submit
AbstractFormComponent.renderFormComponent(org.apache.tapestry.IMarkupWriter,
org.apache.tapestry.IRequestCycle)
public abstract IAsset getDisabledImage()
public abstract IAsset getImage()
public abstract String getNameOverride()
public abstract void setPoint(Point point)
protected void prepareForRender(IRequestCycle cycle)
AbstractComponent
AbstractComponent.render(IMarkupWriter, IRequestCycle)
to prepare the component to render.
This implementation sets JavaBeans properties from matching bound parameters. The default
implementation of this method is empty.
prepareForRender
in class AbstractComponent
protected void rewindFormComponent(IMarkupWriter writer, IRequestCycle cycle)
AbstractFormComponent
AbstractFormComponent.renderComponent(IMarkupWriter, IRequestCycle)
to rewind the
component. If the component is disabled
this will not be invoked.
rewindFormComponent
in class AbstractFormComponent
AbstractFormComponent.rewindFormComponent(org.apache.tapestry.IMarkupWriter, org.apache.tapestry.IRequestCycle)
protected void renderSubmitBindings(IMarkupWriter writer, IRequestCycle cycle)
IDynamicInvoker
parameters.
writer
- The writer to use to write content.cycle
- The current request cycle.public abstract IActionListener getListener()
public abstract IActionListener getAction()
public abstract Object getTag()
public abstract void setSelected(Object tag)
public abstract boolean getDefer()
public abstract Object getParameters()
public abstract String getSubmitType()
public abstract List getUpdateComponents()
For instance, if you have a page listing projects and you wanted to update an
Any
components contents whenever one of the project links was clicked
you would use a DirectLink
with the parameters:
updateComponents="{'projectDetails'}" async="true"
getUpdateComponents
in interface IDynamicInvoker
public abstract boolean isAsync()
Async being true means responses will be encoded as XML using XmlHttpRequests. If you would like
your request/response to be in another format - like JSON - you must also specify the additional
parameter IDynamicInvoker.isJson()
. Without setting the IDynamicInvoker.getUpdateComponents()
parameter
this parameter is pretty useless.
isAsync
in interface IDynamicInvoker
IDynamicInvoker.isJson()
public abstract boolean isJson()
IDynamicInvoker.getUpdateComponents()
parameter
this parameter is pretty useless.
isJson
in interface IDynamicInvoker
org.apache.tapestry.IJSONRender}
public abstract IEngineService getDirectService()
public abstract ListenerInvoker getListenerInvoker()
public abstract IScript getSubmitScript()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |