com.sapportals.wcm.rendering.util

Class HtmlRendererUtil

java.lang.Object
  extended by com.sapportals.wcm.rendering.util.HtmlRendererUtil

public class HtmlRendererUtil
extends Object


Field Summary
static String CLASS_STYLE_DARK
           
static String CLASS_STYLE_LIGHT
           
static String CLASS_STYLE_LINE
           
static String CLASS_STYLE_TRANSPARENT
           
static com.sapportals.htmlb.enums.CellVAlign FLEXUI_VERTICAL_ALIGN
           
static String LINK_BLANK_TARGET
           
static String PADDING_BOTTOM
           
static String PADDING_STRING
           
static String PADDING_TOP
           
static Hashtable propertyColumnHeaderMap
           
 
Method Summary
static String getHeaderClassStyle(String parameterName)
          Returns the classStyle for Header for a given configurated parameter
static String[] getPaddings(IModifierList modifiersList)
          Returns a padding style string as : ";padding: top right bottom left" from configured property for a given IMetaName
static String getPaddingText(int top, int right, int bottom, int left)
          Returns a padding style string as : ";padding: top right bottom left"
static String getPropertyPadding(IModifierList modifiersList)
          Returns a padding style string as : ";padding: top right bottom left" from configured property for a given IMetaName
static String getPropertyPadding(IPropertyColumn propertyColumn, IMetaName metaName)
          Returns a padding style string as : ";padding: top right bottom left" from configured property for a given IMetaName
static String[] getPropertyPaddingValues(int top, int right, int bottom, int left)
          Returns a padding values as an array of String from configured property for a given IMetaName
static String[] getPropertyPaddingValues(IPropertyColumn propertyColumn, IMetaName metaName)
          Returns a padding values as an array of String from configured property for a given IMetaName
static com.sapportals.htmlb.HTMLFragment importStyles()
           
static com.sapportals.htmlb.HTMLFragment renderEmptySpace()
           
static com.sapportals.htmlb.Component renderLineSeparator(String classStyle, int height)
          Renders a line separator for a given classStyle and a givven height
static com.sapportals.htmlb.Component renderVerticalLineSeparator(String classStyle, int width)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_STYLE_DARK

public static final String CLASS_STYLE_DARK
See Also:
Constant Field Values

CLASS_STYLE_LIGHT

public static final String CLASS_STYLE_LIGHT
See Also:
Constant Field Values

CLASS_STYLE_LINE

public static final String CLASS_STYLE_LINE
See Also:
Constant Field Values

CLASS_STYLE_TRANSPARENT

public static final String CLASS_STYLE_TRANSPARENT
See Also:
Constant Field Values

PADDING_TOP

public static final String PADDING_TOP
See Also:
Constant Field Values

PADDING_BOTTOM

public static final String PADDING_BOTTOM
See Also:
Constant Field Values

PADDING_STRING

public static final String PADDING_STRING
See Also:
Constant Field Values

propertyColumnHeaderMap

public static Hashtable propertyColumnHeaderMap

LINK_BLANK_TARGET

public static final String LINK_BLANK_TARGET
See Also:
Constant Field Values

FLEXUI_VERTICAL_ALIGN

public static final com.sapportals.htmlb.enums.CellVAlign FLEXUI_VERTICAL_ALIGN
Method Detail

renderEmptySpace

public static com.sapportals.htmlb.HTMLFragment renderEmptySpace()

renderLineSeparator

public static com.sapportals.htmlb.Component renderLineSeparator(String classStyle,
                                                                 int height)
Renders a line separator for a given classStyle and a givven height

Parameters:
classStyle -
height -
Returns:
a separator component

renderVerticalLineSeparator

public static com.sapportals.htmlb.Component renderVerticalLineSeparator(String classStyle,
                                                                         int width)

getPaddingText

public static String getPaddingText(int top,
                                    int right,
                                    int bottom,
                                    int left)
Returns a padding style string as : ";padding: top right bottom left"

Parameters:
top -
right -
bottom -
left -
Returns:
The paddingText value

getPropertyPadding

public static String getPropertyPadding(IPropertyColumn propertyColumn,
                                        IMetaName metaName)
Returns a padding style string as : ";padding: top right bottom left" from configured property for a given IMetaName

Parameters:
propertyColumn -
metaName -
Returns:
The propertyPadding value

getPropertyPadding

public static String getPropertyPadding(IModifierList modifiersList)
Returns a padding style string as : ";padding: top right bottom left" from configured property for a given IMetaName

Parameters:
modifiersList -
Returns:
The propertyPadding value

getPaddings

public static String[] getPaddings(IModifierList modifiersList)
Returns a padding style string as : ";padding: top right bottom left" from configured property for a given IMetaName

Parameters:
modifiersList -
Returns:
The propertyPadding value

getPropertyPaddingValues

public static String[] getPropertyPaddingValues(int top,
                                                int right,
                                                int bottom,
                                                int left)
Returns a padding values as an array of String from configured property for a given IMetaName

Parameters:
top -
right -
bottom -
left -
Returns:
The Padding values: [top],[right],[bottom],[left]

getPropertyPaddingValues

public static String[] getPropertyPaddingValues(IPropertyColumn propertyColumn,
                                                IMetaName metaName)
Returns a padding values as an array of String from configured property for a given IMetaName

Parameters:
propertyColumn -
metaName -
Returns:
The Padding values: [top],[right],[bottom],[left]

getHeaderClassStyle

public static String getHeaderClassStyle(String parameterName)
Returns the classStyle for Header for a given configurated parameter

Parameters:
parameterName - Description of the Parameter
Returns:
The classStyle value according with the configurated parameter or null if parameterName is null or it does not exists a value for this parameterName

importStyles

public static com.sapportals.htmlb.HTMLFragment importStyles()
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