public abstract class DirectLink extends AbstractLinkComponent implements IDirect
Constructor and Description |
---|
DirectLink() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object[] |
constructServiceParameters(java.lang.Object parameterValue)
Converts a service parameters value to an array of objects.
|
ILink |
getLink(IRequestCycle cycle)
Invoked by the
ILinkRenderer (if the link is not disabled)
to provide a EngineServiceLink that the renderer can
convert into a URL. |
abstract IActionListener |
getListener() |
abstract ListenerInvoker |
getListenerInvoker()
Injected.
|
abstract java.lang.Object |
getParameters() |
abstract boolean |
isStateful()
Returns true if the stateful parameter is bound to a true value.
|
void |
trigger(IRequestCycle cycle)
Invoked by the direct service to trigger the application-specific action by notifying the
listener . |
addEventHandler, cleanupAfterRender, finishLoad, getAnchor, getLink, getRenderer, isDisabled, renderAdditionalAttributes, renderComponent, setRenderer, writeEventHandler, writeEventHandlers
addAsset, addBody, addComponent, checkActiveLock, enterActiveState, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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
getPort, getScheme, getTarget
public DirectLink()
public abstract IActionListener getListener()
public abstract boolean isStateful()
isStateful
in interface IDirect
public ILink getLink(IRequestCycle cycle)
ILinkComponent
ILinkRenderer
(if the link is not disabled)
to provide a EngineServiceLink
that the renderer can
convert into a URL.getLink
in interface ILinkComponent
getLink
in class AbstractLinkComponent
public static java.lang.Object[] constructServiceParameters(java.lang.Object parameterValue)
DirectLink
,ServiceLink
and ExternalLink
components.parameterValue
- the input value which may be
List
(returns an array of the values in the List})
public void trigger(IRequestCycle cycle)
listener
.trigger
in interface IDirect
StaleSessionException
- if the component is stateful, and the session is new.public abstract java.lang.Object getParameters()
public abstract ListenerInvoker getListenerInvoker()