com.sapportals.wcm.rendering.resource

Class AbstractResourceRenderer

java.lang.Object
  extended bycom.sapportals.wcm.rendering.base.LayoutObject
      extended bycom.sapportals.wcm.rendering.resource.AbstractResourceRenderer
All Implemented Interfaces:
ICollectionRendererParameterNameConst, ILayoutObject, IParameterNameConst, IParameters, IResourceRenderer, IResourceRendererParameterNameConst

public abstract class AbstractResourceRenderer
extends LayoutObject
implements IResourceRenderer, IParameterNameConst


Field Summary
static String BLANK
           
static String CM_RND_ACTION
           
static String CM_RND_CHILDCOUNT
           
static String CM_RND_CHILDCOUNT_WITH_BRACKETS
           
static String CM_RND_COLLABORATION_STATUS
           
static String CM_RND_CONTENT_LINK
           
static String CM_RND_DESCRIPTION
           
static String CM_RND_DISPLAYNAME
           
static String CM_RND_ICON
           
static String CM_RND_IMAGE
           
static String CM_RND_LOCK
           
static String CM_RND_SUBSCRIPTION
           
static String COMMA
           
static String DEFAULT_VISIBLE_PROPERTIES
           
static String NBSP
           
 
Fields inherited from class com.sapportals.wcm.rendering.base.LayoutObject
supportedParameterKeys
 
Fields inherited from interface com.sapportals.wcm.rendering.resource.IResourceRenderer
LINK_CONTENT, LINK_CONTENT_ONLY_FOLDERS, LINK_DETAILS, LINK_OFF
 
Fields inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject
DEF_VALUE, KEY, LINE_BREAK
 
Fields inherited from interface com.sapportals.wcm.repository.service.layout.customizing.IParameterNameConst
ACTIONSTYLE_BUTTON, ACTIONSTYLE_HOVER, ACTIONSTYLE_ICON, ACTIONSTYLE_LINK, ACTIONSTYLE_MENU, ACTIONSTYLE_OFF, ACTIONSTYLE_SMALLBUTTON, ACTIONSTYLE_TOOLBAR_BUTTON, ACTIONSTYLE_VERTICAL_LINK, BASE_SETTINGS, COLLECTION_RENDERER_SETTINGS, FLAVOR, RESOURCE_RENDERER_SETTINGS, SETNAME, UI_GROUP_DETAILS, UI_LAYOUT_CONTROLLER, VALUE_OFF
 
