Package org.openxmlformats.schemas.wordprocessingml.x2006.main

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


     */
    public XWPFVertAlign getVerticalAlignment() {
  XWPFVertAlign vAlign = null;
  CTTcPr tcpr = ctTc.getTcPr();
  if (ctTc != null) {
      CTVerticalJc va = tcpr.getVAlign();
      vAlign = stVertAlignTypeMap.get(va.getVal().intValue());
  }
  return vAlign;
    }
View Full Code Here


      // instantiate the following classes so they'll get picked up by
      // the XmlBean process and added to the jar file. they are required
      // for the following XWPFTableCell methods.
    CTShd ctShd = CTShd.Factory.newInstance();
    assertNotNull(ctShd);
    CTVerticalJc ctVjc = CTVerticalJc.Factory.newInstance();
    assertNotNull(ctVjc);
    STShd stShd = STShd.Factory.newInstance();
    assertNotNull(stShd);
    STVerticalJc stVjc = STVerticalJc.Factory.newInstance();
    assertNotNull(stVjc);
View Full Code Here

     * Set the vertical alignment of the cell.
     * @param vAlign - the desired alignment enum value
     */
    public void setVerticalAlignment(XWPFVertAlign vAlign) {
        CTTcPr tcpr = ctTc.isSetTcPr() ? ctTc.getTcPr() : ctTc.addNewTcPr();
      CTVerticalJc va = tcpr.addNewVAlign();
      va.setVal(alignMap.get(vAlign));
    }
View Full Code Here

     */
    public XWPFVertAlign getVerticalAlignment() {
  XWPFVertAlign vAlign = null;
  CTTcPr tcpr = ctTc.getTcPr();
  if (ctTc != null) {
      CTVerticalJc va = tcpr.getVAlign();
      vAlign = stVertAlignTypeMap.get(va.getVal().intValue());
  }
  return vAlign;
    }
View Full Code Here

     * Set the vertical alignment of the cell.
     * @param vAlign - the desired alignment enum value
     */
    public void setVerticalAlignment(XWPFVertAlign vAlign) {
        CTTcPr tcpr = ctTc.isSetTcPr() ? ctTc.getTcPr() : ctTc.addNewTcPr();
      CTVerticalJc va = tcpr.addNewVAlign();
      va.setVal(alignMap.get(vAlign));
    }
View Full Code Here

     */
    public XWPFVertAlign getVerticalAlignment() {
      XWPFVertAlign vAlign = null;
        CTTcPr tcpr = ctTc.getTcPr();
        if (ctTc != null) {
          CTVerticalJc va = tcpr.getVAlign();
          vAlign = stVertAlignTypeMap.get(va.getVal().intValue());
        }
        return vAlign;
    }
View Full Code Here

            // add content to each cell
          for (XWPFTableCell cell : cells) {
            // get a table cell properties element (tcPr)
            CTTcPr tcpr = cell.getCTTc().addNewTcPr();
            // set vertical alignment to "center"
            CTVerticalJc va = tcpr.addNewVAlign();
            va.setVal(STVerticalJc.CENTER);

            // create cell color element
            CTShd ctshd = tcpr.addNewShd();
                ctshd.setColor("auto");
                ctshd.setVal(STShd.CLEAR);
View Full Code Here

     * Set the vertical alignment of the cell.
     * @param vAlign - the desired alignment enum value
     */
    public void setVerticalAlignment(XWPFVertAlign vAlign) {
        CTTcPr tcpr = ctTc.isSetTcPr() ? ctTc.getTcPr() : ctTc.addNewTcPr();
      CTVerticalJc va = tcpr.addNewVAlign();
      va.setVal(alignMap.get(vAlign));
    }
View Full Code Here

     */
    public XWPFVertAlign getVerticalAlignment() {
  XWPFVertAlign vAlign = null;
  CTTcPr tcpr = ctTc.getTcPr();
  if (ctTc != null) {
      CTVerticalJc va = tcpr.getVAlign();
      vAlign = stVertAlignTypeMap.get(va.getVal().intValue());
  }
  return vAlign;
    }
View Full Code Here

            // add content to each cell
          for (XWPFTableCell cell : cells) {
            // get a table cell properties element (tcPr)
            CTTcPr tcpr = cell.getCTTc().addNewTcPr();
            // set vertical alignment to "center"
            CTVerticalJc va = tcpr.addNewVAlign();
            va.setVal(STVerticalJc.CENTER);

            // create cell color element
            CTShd ctshd = tcpr.addNewShd();
                ctshd.setColor("auto");
                ctshd.setVal(STShd.CLEAR);
View Full Code Here

TOP

Related Classes of org.openxmlformats.schemas.wordprocessingml.x2006.main.CTVerticalJc

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.