T
- type of model objectpublic class ResourceLink<T> extends Link<T> implements IRequestListener
ENABLE, FLAG_INITIALIZED, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED8, PARENT_PATH, PATH_SEPARATOR, RENDER, RFLAG_CONTAINER_DEQUEING, RFLAG_CONTAINER_HAS_REMOVALS
Constructor and Description |
---|
ResourceLink(String id,
IResource resource)
Constructs a link directly to the provided resource.
|
ResourceLink(String id,
ResourceReference resourceReference)
Constructs an ResourceLink from an resourcereference.
|
ResourceLink(String id,
ResourceReference resourceReference,
PageParameters resourceParameters)
Constructs an ResourceLink from an resourcereference.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
getStatelessHint()
For
ResourceReference s this link is stateless. |
protected CharSequence |
getURL()
Gets the url to use for this link.
|
void |
onClick()
Called when a link is clicked.
|
void |
onRequest()
THIS METHOD IS NOT PART OF THE WICKET API.
|
boolean |
rendersPage()
Does invocation of this listener render the page.
|
appendAnchor, getAnchor, getAutoEnable, getOnClickScript, getPopupSettings, isEnabled, linksTo, onComponentTag, setAnchor, setAutoEnable, setPopupSettings
disableLink, getBody, onComponentTagBody, onDetach, setBody
getWebApplication, getWebPage, getWebRequest, getWebResponse, getWebSession
add, addDequeuedComponent, addOrReplace, autoAdd, canDequeueTag, contains, dequeue, dequeue, dequeuePreamble, findChildComponent, findComponentToDequeue, get, getAssociatedMarkup, getAssociatedMarkupStream, getMarkup, getMarkupType, getRegionMarkup, internalAdd, internalInitialize, iterator, iterator, newDequeueContext, onInitialize, onRender, queue, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderNext, replace, setDefaultModel, size, stream, streamChildren, toString, toString, visitChildren, visitChildren
add, addStateChange, beforeRender, canCallListener, canCallListenerAfterExpiry, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, clearOriginalDestination, configure, continueToOriginalDestination, createConverter, debug, detach, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findMarkupStream, findPage, findParent, findParentWithAssociatedMarkup, getAjaxRegionMarkupId, getApplication, getBehaviorById, getBehaviorId, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessages, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkup, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdFromMarkup, getMarkupIdImpl, getMarkupSourcingStrategy, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getRequestFlag, getResponse, getSession, getSizeInBytes, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnModelChanged, internalRenderComponent, internalRenderHead, isActionAuthorized, isAuto, isBehaviorAccepted, isEnableAllowed, isEnabledInHierarchy, isIgnoreAttributeModifier, isInitialized, isRenderAllowed, isRendering, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, markRendering, modelChanged, modelChanging, newMarkupSourcingStrategy, onAfterRender, onBeforeRender, onConfigure, onEvent, onModelChanged, onModelChanging, onReAdd, onRemove, redirectToInterceptPage, remove, remove, render, renderComponentTag, rendered, renderHead, renderPart, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, send, setAuto, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setIgnoreAttributeModifier, setMarkup, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setParent, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, success, urlFor, urlFor, urlFor, urlForListener, urlForListener, visitParents, visitParents, warn, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultModel, getDefaultModelObject, getModel, getModelObject, setDefaultModel, setDefaultModelObject, setModel, setModelObject
forEach, spliterator
public ResourceLink(String id, ResourceReference resourceReference)
id
- See ComponentresourceReference
- The shared resource to link topublic ResourceLink(String id, ResourceReference resourceReference, PageParameters resourceParameters)
id
- See ComponentresourceReference
- The shared resource to link toresourceParameters
- The resource parameterspublic void onClick()
Link
public boolean rendersPage()
IRequestListener
rendersPage
in interface IRequestListener
true
, i.e. a RenderPageRequestHandler
is schedules after invocationprotected boolean getStatelessHint()
ResourceReference
s this link is stateless.getStatelessHint
in class Link<T>
true
if a resourceReference was provided to the
constructorResourceLink(String, ResourceReference)
,
ResourceLink(String, ResourceReference, PageParameters)
protected final CharSequence getURL()
Link
public final void onRequest()
Link
onRequest
in interface IRequestListener
onRequest
in class Link<T>
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.