Examples of CTHeight


Examples of org.docx4j.wml.CTHeight

  public final static String FO_NAME  = "height";
  protected static final BigInteger DEFAULT_TWIPS_HEIGHT = BigInteger.valueOf(UnitsOfMeasurement.mmToTwip(5f));
  protected static final QName TRHEIGHT_NAME = new QName("http://schemas.openxmlformats.org/wordprocessingml/2006/main", "trHeight");
 
  public TrHeight() {
    CTHeight defHeight = new CTHeight();
    defHeight.setVal(DEFAULT_TWIPS_HEIGHT);
    defHeight.setHRule(STHeightRule.AT_LEAST);
    setObject(defHeight);
  }
View Full Code Here

Examples of org.docx4j.wml.CTHeight

 
  @Override
  public void set(TrPr trPr) {
   
    JAXBElement<CTHeight> jbHeight = null;
    CTHeight ctHeight = (CTHeight)getObject();
    if ((ctHeight != null) && (ctHeight.getVal() != null)) {
      jbHeight = new JAXBElement<CTHeight>(TRHEIGHT_NAME, CTHeight.class, (CTHeight)getObject());
     
      JAXBElement<?> existing = XmlUtils.getListItemByQName(trPr.getCnfStyleOrDivIdOrGridBefore(), jbHeight.getName() );
      if (existing==null) {
       
View Full Code Here

Examples of org.docx4j.wml.CTHeight

  @Override
  public String getCssProperty() { // Won't work?  See above?
   
    String ret = null;
    CTHeight ctHeight = (CTHeight)getObject();
    if ((ctHeight != null) && (ctHeight.getVal() != null)) {
      ret = composeCss(getCssName(), UnitsOfMeasurement.twipToBest(ctHeight.getVal().intValue()));
    }
    return ret;
  }
View Full Code Here

Examples of org.docx4j.wml.CTHeight

  }

  @Override
  public void setXslFO(Element foElement) {
   
    CTHeight ctHeight = (CTHeight)getObject();
    if ((ctHeight != null) && (ctHeight.getVal() != null)) {
      foElement.setAttribute(FO_NAME,
          UnitsOfMeasurement.twipToBest(ctHeight.getVal().intValue()));
    }
  }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight

     *
     * @param height
     */
    public void setHeight(int height) {
        CTTrPr properties = getTrPr();
        CTHeight h = properties.sizeOfTrHeightArray() == 0 ? properties.addNewTrHeight() : properties.getTrHeightArray(0);
        h.setVal(new BigInteger("" + height));
    }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight

     *
     * @param height
     */
    public void setHeight(int height) {
        CTTrPr properties = getTrPr();
        CTHeight h = properties.sizeOfTrHeightArray() == 0 ? properties.addNewTrHeight() : properties.getTrHeightArray(0);
        h.setVal(new BigInteger("" + height));
    }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight

     *
     * @param height
     */
    public void setHeight(int height) {
  CTTrPr properties = getTrPr();
  CTHeight h = properties.sizeOfTrHeightArray() == 0 ? properties.addNewTrHeight() : properties.getTrHeightArray(0);
  h.setVal(new BigInteger("" + height));
    }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight

     *
     * @param height
     */
    public void setHeight(int height) {
  CTTrPr properties = getTrPr();
  CTHeight h = properties.sizeOfTrHeightArray() == 0 ? properties.addNewTrHeight() : properties.getTrHeightArray(0);
  h.setVal(new BigInteger("" + height));
    }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight

     *
     * @param height
     */
    public void setHeight(int height) {
        CTTrPr properties = getTrPr();
        CTHeight h = properties.getTrHeightArray(0) == null ? properties.addNewTrHeight() : properties.getTrHeightArray(0);
        h.setVal(new BigInteger("" + height));
        //properties.setTrHeightArray(0,height);
    }
View Full Code Here

Examples of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHeight

     *
     * @param height
     */
    public void setHeight(int height) {
        CTTrPr properties = getTrPr();
        CTHeight h = properties.getTrHeightArray(0) == null ? properties.addNewTrHeight() : properties.getTrHeightArray(0);
        h.setVal(new BigInteger("" + height));
        //properties.setTrHeightArray(0,height);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.