com.sapportals.wcm.rendering.readymades
Class ResourceLink
java.lang.Object
BaseCompositeComponent
com.sapportals.wcm.rendering.readymades.ResourceLink
- public final class ResourceLink
- extends BaseCompositeComponent
- Since:
- EP6, SP2_CP
renders an htmlb
Link that triggers either a navigation into an
ICollection or displays the content of an IResource
inplace or out-of-place.
.
The class will evauate OTH-settings and the property "rnd:contentlink" to check
if anything but the default target should be used for the link.
If an IResource instance does not support the SupportedOption
SupportedOption.GET_CONTENT, no link will be rendered, except one is
defined in OTH or by the "rnd:contentlink" property.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceLink
public ResourceLink(IResource resource,
Component comp,
IProxy proxy,
IParameters parameters)
- Parameters:
resource - the resource to render the link forcomp - to be added to the created link. In case the link could not be created, this component will be returned
by this class.proxy - is needed as navigation target and for a faster property lookupparameters - the parameters defining, what target the link will call.
This class reads out IResourceRendererParameterNameConst.OPENTARGETTYPE and
either opens a new window, if the value is IResourceRendererParameterNameConst.OPENTARGETTYPE_NEW or
displays the navigation target in the same window.
If the value is IResourceRendererParameterNameConst.OPENTARGETTYPE_LINK_LIST
and the resource is an internal link, a new window will open as well.
Depending if preview is enabled and supported for the mime-type of the resource, an
IResource will be rendered in place or in a new window.
All parameters must not be null
ResourceLink
public ResourceLink()
- must not be used! Only needed for htmlb-Framework generic calls. Usage will
lead to a runtime exception in the buildContent()-method
buildContent
protected Component buildContent()
initFromPageContextImpl
protected void initFromPageContextImpl(IPageContext pc,
String baseId)
Copyright 2006 SAP AG Complete Copyright Notice