Class CssStyleSheetHandle


  • public class CssStyleSheetHandle
    extends ElementDetailHandle
    Represents an include style sheet in the module. A style sheet is used for the user to load an external ".css" style file in the module.
    See Also:
    CssStyleSheet
    • Field Detail

      • styleSheet

        protected org.eclipse.birt.report.model.css.CssStyleSheet styleSheet
        The translation message.
    • Constructor Detail

      • CssStyleSheetHandle

        public CssStyleSheetHandle​(ModuleHandle moduleHandle,
                                   org.eclipse.birt.report.model.css.CssStyleSheet styleSheet)
        Constructs a handle for an style sheet.
        Parameters:
        moduleHandle - a handle to a module
        styleSheet - the style sheet to be handled
    • Method Detail

      • getStyleSheet

        public org.eclipse.birt.report.model.css.CssStyleSheet getStyleSheet()
        Gets the style sheet.
        Returns:
        the style sheet
      • getStyleIterator

        public java.util.Iterator getStyleIterator()
        Returns an iterator over the styles of this style sheet. Useful only for style sheet. Returns a list of all the styles that use this style sheet.
        Returns:
        an iterator over the styles of this style sheet. Each item returned by the iterator's getNext( ) method is of type SharedStyleHandle.
      • findStyle

        public SharedStyleHandle findStyle​(java.lang.String name)
        Gets a style handle with the given name in the style sheet.
        Parameters:
        name - the name of the style to find
        Returns:
        the style handle with the given name in the style sheet, otherwise null
      • getUnsupportedStyles

        public java.util.List getUnsupportedStyles()
        Returns all the unsupported style names.
        Returns:
        the list of the unsupported style name
      • getWarnings

        public java.util.List getWarnings​(java.lang.String styleName)
        Gets the warning list of the given style. Each one in the list is instance of StyleSheetParserException.
        Parameters:
        styleName - the style name
        Returns:
        the warning list of the given style, otherwise null
        See Also:
        StyleSheetParserException
      • getParserErrors

        public java.util.List getParserErrors()
        Gets the message list for the parser errors.
        Returns:
        the message list for the parser errors
      • getParserFatalErrors

        public java.util.List getParserFatalErrors()
        Gets the message list for the parser fatal errors.
        Returns:
        the message list for the parser fatal errors
      • getParserWarnings

        public java.util.List getParserWarnings()
        Gets the message list for the parser warnings.
        Returns:
        the message list for the parser warnings
      • getFileName

        public java.lang.String getFileName()
        Gets css file name
        Returns:
        css file name
      • getExternalCssURI

        public java.lang.String getExternalCssURI()
      • isUseExternalCss

        public boolean isUseExternalCss()
      • getContainerHandle

        public DesignElementHandle getContainerHandle()
        Gets container handle.
        Returns: