Package org.docx4j.wml.PPrBase

Examples of org.docx4j.wml.PPrBase.TextAlignment


 
  public TextAlignmentVertical(CSSValue value) { 
   
    debug(CSS_NAME, value);
   
    TextAlignment textAlignment = Context.getWmlObjectFactory().createPPrBaseTextAlignment();
   
    if (value.getCssText().toLowerCase().equals("top")) {
      textAlignment.setVal("top");
    } else if (value.getCssText().toLowerCase().equals("middle")) {
      textAlignment.setVal("center");
    } else if (value.getCssText().toLowerCase().equals("baseline")) {
      textAlignment.setVal("auto");
    } else {
      log.warn("How to handle vertical-align: " + value.getCssText());
    }   

    this.setObject( textAlignment  );
View Full Code Here

TOP

Related Classes of org.docx4j.wml.PPrBase.TextAlignment

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.