|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.primix.tapestry.AbstractComponent | +--com.primix.tapestry.link.AbstractServiceLink | +--com.primix.tapestry.link.Action
A component for creating a link that is handled using the action service.
Parameter | Type | Read / Write | Required | Default | Description |
---|---|---|---|---|---|
listener | IActionListener |
R | no | Specifies an object that is notified when the link is clicked, for services that require a listener. | |
disabled | boolean | R | No | true | Controls whether the link is produced. If disabled, the portion of the template the link surrounds is still rendered, but not the link itself. |
stateful | boolean | R | no | true | If true (the default), then the component requires an active (i.e., non-new)
HttpSession
when triggered. Failing that, it throws a StaleLinkException .
If false, then no check is necessary. The latter works well with links that
encode all necessary state inside the URL itself. |
scheme | java.lang.String | R | no | If specified, then a longer URL (including scheme, server and possibly port) is generated using the specified scheme. Server is determined fromt he incoming request, and port is deterimined from the port paramter or the incoming request. | |
port | int | R | no | If specified, then a longer URL (including scheme, server and port) is generated using the specified port. The server is determined from the incoming request, the scheme from the scheme paramter or the incoming request. | |
anchor | java.lang.String | R | no | The name of an anchor or element to link to. The final URL will have '#' and the anchor appended to it. |
Informal parameters are allowed.
Fields inherited from class com.primix.tapestry.AbstractComponent |
id, page, specification, wrapped, wrappedCount |
Fields inherited from interface com.primix.tapestry.components.IServiceLink |
ATTRIBUTE_NAME |
Constructor Summary | |
Action()
|
Method Summary | |
protected java.lang.String[] |
getContext(IRequestCycle cycle)
Invoked by AbstractServiceLink.render(IResponseWriter, IRequestCycle) if the
component is enabled. |
IBinding |
getListenerBinding()
|
boolean |
getRequiresSession()
Returns true if the stateful parameter is bound to a true value. |
protected java.lang.String |
getServiceName(IRequestCycle cycle)
Returns IEngineService.ACTION_SERVICE . |
IBinding |
getStatefulBinding()
|
void |
setListenerBinding(IBinding value)
|
void |
setStatefulBinding(IBinding value)
|
Methods inherited from class com.primix.tapestry.link.AbstractServiceLink |
addEventHandler, buildURL, getAnchorBinding, getDisabledBinding, getPortBinding, getSchemeBinding, isDisabled, render, setAnchorBinding, setDisabledBinding, setPortBinding, setSchemeBinding, setup |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.primix.tapestry.IComponent |
addAsset, addComponent, addWrapped, finishLoad, getAsset, getAssets, getBinding, getBindingNames, getBindings, getComponent, getComponents, getContainer, getExtendedId, getId, getIdPath, getPage, getSpecification, renderWrapped, setBinding, setContainer, setId, setPage, setSpecification |
Methods inherited from interface com.primix.tapestry.IRender |
render |
Constructor Detail |
public Action()
Method Detail |
public IBinding getListenerBinding()
public void setListenerBinding(IBinding value)
public void setStatefulBinding(IBinding value)
public IBinding getStatefulBinding()
public boolean getRequiresSession()
getRequiresSession
in interface IAction
protected java.lang.String getServiceName(IRequestCycle cycle)
IEngineService.ACTION_SERVICE
.getServiceName
in class AbstractServiceLink
com.primix.tapestry.link.AbstractServiceLink
AbstractServiceLink.buildURL(IRequestCycle, String[])
protected java.lang.String[] getContext(IRequestCycle cycle) throws RequestCycleException
AbstractServiceLink
AbstractServiceLink.render(IResponseWriter, IRequestCycle)
if the
component is enabled. The default implementation returns null; other
implementations can provide appropriate parameters as needed.getContext
in class AbstractServiceLink
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |