com.sapportals.wcm.control.util

Class PropertyRenderUtil

java.lang.Object
  extended by com.sapportals.wcm.control.util.PropertyRenderUtil

Deprecated. As of NetWeaver 7.1

public class PropertyRenderUtil
extends Object

The PropertyRenderUtil is used to display properties

Copyright 2004 SAP AG


Nested Class Summary
protected  class PropertyRenderUtil.ItemComparator
          Deprecated. Comparator used for ordering the item type labels in dropDown component
protected  class PropertyRenderUtil.ItemObject
          Deprecated. Inner class used for rendering ordered by item type description into the DropDown Component
 
Field Summary
static String PROPERTY_RENDER_CLASS_PEOPLE
          Deprecated.  
 
Constructor Summary
PropertyRenderUtil()
          Deprecated. As of NetWeaver 7.1
 
Method Summary
static String get508PropertyTooltip(IProperty property, String propertyValue, Locale locale)
          Deprecated. As of NetWeaver 7.1
static String get508PropertyTooltip(String propertyName, String propertyValue, Locale locale)
          Deprecated. As of NetWeaver 7.1
static String getAdditionalMetaTagValue(IMetaName metaName, String metaTag)
          Deprecated. As of NetWeaver 7.1
static String getAdditionalMetaTagValue(IPropertyName propertyName, String metaTag)
          Deprecated. As of NetWeaver 7.1
static String getDisplayName(IResource resource)
          Deprecated. return displayName for given resource
static String getMetaNameLabel(IProperty property, Locale locale)
          Deprecated. As of NetWeaver 7.1
static IStructuredPropertyRenderer getRenderer(IMetaName metaName, PropertyDisplayMode displayMode)
          Deprecated. As of NetWeaver 7.1
static String getRendererClass(IMetaName metaName, PropertyDisplayMode displayMode)
          Deprecated. As of NetWeaver 7.1
 IMetaValueListIterator getSortedValueIterator(IMetaName metaName, IMetaContext metaContext)
          Deprecated.  
 IMetaValueListIterator getSortedValueIterator(IMetaValueList metaValuesList, IMetaContext metaContext)
          Deprecated.  
static String getValueFromMetaExtension(IProperty property, IResource resource)
          Deprecated. As of NetWeaver 7.1
static boolean is508Enabled(IResource res)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderImageValue(IProperty property, IMetaName metaName, IResource resource)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderLockInfo(IResource res)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderProperty(IProperty property, IResource res, int maxLength)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderProperty(IProperty property, IResource res, int maxLength, com.sapportals.wdf.stack.Control ctrl)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderProperty(IProperty property, IResource res, int maxLength, com.sapportals.wdf.stack.Control ctrl, IMetaName metaName)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderProperty(IProperty property, IResource res, int maxLength, IMetaName metaName)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderProperty(IProperty property, IResource res, int maxLength, String localRenderClass)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderProperty(IProperty property, IResource res, int maxLength, String localRenderClass, com.sapportals.wdf.stack.Control ctrl)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderProperty(IProperty property, IResource res, int maxLength, String localRenderClass, IMetaName metaName)
          Deprecated. As of NetWeaver 7.1
static com.sapportals.htmlb.Component renderProperyByPropertyName(IPropertyName propertyName, IResource resource, int maxLength)
          Deprecated. As of NetWeaver 7.1
static void setLabelFor(com.sapportals.htmlb.Label label, com.sapportals.htmlb.Component comp)
          Deprecated. As of NetWeaver 7.1
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTY_RENDER_CLASS_PEOPLE

public static final String PROPERTY_RENDER_CLASS_PEOPLE
Deprecated. 
See Also:
Constant Field Values
Constructor Detail

PropertyRenderUtil

public PropertyRenderUtil()
Deprecated. As of NetWeaver 7.1

