public class

PropertySetHelper

extends Object
java.lang.Object
   ↳ com.microstrategy.web.app.PropertySetHelper
Known Direct Subclasses

Class Overview

Title: PropertySetHelper.

Description: This is the helper file for generating the javascript which has the mapping between the HTML property names and the propert set property name

Copyright: Copyright (c) 2003

Company: Microstrategy, Inc.

Summary

Public Constructors
PropertySetHelper()
Public Methods
static void appendGradientColorStyle(WebFormat format, StringBuilder filterCollection, String objType)
static void appendTextDecoration(StringBuilder style, WebFormat format, int unitType)
static void appendTextDecoration(StringBuilder style, RWUnit rwUnit)
static void appendTextDirectionStyle(WebFormat format, StringBuilder filterCollection)
static double extractBorderWidthFromStyle(WebFormat format, String propertySet, String property)
static JsonGenerator generateFormatJson(RWUnit rwUnit, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, RWBean rwbean)
static void generateStyle(RWUnit rwUnit, String propertySetName, String propertyName, StringBuffer style, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, RWBean rwbean)
static void generateStyle(RWUnit rwUnit, String propertySetName, String propertyName, StringBuilder style, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, RWBean rwbean)
static String getDocPropertyValue(String propertySetName, String propertyName, String propertyValue, int dpiConversion, Locale locale, int zoomFactor)
Returns the property's html value of the document, i.e for borderStyle this returns '1pt dashed' instead of the encoded value (i.e 1-5)
static void getDocStyle(String propertySetName, String propertyName, String propertyValue, StringBuffer style, int dpiConversion, Locale locale, int zoomFactor)
static void getDocStyle(String propertySetName, String propertyName, String propertyValue, StringBuilder style, int dpiConversion, Locale locale, int zoomFactor)
This method renders the CSS class for the report writing document object
static Boolean getHasBorderFlag(String id)
This function returns a value indicating whether the given object has a border or not
static void getInlineStyle(String propertySetName, String propertyName, WebFormat format, StringBuilder style, String objType)
static PropertySets getPropertySets()
static String getStyleValue(Property property, RWUnit rwUnit, String propertyValue, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, RWBean rwbean)
static void init(String filePath)
This method initializes the property sets
static void resolveCss(RWUnit rwUnit, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, StringBuilder style, AppContext appContext, RWBean rwbean, int unitType)
This method renders the CSS class for report writing objects.
static void resolveCss(RWUnit rwUnit, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, StringBuffer style, AppContext appContext, RWBean rwbean)
static void resolvePanelStackTitleFormat(RWUnit rwUnit, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, StringBuilder style, AppContext appContext, RWBean rwbean, int unitType)
static void resolvePanelStackTitleFormat(RWUnit rwUnit, WebFormat format, StringBuilder style)
Protected Methods
static void generateJavaScriptFile(String javaScriptFileName)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PropertySetHelper ()

Public Methods

public static void appendGradientColorStyle (WebFormat format, StringBuilder filterCollection, String objType)

public static void appendTextDecoration (StringBuilder style, WebFormat format, int unitType)

public static void appendTextDecoration (StringBuilder style, RWUnit rwUnit)

public static void appendTextDirectionStyle (WebFormat format, StringBuilder filterCollection)

public static double extractBorderWidthFromStyle (WebFormat format, String propertySet, String property)

public static JsonGenerator generateFormatJson (RWUnit rwUnit, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, RWBean rwbean)

public static void generateStyle (RWUnit rwUnit, String propertySetName, String propertyName, StringBuffer style, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, RWBean rwbean)

public static void generateStyle (RWUnit rwUnit, String propertySetName, String propertyName, StringBuilder style, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, RWBean rwbean)

public static String getDocPropertyValue (String propertySetName, String propertyName, String propertyValue, int dpiConversion, Locale locale, int zoomFactor)

Returns the property's html value of the document, i.e for borderStyle this returns '1pt dashed' instead of the encoded value (i.e 1-5)

Parameters
propertySetName String
propertyName String
propertyValue String
dpiConversion int
locale Locale
zoomFactor int
Returns
  • String

public static void getDocStyle (String propertySetName, String propertyName, String propertyValue, StringBuffer style, int dpiConversion, Locale locale, int zoomFactor)

This method is deprecated.
Use getDocStyle(String, String, String, StringBuilder, int, Locale, int) instead

This method renders the CSS class for the report writing document object

Parameters
propertySetName String
propertyName String
propertyValue String
style StringBuffer to capture the style output
dpiConversion int the dpi value specified in the users preferences (72, 96 or 120)
locale Locale
zoomFactor int from 25 to 1000 indicating the zoom percentage value

public static void getDocStyle (String propertySetName, String propertyName, String propertyValue, StringBuilder style, int dpiConversion, Locale locale, int zoomFactor)

This method renders the CSS class for the report writing document object

Parameters
propertySetName String
propertyName String
propertyValue String
style StringBuffer to capture the style output
dpiConversion int the dpi value specified in the users preferences (72, 96 or 120)
locale Locale
zoomFactor int from 25 to 1000 indicating the zoom percentage value

public static Boolean getHasBorderFlag (String id)

This function returns a value indicating whether the given object has a border or not

Parameters
id String
Returns
  • Boolean

public static void getInlineStyle (String propertySetName, String propertyName, WebFormat format, StringBuilder style, String objType)

public static PropertySets getPropertySets ()

public static String getStyleValue (Property property, RWUnit rwUnit, String propertyValue, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, RWBean rwbean)

public static void init (String filePath)

This method initializes the property sets

Parameters
filePath String

public static void resolveCss (RWUnit rwUnit, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, StringBuilder style, AppContext appContext, RWBean rwbean, int unitType)

This method renders the CSS class for report writing objects.

Parameters
rwUnit RWUnit
format WebFormat
dpiConversion int the dpi value specified in the users preferences (72, 96 or 120)
locale Locale
zoomFactor int from 25 to 1000 indicating the zoom percentage value
isDesignMode boolean
style StringBuilder to capture the style output
appContext AppContext
rwbean RWBean

public static void resolveCss (RWUnit rwUnit, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, StringBuffer style, AppContext appContext, RWBean rwbean)

This method is deprecated.
use resolveCss(RWUnit, WebFormat, int, Locale, int, boolean, StringBuilder, AppContext, RWBean, int) instead.

This method renders the CSS class for report writing objects.

Parameters
rwUnit RWUnit
format WebFormat
dpiConversion int the dpi value specified in the users preferences (72, 96 or 120)
locale Locale
zoomFactor int from 25 to 1000 indicating the zoom percentage value
isDesignMode boolean
style StringBuffer to capture the style output
appContext AppContext
rwbean RWBean

public static void resolvePanelStackTitleFormat (RWUnit rwUnit, WebFormat format, int dpiConversion, Locale locale, int zoomFactor, boolean isDesignMode, StringBuilder style, AppContext appContext, RWBean rwbean, int unitType)

public static void resolvePanelStackTitleFormat (RWUnit rwUnit, WebFormat format, StringBuilder style)

Protected Methods

protected static void generateJavaScriptFile (String javaScriptFileName)