Fields inherited from interface com.sapportals.wcm.repository.service.layout.customizing.ICollectionRendererParameterNameConst
BACKGROUNDIMAGEPATH, BACKGROUNDIMAGESTYLE, BACKGROUNDIMAGESTYLE_MULTIPLE, BACKGROUNDIMAGESTYLE_SINGLE, BREADCRUMBSTYLE, BREADCRUMBSTYLE_BACK, BREADCRUMBSTYLE_DRPODOWN, BREADCRUMBSTYLE_HORIZONTAL, BREADCRUMBSTYLE_OFF, BREADCRUMBSTYLE_VERTICAL, BREADCRUMBVISIBILITYSTYLE, BREADCRUMBVISIBILITYSTYLE_DISABLEROOT, BREADCRUMBVISIBILITYSTYLE_INVISIBLE, BREADCRUMBVISIBILITYSTYLE_INVISIBLEROOT, BREADCRUMBVISIBILITYSTYLE_NOICON, BREADCRUMBVISIBILITYSTYLE_STANDARD, COLLECTION_ACTIONSTYLE, COLLECTION_ACTIONSTYLE_BUTTON, COLLECTION_ACTIONSTYLE_HOVER, COLLECTION_ACTIONSTYLE_LINK, COLLECTION_ACTIONSTYLE_MENU, COLLECTION_ACTIONSTYLE_OFF, COLLECTION_ACTIONSTYLE_SMALLBUTTON, COLLECTION_ACTIONSTYLE_TOOLBAR_BUTTON, COLUMNS, COLUMNSPACING, COLUMNSPACINGSTYLE, COLUMNSPACINGSTYLE_FIXED, COLUMNSPACINGSTYLE_MINIMUM, COMPONENTS, EMPTY_COLLECTION_FILE, EMPTY_COLLECTION_KEY, EMPTY_COLLECTION_STYLE, EMPTY_COLLECTION_STYLE_MESSAGE, EMPTY_COLLECTION_STYLE_OFF, EMPTY_COLLECTION_STYLE_TEXT, FILESELECTIONMODE_MULTIPLE, FILESELECTIONMODE_SINGLE, FILTEREXTENSION, FILTERMIMETYPE, FILTERRESOURCETYPE, FOLDERSELECTIONMODE_MULTIPLE, FOLDERSELECTIONMODE_SINGLE, GRIDORDERSTYLE, GRIDORDERSTYLE_COLUMN_MAJOR, GRIDORDERSTYLE_ROW_MAJOR, GROUP_STYLE, GROUP_STYLE_OFF, GROUP_STYLE_PRIMARYCOLOR, GROUP_STYLE_SAPCOLOR, GROUP_STYLE_SECONDARYBOX, GROUP_STYLE_SECONDARYBOXCOLOR, GROUP_STYLE_SECONDARYCOLOR, HEADER_TEXT_STYLE, HTML_FILENAME, IMAGEMAP, ITEMSELECTIONMODE, ITEMSELECTIONMODE_MULTIPLE, ITEMSELECTIONMODE_OFF, ITEMSELECTIONMODE_SINGLE, LINKSSTYLE, LINKSSTYLE_ALL, LINKSSTYLE_EXTERNAL, LINKSSTYLE_INTERNAL, LINKSSTYLE_OFF, LINKSSTYLE_VISIBLE, MASSACTIONSTYLE, MASSACTIONSTYLE_BUTTON, MASSACTIONSTYLE_HOVER, MASSACTIONSTYLE_ICON, MASSACTIONSTYLE_LINK, MASSACTIONSTYLE_MENU, MASSACTIONSTYLE_OFF, MASSACTIONSTYLE_SMALLBUTTON, MASSACTIONSTYLE_TOOLBAR_BUTTON, MASSACTIONSTYLE_VERTICAL_LINK, MAX_NUM_OF_TABS, NO_OF_CHILD_FOR_NODE, NO_TAB_CONTENT, OPEN_NODES_STYLE, OPEN_NODES_STYLE_All, OPEN_NODES_STYLE_LAST_SELECTED, OPENTARGETTYPE, OPENTARGETTYPE_FIXED, OPENTARGETTYPE_NEW, OPENTARGETTYPE_OFF, OPENTARGETTYPE_SELF, PAGER_LINK_COUNT, PROPERTY_COLUMN_HEADER_STYLE, PROPERTY_COLUMN_HEADER_STYLE_LIST, PROPERTY_COLUMN_HEADER_STYLE_MENUE, PROPERTY_COLUMN_HEADER_STYLE_OFF, PROPERTY_COLUMN_HEADER_STYLE_TABLE, PROPERTY_COLUMN_HEADER_STYLE_TRANSPARENT, PROPERTYCOLUMNS, RESIZEHEIGHTSTYLE, RESIZEHEIGHTSTYLE_COMPACT, RESIZEHEIGHTSTYLE_OFF, RESIZEHEIGHTSTYLE_STRETCH, RESIZEWIDHTSTYLE, RESIZEWIDHTSTYLE_COMPACT, RESIZEWIDHTSTYLE_OFF, RESIZEWIDHTSTYLE_STRETCH, RESOURCE_LIST_FILTER, RESOURCE_LIST_FILTER_DEFAULT, ROWBACKGROUNDSTYLE, ROWS, ROWSPACING, ROWSPACINGSTYLE, ROWSPACINGSTYLE_ALTERNATING, ROWSPACINGSTYLE_BACKGROUND, ROWSPACINGSTYLE_COLUMNALTERNATING, ROWSPACINGSTYLE_COLUMNSEPARATED, ROWSPACINGSTYLE_FIXED, ROWSPACINGSTYLE_LINESEPARATED, ROWSPACINGSTYLE_MINIMUM, ROWSPACINGSTYLE_ROWALTERNATING, ROWSPACINGSTYLE_TRANSPARENT, SHOW_HIDDEN, SHOW_TREE_ROOT_NODE, SHOWFILESSTYLE, SHOWFILESSTYLE_ALL, SHOWFILESSTYLE_NOLINK, SHOWFILESSTYLE_OFF, SHOWFILESTYLE_ONLYLINK, SHOWFOLDERSSTYLE, SHOWFOLDERSSTYLE_ALL, SHOWFOLDERSSTYLE_NOLINK, SHOWFOLDERSSTYLE_OFF, SHOWFOLDERSSTYLE_ONLYLINK, SHOWFOLDERTITLE, SHOWUSERID, SHOWUSERNAME, SORT_ENABLED, SORT_ORDER, SORT_ORDER_ASCENDING, SORT_ORDER_DESCENDING, SORT_PROPERTY, TAB_BODY_FLAVOR, TAB_STYLE_SAFE, UI_COLL_RENDERER, UI_GROUP_COLLECTION, UI_GROUP_MASS, USE_SCROLL_CONTAINER, VERTICAL_ALIGNMENT, VERTICAL_ALIGNMENT_BASELINE, VERTICAL_ALIGNMENT_BOTTOM, VERTICAL_ALIGNMENT_MIDDLE, VERTICAL_ALIGNMENT_TOP
 
