SAP NetWeaver '04

com.sapportals.wcm.rendering.readymades
Class ResourceLink

[contained in: com.sap.km.cm.ui.flex.par - km.shared.ui.flex.readymades_api.jar]
com.sapportals.wcm.rendering.readymades.ResourceLink

public final class ResourceLink

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.

Constructor Summary
ResourceLink()
          must not be used!
ResourceLink(IResource resource, com.sapportals.htmlb.Component comp, IProxy proxy, com.sapportals.wcm.repository.service.layout.customizing.IParameters parameters)
           
 
Method Summary
protected  com.sapportals.htmlb.Component buildContent()
           
protected  void initFromPageContextImpl(com.sapportals.htmlb.rendering.IPageContext pc, java.lang.String baseId)
           
 

Constructor Detail

ResourceLink

public ResourceLink(IResource resource,
                    com.sapportals.htmlb.Component comp,
                    IProxy proxy,
                    com.sapportals.wcm.repository.service.layout.customizing.IParameters parameters)
Parameters:
resource - the resource to render the link for
comp - 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 lookup
parameters - 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
Method Detail

buildContent

protected com.sapportals.htmlb.Component buildContent()

initFromPageContextImpl

protected void initFromPageContextImpl(com.sapportals.htmlb.rendering.IPageContext pc,
                                       java.lang.String baseId)

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.