Package org.docx4j.wml

Examples of org.docx4j.wml.CTVerticalAlignRun


    this.setObject(val);
  }
 
  public VerticalAlignment(CSSValue value) {
   
    CTVerticalAlignRun vAlign = Context.getWmlObjectFactory().createCTVerticalAlignRun();
   
    if (value.getCssText().toLowerCase().equals("top")) {     
      vAlign.setVal(STVerticalAlignRun.SUPERSCRIPT);     
      this.setObject( vAlign );
    } else if (value.getCssText().toLowerCase().equals("super")) {     
      vAlign.setVal(STVerticalAlignRun.SUPERSCRIPT);     
      this.setObject( vAlign );
    } else if (value.getCssText().toLowerCase().equals("bottom")
            || value.getCssText().toLowerCase().equals("sub")) {
        vAlign.setVal(STVerticalAlignRun.SUBSCRIPT);     
        this.setObject( vAlign );
    } else {
      log.warn("What to do with value: " + value.getCssText());
    }
  }
View Full Code Here

TOP

Related Classes of org.docx4j.wml.CTVerticalAlignRun

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.