Package org.docx4j.wml

Examples of org.docx4j.wml.STVerticalJc


  }

  @Override
  public String getCssProperty() {
   
    STVerticalJc val = ((CTVerticalJc)this.getObject()).getVal();
    if (val == STVerticalJc.TOP || val == STVerticalJc.BOTTOM ) {           
      return composeCss(CSS_NAME, val.value());
    } else if (val == STVerticalJc.CENTER) {
      return composeCss(CSS_NAME, "middle");
    } else {
      // No CSS equibalent for "both"
      return CSS_NULL;
View Full Code Here



  @Override
  public void setXslFO(Element foElement) {

    STVerticalJc val = ((CTVerticalJc)this.getObject()).getVal();
    if (val == STVerticalJc.TOP ) {           
      foElement.setAttribute(FO_NAME, "before");
    } else if (val == STVerticalJc.CENTER) {
      foElement.setAttribute(FO_NAME, "center");
    } else if (val == STVerticalJc.BOTTOM) {
      foElement.setAttribute(FO_NAME, "after");
    } else  {
      log.warn("How to handle vertical alignment of " + val.value());
    }    
  }
View Full Code Here

TOP

Related Classes of org.docx4j.wml.STVerticalJc

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.