Fields inherited from interface com.sapportals.wcm.repository.service.layout.customizing.IResourceRendererParameterNameConst
CHILDFOLDERDELIMITER, CHILDFOLDERSTYLE, CHILDFOLDERSTYLE_HORIZONTAL, CHILDFOLDERSTYLE_OFF, CHILDFOLDERSTYLE_VERTICAL, FILE_IMAGE, FOLDER_IMAGE, FORCE_CHILDFOLDER_READ, HIGHLIGHTEDTEXTSTYLE, HIGHLIGHTEDTEXTSTYLE_DEFAULT, HIGHLIGHTEDTEXTSTYLE_EMPHASIZED, HIGHLIGHTEDTEXTSTYLE_HEADER1, HIGHLIGHTEDTEXTSTYLE_HEADER2, HIGHLIGHTEDTEXTSTYLE_HEADER3, HIGHLIGHTEDTEXTSTYLE_HEADER4, HIGHLIGHTEDTEXTSTYLE_LABEL, HIGHLIGHTEDTEXTSTYLE_LABELSMALL, HIGHLIGHTEDTEXTSTYLE_LEGEND, HIGHLIGHTEDTEXTSTYLE_REFERENCE, ICONHEIGHT, ICONSTYLE, ICONSTYLE_OFF, ICONSTYLE_REPLACE_ICON, ICONSTYLE_TARGET_ICON, ICONWIDTH, IMAGEHEIGHT, IMAGESTYLE, IMAGESTYLE_OFF, IMAGESTYLE_REPLACE, IMAGEWIDTH, ITEMACTIONSTYLE, ITEMACTIONSTYLE_BUTTON, ITEMACTIONSTYLE_HOVER, ITEMACTIONSTYLE_ICON, ITEMACTIONSTYLE_LINK, ITEMACTIONSTYLE_MENU, ITEMACTIONSTYLE_OFF, ITEMACTIONSTYLE_SMALLBUTTON, ITEMACTIONSTYLE_TOOLBAR_BUTTON, ITEMACTIONSTYLE_VERTICAL_LINK, ITEMHEIGHT, ITEMWIDTH, LINK_IMAGE, MAXCHILDFOLDERS, OPENTARGET, OPENTARGETTYPE, OPENTARGETTYPE_FIXED, OPENTARGETTYPE_LINK_LIST, OPENTARGETTYPE_NEW, OPENTARGETTYPE_OFF, OPENTARGETTYPE_SELF, PRIMARYTEXTSTYLE, PRIMARYTEXTSTYLE_DEFAULT, PRIMARYTEXTSTYLE_EMPHASIZED, PRIMARYTEXTSTYLE_HEADER1, PRIMARYTEXTSTYLE_HEADER2, PRIMARYTEXTSTYLE_HEADER3, PRIMARYTEXTSTYLE_HEADER4, PRIMARYTEXTSTYLE_LABEL, PRIMARYTEXTSTYLE_LABELSMALL, PRIMARYTEXTSTYLE_LEGEND, PRIMARYTEXTSTYLE_REFERENCE, PROPERTY_MODIFIERS, SECONDARYTEXTSTYLE, SECONDARYTEXTSTYLE_DEFAULT, SECONDARYTEXTSTYLE_EMPHASIZED, SECONDARYTEXTSTYLE_HEADER1, SECONDARYTEXTSTYLE_HEADER2, SECONDARYTEXTSTYLE_HEADER3, SECONDARYTEXTSTYLE_HEADER4, SECONDARYTEXTSTYLE_LABEL, SECONDARYTEXTSTYLE_LABELSMALL, SECONDARYTEXTSTYLE_LEGEND, SECONDARYTEXTSTYLE_REFERENCE, SHOW_MAX_NUMBER_OF_CATEGORIES, SHOWCHILDCOUNTSTYLE, SHOWCHILDCOUNTSTYLE_BOTH, SHOWCHILDCOUNTSTYLE_FILES, SHOWCHILDCOUNTSTYLE_FOLDERS, SHOWCHILDCOUNTSTYLE_OFF, SHOWCHILDCOUNTSTYLE_SUM, SHOWRESOURCEPROPERTIESSTYLE, SHOWRESOURCEPROPERTIESSTYLE_ALL, SHOWRESOURCEPROPERTIESSTYLE_OFF, TOOLTIPSTYLE, TOOLTIPSTYLE_OFF, TOOLTIPSTYLE_PATH, TOOLTIPSTYLE_TECHNICAL_NAME, UI_GROUP_FOLDER, UI_GROUP_LINK, UI_GROUP_RESOURCE, UI_RES_RENDERER, VISIBLEPROPERTIES, XMLFORMS_LIST_ITEM_RENDERER
 
