Package com.microstrategy.web.objects
Interface WebCSSHelper
-
public interface WebCSSHelper
This interface is a helper interface which manages the generation of CSS from formatting settings. The CSS string generated will include two parts, one part which refers to the default formatting, and another part which contains settings from the report-specific formatting classes. Note that the CSS classes generated from the default properties will have the base name css_default_class.- Since:
- MicroStrategy Web 7.3.1 or earlier
-
-
Field Summary
Fields Modifier and Type Field Description static int
ALL_HEADERS_AND_VALUES
static int
CSS_MODE_EXCEL
Excel targeted mode of css string.static int
CSS_MODE_GENERAL
General mode of css string.static int
METRIC_VALUES
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
applyInteractiveGridStyle(int borderWidth, int[] padding, int lineHeight, int theme)
boolean
cssUsesFilter()
Return whether the css uses filters for special visual effect for IE.void
disableFixedCellLayout()
Turns off fixed cell layout generation.void
ensureFixedCellLayout(int borderWidth, int paddingTop, int paddingRight, int paddingBottom, int paddingLeft, int lineHeight)
This API ensures that the generated CSS represents cells with fixed sizes using the fixed properties passed e.g. border, padding, line height.java.lang.String
getCSS()
Generates css with modeCSS_MODE_GENERAL
and includes defaults.java.lang.String
getCSS(int mode)
Generates css with defaults.java.lang.String
getCSS(int mode, boolean includeDefaultCSS)
Return the CSS string, which is composed from the formatting properties set on the report associated with this object, according to the input mode.int
getCSSClassCount()
int
getCSSClassCount(boolean includeDefaultCSS)
java.util.Map<java.lang.String,WebFormat>
getFormats(int flag)
Returns aMap
collection ofWebFormat
objects, each of which represents a style or a class.double
getParentFontSize()
Return the current parent font size setting.java.lang.String
getPrefix()
Returns the report prefix, which will be added in front of all CSS classes' name in any CSS code generated from this class.boolean
getRenderStyleTag()
Returns the flag which controls whether
-