Package org.docx4j.wml

Examples of org.docx4j.wml.Highlight


    this.setObject(shading);
  }
 
  public HighlightColor(CSSValue value) { 
   
    Highlight shd = Context.getWmlObjectFactory().createHighlight();   
    shd.setVal(value.getCssText());
    this.setObject( shd  );
  }
View Full Code Here


  }

  @Override
  public String getCssProperty() {
   
    Highlight shd = ((Highlight)this.getObject());
   
    if (shd.getVal()!=null &&
    !shd.getVal().equals("none")) {
      return composeCss(CSS_NAME, shd.getHexVal() );
    } else {
      return CSS_NULL;
    }
  }
View Full Code Here


  @Override
  public void setXslFO(Element foElement) {

    Highlight shd = ((Highlight)this.getObject());
   
    if (shd.getVal()!=null &&
        !shd.getVal().equals("none")) {
      foElement.setAttribute(FO_NAME, shd.getHexVal() );
    }
   
  }
View Full Code Here

TOP

Related Classes of org.docx4j.wml.Highlight

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.