Constructor Summary
AbstractResourceRenderer()
          Constructor for the AbstractResourceRenderer object
AbstractResourceRenderer(IProxy proxy, IResource res)
          Constructor for the AbstractResourceRenderer object
 
Method Summary
 String getAlias()
          implementation of the ILayoutObject-interface ************
protected  String getCustomImage(IPropertyName propertyName)
          returns the complete path to access the custom image-file specified for the current IResource of the renderer.
protected  String getDefaultIcon()
           
 IProperty getProperty(IPropertyName name)
          Gets the property attribute of the AbstractResourceRenderer object
 Map getPropertyBag()
           
 List getPropertyListByMetaName(IMetaName metaName)
          Gets the propertyListByMetaName attribute of the AbstractResourceRenderer object
protected  IPropertyNameList getPropertyNameList()
           
protected  IResource getResource()
           
 ResourceStateType getResourceState()
          Gets the resourceState attribute of the AbstractResourceRenderer object
protected  IPropertyColumn[] getVisibleProperties()
           
protected  void initialize()
          This method is called by the constructor.
protected  IResourceRenderer initNewInstance(IResourceRenderer rr)
           
protected  boolean isPreviewEnabled()
          checks, if the current ui implements functionality to preview a resource.
protected  boolean isVisible()
           
 Component render()
          renders the current IResource depending on the configuration available for this resource and on the implementation of the rendering class.
 Component render(IProperty property, int linktype)
          Description of the Method
 Component render(IProperty property, String target)
          Description of the Method
 Component render(String displayname, int linktype)
          Description of the Method
 Component renderAction()
          Description of the Method
