Package org.pentaho.reporting.libraries.css.model

Examples of org.pentaho.reporting.libraries.css.model.CSSDeclarationRule


        dependencies.add(data.getKey(), data.getVersion(manager));
      }

      CSSParserContext.getContext().destroy();

      final CSSDeclarationRule styleRule = handler.getStyleRule();
      if (styleRule == null)
      {
        throw new ResourceCreationException("Damn, the style rule is null");
      }
      return new CompoundResource(data.getKey(), dependencies, styleRule, getFactoryType());
View Full Code Here


        {
          handler.setStyleRule(new CSSStyleRule(new StyleSheet(), null));
        }
        parser.setDocumentHandler(handler);
        parser.parseStyleDeclaration(source);
        final CSSDeclarationRule rule = handler.getStyleRule();
        CSSParserContext.getContext().destroy();
        return rule;
      }
    }
    catch (Exception e)
View Full Code Here

    if (styleValue instanceof String)
    {
      final String styleText = (String) styleValue;
      final ResourceManager resourceManager = getDocumentContext().getResourceManager();
      final CSSDeclarationRule rule = StyleSheetParserUtil.getInstance().parseStyleRule
          (null, styleText, null, null, resourceManager, StyleKeyRegistry.getRegistry());
      if (rule != null)
      {
        copyStyleInformation(node.getLayoutStyle(), rule, node);
      }
    }
    else if (styleValue instanceof CSSDeclarationRule)
    {
      final CSSDeclarationRule rule = (CSSDeclarationRule) styleValue;
      copyStyleInformation(node.getLayoutStyle(), rule, node);
    }
  }
View Full Code Here

        for (int i = 0; i < rc; i++)
        {
          final StyleRule rule = initialStyleSheet.getRule(i);
          if (rule instanceof CSSDeclarationRule)
          {
            final CSSDeclarationRule drule = (CSSDeclarationRule) rule;
            copyStyleInformation(initialStyle, drule, null);
          }
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.libraries.css.model.CSSDeclarationRule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.