Class StyleUtil
java.lang.Object
org.eclipse.birt.report.model.api.util.StyleUtil
Utility class to provide some methods about the style element, styled element
and style properties.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddExtensionSelectors(ReportDesignHandle designHandle) Adds selectors for extended elements to the report design.static DesignElementHandlecopyLocalStyles(DesignElementHandle source, DesignElementHandle target) Gets the design element handle with all the style properties are copied to the returned value.static DesignElementHandlecopyStyles(DesignElementHandle source, DesignElementHandle target) Gets the design element handle with all the style properties are copied to the returned value.static DesignElementHandlecopyStyles(DesignElementHandle source, DesignElementHandle target, boolean isCascaded) Gets the design element handle with all the style properties are copied to the returned value.static booleanhasExternalCSSURI(org.eclipse.birt.report.model.core.Module module) Check if external CSS URI is used
-
Constructor Details
-
StyleUtil
public StyleUtil()
-
-
Method Details
-
copyStyles
public static DesignElementHandle copyStyles(DesignElementHandle source, DesignElementHandle target, boolean isCascaded) Gets the design element handle with all the style properties are copied to the returned value. IfisCascadedis set to TRUE, the copied style property value will be the cascaded value, otherwise will be the factory value.- Parameters:
source- design element handletarget- design element handleisCascaded- flag if the element is cascaded- Returns:
- Return a copy of style properties
-
copyStyles
public static DesignElementHandle copyStyles(DesignElementHandle source, DesignElementHandle target) Gets the design element handle with all the style properties are copied to the returned value. The copied style property value will be the factory value and not cascaded.- Parameters:
source- design element handletarget-- Returns:
- Return a copy of style properties
-
copyLocalStyles
public static DesignElementHandle copyLocalStyles(DesignElementHandle source, DesignElementHandle target) Gets the design element handle with all the style properties are copied to the returned value. IfisCascadedis set to TRUE, the copied style property value will be the cascaded value, otherwise will be the factory value.- Parameters:
source- design element handletarget-- Returns:
- Return a copy of style properties
-
addExtensionSelectors
Adds selectors for extended elements to the report design. This action will be non-undoable, that is, once the selectors are inserted to the design handle, it will not be removed by undo action.- Parameters:
designHandle-
-
hasExternalCSSURI
public static boolean hasExternalCSSURI(org.eclipse.birt.report.model.core.Module module) Check if external CSS URI is used- Parameters:
module-- Returns:
- Return the check result whether CSS URI si used
-