protected  Component renderContentLink(Component comp)
          creates a link to show the content of the given resource.
protected  Component renderContentLink(IResource resource, Component comp)
          creates a link to show the content of the given resource.
protected  Component renderDetailsLink(IResource resource, Component comp)
           
static Component renderEmptyTextView()
          can be used by methods that cannot render their result (e.g. because of exceptions or missing/invalid parameters) and cannot return null .
 Component renderIcon()
          Description of the Method
 Component renderIconContentlink()
          Description of the Method
 Component renderImage()
          Description of the Method
 Component renderImageContentlink()
          Description of the Method
 Component renderMetaProperty(IMetaName metaName, boolean hasContentLink)
          Description of the Method
 void setAlias(String alias)
          Sets the alias attribute of the AbstractResourceRenderer object
 void setPropertyBag(Map propertyBag)
          Set a property bag for the resource.
 void setPropertyNameList(IPropertyNameList propnamelist)
          Sets the propertyNameList attribute of the AbstractResourceRenderer object
 void setResource(IResource resource)
          Sets the resource attribute of the AbstractResourceRenderer object
 void setResourceState(ResourceStateType type)
          implementation of the IResourceRenderer-interface *************
protected  void writeDebugInformation()
           
 
Methods inherited from class com.sapportals.wcm.rendering.base.LayoutObject
get, getBooleanValue, getBooleanValue, getConfiguration, getFlavor, getIntValue, getIntValue, getMultiValueParameter, getNewInstance, getParameter, getParameter, getParameter, getParameter, getParameter, getParameters, getParameters, getProxy, getSupportedParameters, is508enabled, isExactlyValue, isNoOtherValue, parameterNames, parameters, removeParameter, set508enabled, setFlavor, setParameter, setParameter, setParameter, setParameter, setParameter, setParameters, setProxy, setSupportedParameters
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sapportals.wcm.rendering.resource.IResourceRenderer
render
 
Methods inherited from interface com.sapportals.wcm.rendering.base.ILayoutObject
getConfiguration, getFlavor, getNewInstance, getParameter, getParameters, getSupportedParameters, is508enabled, setFlavor, setParameter, setParameters, setProxy
 

Field Detail

NBSP

public static final String NBSP
See Also:
Constant Field Values

BLANK

public static final String BLANK
See Also:
Constant Field Values

COMMA

public static final String COMMA
See Also:
Constant Field Values

CM_RND_ACTION

public static final String CM_RND_ACTION
See Also:
Constant Field Values

CM_RND_DISPLAYNAME

public static final String CM_RND_DISPLAYNAME
See Also:
Constant Field Values

CM_RND_ICON

public static final String CM_RND_ICON
See Also:
Constant Field Values

CM_RND_IMAGE

public static final String CM_RND_IMAGE
See Also:
Constant Field Values

CM_RND_DESCRIPTION

public static final String CM_RND_DESCRIPTION
See Also:
Constant Field Values

CM_RND_LOCK

public static final String CM_RND_LOCK
See Also:
Constant Field Values

CM_RND_CHILDCOUNT

public static final String CM_RND_CHILDCOUNT
See Also:
Constant Field Values

CM_RND_CHILDCOUNT_WITH_BRACKETS

public static final String CM_RND_CHILDCOUNT_WITH_BRACKETS
See Also:
Constant Field Values

CM_RND_COLLABORATION_STATUS

public static final String CM_RND_COLLABORATION_STATUS
See Also:
Constant Field Values

CM_RND_CONTENT_LINK

public static final String CM_RND_CONTENT_LINK
See Also:
Constant Field Values

CM_RND_SUBSCRIPTION

public static final String CM_RND_SUBSCRIPTION
See Also:
Constant Field Values

DEFAULT_VISIBLE_PROPERTIES

