Package org.pentaho.reporting.engine.classic.core.style.css.selector

Examples of org.pentaho.reporting.engine.classic.core.style.css.selector.CSSSelectorFactory


    assertEquals("selected-font", bandedElement.getStyleSheet().getStyleProperty(TextStyleKeys.FONT));
  }

  private ElementStyleDefinition createStyleDefinition(final String targetName)
  {
    CSSSelectorFactory factory = new CSSSelectorFactory();

    ElementStyleRule rule = new ElementStyleRule();
    rule.addSelector((CSSSelector) factory.createElementSelector(null, "label"));
    rule.setStyleProperty(TextStyleKeys.FONT, targetName);

    ElementStyleDefinition def = new ElementStyleDefinition();
    def.addRule(rule);
    return def;
View Full Code Here


    {
      final Parser p = ObjectUtilities.loadAndInstantiate(parserClass, CSSParserFactory.class, Parser.class);
      if (p != null)
      {
        p.setConditionFactory(new FixNamespaceConditionFactory(new CSSConditionFactory(),namespaceCollection));
        p.setSelectorFactory(new FixNamespaceSelectorFactory(new CSSSelectorFactory(),namespaceCollection));
        return p;
      }
    }
    try
    {
      final Parser p = new ParserFactory().makeParser();
      if (p == null)
      {
        return null;
      }
      p.setConditionFactory(new FixNamespaceConditionFactory(new CSSConditionFactory(),namespaceCollection));
      p.setSelectorFactory(new FixNamespaceSelectorFactory(new CSSSelectorFactory(),namespaceCollection));
      return p;
    }
    catch (Exception e)
    {
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.style.css.selector.CSSSelectorFactory

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.