com.sapportals.wcm.rendering.resource
Class ResourceNavigationRenderer
[contained in: com.sap.km.cm.ui.flex.par - km.shared.ui.flex.resource_api.jar]
com.sapportals.wcm.rendering.resource.ResourceNavigationRenderer
- public final class ResourceNavigationRenderer
This class can be used to take care of the complete rendering of a resource.
The class uses the LayoutObject, set in the constructor to
retrieve all parametrization from the calling class. It then returns a Component
that is ready-to-use.
|
Field Summary |
static java.lang.String |
BLANK
|
static java.lang.String |
NBSP
|
static java.lang.String |
START_URI
|
|
Method Summary |
protected boolean |
isPreviewEnabled(IResource resource)
checks, if the current ui implements functionality to preview a resource.
|
com.sapportals.htmlb.Component |
renderContentLink(IResource resource)
creates a link to show the content of the given resource. |
com.sapportals.htmlb.Component |
renderContentLink(IResource resource,
com.sapportals.htmlb.Component comp)
creates a link to show the content of the given resource. |
NBSP
public static final java.lang.String NBSP
BLANK
public static final java.lang.String BLANK
START_URI
public static final java.lang.String START_URI
ResourceNavigationRenderer
public ResourceNavigationRenderer(LayoutObject layoutObject,
IProxy proxy)
- Sets the two member variables of the renderer with the values of the given
parameters.
- Parameters:
layoutObject - a layoutObject that holds all the parametrization to
create the correct rendering. Must not be null.proxy - the proxy that is used as the target control, when the
commands that are included in the returned Component
trigger Events.
renderContentLink
public com.sapportals.htmlb.Component renderContentLink(IResource resource,
com.sapportals.htmlb.Component comp)
throws WcmException
- creates a link to show the content of the given resource. If the resource
is an
ICollection, the link will navigate into the contents of
this collection. If a preview control is available, the link will trigger
an eent to display the contents in this control. Otherwise, the resource
will be displayed in a new browser window. If a WcmException
is thrown while execution, the given Component will be returned without a
link.
- Parameters:
resource - Description of the paramcomp - Description of the param- Returns:
- Description of the Return Value
- Throws:
WdfException - Exception raised in failure situation
renderContentLink
public com.sapportals.htmlb.Component renderContentLink(IResource resource)
throws WcmException
- creates a link to show the content of the given resource. If the resource
is an
ICollection, the link will navigate into the contents of
this collection. If a preview control is available, the link will trigger
an eent to display the contents in this control. Otherwise, the resource
will be displayed in a new browser window. If a WcmException
is thrown while execution, the given Component will be returned without a
link.
- Parameters:
resource - Description of the param- Returns:
- Description of the Return Value
- Throws:
WdfException - Exception raised in failure situation
isPreviewEnabled
protected boolean isPreviewEnabled(IResource resource)
- checks, if the current ui implements functionality to preview a resource.
This depends on the mimetype of the current resource and the current
ILayoutController
- Parameters:
resource - Description of the param- Returns:
- The previewEnabled value
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.