public static final String DEFAULT_VISIBLE_PROPERTIES
See Also:
Constant Field Values
Constructor Detail

AbstractResourceRenderer

public AbstractResourceRenderer(IProxy proxy,
                                IResource res)
Constructor for the AbstractResourceRenderer object

Parameters:
proxy - Description of the param
res - Description of the param

AbstractResourceRenderer

public AbstractResourceRenderer()
Constructor for the AbstractResourceRenderer object

Method Detail

initNewInstance

protected final IResourceRenderer initNewInstance(IResourceRenderer rr)

getAlias

public final String getAlias()
implementation of the ILayoutObject-interface ************

Specified by:
getAlias in interface ILayoutObject
Overrides:
getAlias in class LayoutObject
Returns:
The alias value

setAlias

public final void setAlias(String alias)
Sets the alias attribute of the AbstractResourceRenderer object

Specified by:
setAlias in interface ILayoutObject
Overrides:
setAlias in class LayoutObject
Parameters:
alias - The new alias value

setResourceState

public final void setResourceState(ResourceStateType type)
implementation of the IResourceRenderer-interface *************

Specified by:
setResourceState in interface IResourceRenderer
Parameters:
type - The new resourceState value

getResourceState

public final ResourceStateType getResourceState()
Gets the resourceState attribute of the AbstractResourceRenderer object

Specified by:
getResourceState in interface IResourceRenderer
Returns:
The resourceState value

setResource

public final void setResource(IResource resource)
Sets the resource attribute of the AbstractResourceRenderer object

Specified by:
setResource in interface IResourceRenderer
Parameters:
resource - The new resource value

render

public Component render()
                 throws WcmException