This Class allows standard (and special rendering of properties
Rendering Classes are searched by: an own rednering class can be given as parameter. Also an Control can be defined to be used by the Rendering Class for callback methods

Method Detail

renderProperty

public static com.sapportals.htmlb.Component renderProperty(IProperty property,
                                                            IResource res,
                                                            int maxLength)
Deprecated. As of NetWeaver 7.1


renderProperty

public static com.sapportals.htmlb.Component renderProperty(IProperty property,
                                                            IResource res,
                                                            int maxLength,
                                                            IMetaName metaName)
Deprecated. As of NetWeaver 7.1


renderProperty

public static com.sapportals.htmlb.Component renderProperty(IProperty property,
                                                            IResource res,
                                                            int maxLength,
                                                            com.sapportals.wdf.stack.Control ctrl)
Deprecated. As of NetWeaver 7.1


renderProperty

public static com.sapportals.htmlb.Component renderProperty(IProperty property,
                                                            IResource res,
                                                            int maxLength,
                                                            com.sapportals.wdf.stack.Control ctrl,
                                                            IMetaName metaName)
Deprecated. As of NetWeaver 7.1


renderProperty

public static com.sapportals.htmlb.Component renderProperty(IProperty property,
                                                            IResource res,
                                                            int maxLength,
                                                            String localRenderClass)
Deprecated. As of NetWeaver 7.1


renderProperty

public static com.sapportals.htmlb.Component renderProperty(IProperty property,
                                                            IResource res,
                                                            int maxLength,
                                                            String localRenderClass,
                                                            IMetaName metaName)
Deprecated. As of NetWeaver 7.1


renderProperty

public static com.sapportals.htmlb.Component renderProperty(IProperty property,
                                                            IResource res,
                                                            int maxLength,
                                                            String localRenderClass,
                                                            com.sapportals.wdf.stack.Control ctrl)
Deprecated. As of NetWeaver 7.1


renderLockInfo

public static com.sapportals.htmlb.Component renderLockInfo(IResource res)
Deprecated. As of NetWeaver 7.1


renderProperyByPropertyName

public static com.sapportals.htmlb.Component renderProperyByPropertyName(IPropertyName propertyName,
                                                                         IResource resource,
                                                                         int maxLength)
Deprecated. As of NetWeaver 7.1


getRenderer

public static IStructuredPropertyRenderer getRenderer(IMetaName metaName,
                                                      PropertyDisplayMode displayMode)
Deprecated. As of NetWeaver 7.1

Returns the IStructuredPropertyRenderer for a givven IMetaName and PropertyDisplayMode

Parameters:
metaName -
displayMode -
Returns:
IStructuredPropertyRenderer for a given IMetaName and PropertyDisplayMode

getRendererClass

public static String getRendererClass(IMetaName metaName,
                                      PropertyDisplayMode displayMode)
Deprecated. As of NetWeaver 7.1

Returns the java class for the property renderer for a given IMetaName and PropertyDisplayMode

Parameters:
metaName -
displayMode -
Returns:
the java class name for the property renderer

renderImageValue

public static com.sapportals.htmlb.Component renderImageValue(IProperty property,
                                                              IMetaName metaName,
                                                              IResource resource)
Deprecated. As of NetWeaver 7.1

Renders the image which is configured for the IMetaName in 'Additional Metadata' field The syntax is ( what is between "" should be - "default_image="imagePath - when the IProperty is null this will be always rendered - "image_"propertyValue1"="imagePath1",""image_"propertyValue2"="imagePath2","... "image_"propertyValuen"="imagePathn - renders the imagepath for the propertyValuek - "image_%value%="/documents/images/%value%.gif - for propertyValueK will be render /documents/images/propertyValuek.gif

Parameters:
property -
metaName -
resource -
Returns:
rendered image value

setLabelFor

public static void setLabelFor(com.sapportals.htmlb.Label label,
                               com.sapportals.htmlb.Component comp)
Deprecated. As of NetWeaver 7.1


getValueFromMetaExtension

public static String getValueFromMetaExtension(IProperty property,
                                               IResource resource)
Deprecated. As of NetWeaver 7.1

Returns the localization value for a property


getAdditionalMetaTagValue

public static final String getAdditionalMetaTagValue(IPropertyName propertyName,
                                                     String metaTag)
                                              throws WcmException
Deprecated. As of NetWeaver 7.1

Reads the Property Metadata config and looks if it's a value for the given IPropertyName and the additional metatag String in Additional Metatags field. If the metaTag exits and it has a value, then that value is returned. If the metaTag exist but it has no value then it returns the metaTag value. If the metaTag does not exists, then it returns null.

Parameters:
propertyName -
metaTag -
Returns:
additional metatag value
Throws:
WcmException

getAdditionalMetaTagValue

public static String getAdditionalMetaTagValue(IMetaName metaName,
                                               String metaTag)
                                        throws WcmException
Deprecated. As of NetWeaver 7.1

Reads the Property Metadata config and looks if it's a value for the given IMetaName and the additional metatag String in Additional Metatags field. If the metaTag exits and it has a value, then that value is returned. If the metaTag exists but it has no value then it returns the metaTag value. If the metaTag does not exists, then it returns null.

Parameters:
metaName -
metaTag -
Returns:
additional metatag value
Throws:
WcmException

get508PropertyTooltip

public static String get508PropertyTooltip(String propertyName,
                                           String propertyValue,
                                           Locale locale)
Deprecated. As of NetWeaver 7.1


get508PropertyTooltip

public static String get508PropertyTooltip(IProperty property,
                                           String propertyValue,
                                           Locale locale)
Deprecated. As of NetWeaver 7.1


getMetaNameLabel

public static String getMetaNameLabel(IProperty property,
                                      Locale locale)
Deprecated. As of NetWeaver 7.1


is508Enabled

public static boolean is508Enabled(IResource res)
Deprecated. As of NetWeaver 7.1


getSortedValueIterator

public IMetaValueListIterator getSortedValueIterator(IMetaName metaName,
                                                     IMetaContext metaContext)
Deprecated. 

getSortedValueIterator

public IMetaValueListIterator getSortedValueIterator(IMetaValueList metaValuesList,
                                                     IMetaContext metaContext)
Deprecated. 

getDisplayName

public static String getDisplayName(IResource resource)
                             throws ResourceException
Deprecated. 
return displayName for given resource

Parameters:
resource -
Returns:
displayName for given resource
Throws:
ResourceException
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-CM [sap.com] tc/km/nonwduideprecated api EP-KM-CM
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM


Copyright 2014 SAP AG Complete Copyright Notice