Description copied from interface: IResourceRenderer
renders the current IResource depending on the configuration available for this resource and on the implementation of the rendering class. This might lead to very different layouts and available functionality. If a calling class (e.g. an ICollectionRenderer requires a more uniform rendering, it can call the different render-methods that allow the rendering of single attributes of the current IResource .

Specified by:
render in interface IResourceRenderer
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

render

public Component render(IProperty property,
                        int linktype)
                 throws WcmException
Description of the Method

Specified by:
render in interface IResourceRenderer
Parameters:
property - Description of the param
linktype - Description of the param
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

render

public Component render(String displayname,
                        int linktype)
                 throws WcmException
Description of the Method

Specified by:
render in interface IResourceRenderer
Parameters:
displayname - Description of the param
linktype - Description of the param
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

render

public Component render(IProperty property,
                        String target)
                 throws WcmException
Description of the Method

Specified by:
render in interface IResourceRenderer
Parameters:
property - Description of the param
target - Description of the param
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

renderAction

public Component renderAction()
                       throws WcmException
Description of the Method

Specified by:
renderAction in interface IResourceRenderer
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

renderIcon

public Component renderIcon()
                     throws WcmException
Description of the Method

Specified by:
renderIcon in interface IResourceRenderer
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

renderIconContentlink

public Component renderIconContentlink()
                                throws WcmException
Description of the Method

Specified by:
renderIconContentlink in interface IResourceRenderer
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

renderImage

public Component renderImage()
                      throws WcmException
Description of the Method

Specified by:
renderImage in interface IResourceRenderer
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

renderImageContentlink

public Component renderImageContentlink()
                                 throws WcmException
Description of the Method

Specified by:
renderImageContentlink in interface IResourceRenderer
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

setPropertyNameList

public final void setPropertyNameList(IPropertyNameList propnamelist)
Sets the propertyNameList attribute of the AbstractResourceRenderer object

Specified by:
setPropertyNameList in interface IResourceRenderer
Parameters:
propnamelist - The new propertyNameList value

initialize

protected void initialize()
This method is called by the constructor. It is supposed to initialize the list of parameters, that the renderer understands and uses to modify the result of its render methods. If this method is not overwritten by the extending class, no parameters will be passed to this class and its behavior remains unchanged regardless of settings done for this resource (e.g. in iView settings)


getResource

protected final IResource getResource()
Returns:
the value of the member variable.

getPropertyNameList

protected final IPropertyNameList getPropertyNameList()
Returns:
the value of the member variable.

getDefaultIcon

protected final String getDefaultIcon()
                               throws WcmException
Returns:
the complete path to the default icon for the current resource.
Throws:
WcmException - Description of the Exception
WdfException, - that holds the WcmException thrown in the called framework methods.

renderContentLink

protected Component renderContentLink(IResource resource,
                                      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:
comp - Description of the param
resource - Description of the param
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

renderContentLink

protected Component renderContentLink(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:
comp - Description of the param
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

renderDetailsLink

protected Component renderDetailsLink(IResource resource,
                                      Component comp)
                               throws WcmException
Parameters:
resource - Description of the param
comp - Description of the param
Returns:
a link to the details-iView of the given IResource . This link will open a new browser-window. It uses the RendererResourceLink to calculate the link-reference
Throws:
WcmException - Description of the Exception

renderEmptyTextView

public static Component renderEmptyTextView()
can be used by methods that cannot render their result (e.g. because of exceptions or missing/invalid parameters) and cannot return null .

Returns:
an invisible piece of html.

isVisible

protected final boolean isVisible()
Returns:
The visible value

getCustomImage

protected final String getCustomImage(IPropertyName propertyName)
                               throws WcmException
returns the complete path to access the custom image-file specified for the current IResource of the renderer. If none is specified or if an exception occurs, the method returns null. If an exception occurs, the default-icon is returned. The caught exception WcmException is self-logging, so no logging is needed. Please note, that a user with missing permissions will not be able to retrieve the custom image and therefore the default image is returned, although a custom image is defined for the resource.

Parameters:
propertyName - Description of the param
Returns:
The customImage value
Throws:
WcmException - Description of the Exception
WdfException - If also the default icon is not available

getVisibleProperties

protected final IPropertyColumn[] getVisibleProperties()
Returns:
an IPropertyColumn[] that is created out of the information from the IParameters set for this renderer. Might return null

isPreviewEnabled

protected boolean isPreviewEnabled()
checks, if the current ui implements functionality to preview a resource. This depends on the mimetype of the current resource and the current ILayoutController

Returns:
The previewEnabled value

writeDebugInformation

protected final void writeDebugInformation()

renderMetaProperty

public Component renderMetaProperty(IMetaName metaName,
                                    boolean hasContentLink)
                             throws WcmException
Description of the Method

Specified by:
renderMetaProperty in interface IResourceRenderer
Parameters:
metaName - Description of the param
hasContentLink - Description of the param
Returns:
Description of the Return Value
Throws:
WcmException - Description of the Exception

getProperty

public IProperty getProperty(IPropertyName name)
                      throws WcmException
Gets the property attribute of the AbstractResourceRenderer object

Parameters:
name - Description of the param
Returns:
The property value
Throws:
WcmException - Exception raised in failure situation

getPropertyListByMetaName

public List getPropertyListByMetaName(IMetaName metaName)
                               throws WcmException
Gets the propertyListByMetaName attribute of the AbstractResourceRenderer object

Parameters:
metaName - Description of the param
Returns:
The propertyListByMetaName value
Throws:
WcmException - Exception raised in failure situation

getPropertyBag

public Map getPropertyBag()
Specified by:
getPropertyBag in interface IResourceRenderer
Returns:
Returns a property bag for a resource contained in the list. Returns null if the specified resource is not contained in the list or no property bag is associated with the resource.

setPropertyBag

public void setPropertyBag(Map propertyBag)
                    throws WcmException
Set a property bag for the resource.

Specified by:
setPropertyBag in interface IResourceRenderer
Parameters:
propertyBag - Properties to store.
Throws:
WcmException - If the specified resource is not contained in the list.


Copyright 2006 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Microsoft, Windows, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. MaxDB is a trademark of MySQL AB, Sweden. 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.