Examples of STBorder


Examples of org.docx4j.wml.STBorder

   
    if (border==null) return "";
   
    String val = "";
    if (border.getVal()!=null) {
      STBorder stBorder = border.getVal();
     
      log.debug("border: " + stBorder);
     
      if (stBorder.equals(STBorder.NIL)
          || stBorder == STBorder.NONE) {
        val = composeCss(CSS_NAME__STYLE, "none");
      } else if (stBorder==STBorder.SINGLE) {
        // can use == or .equals
        val = composeCss(CSS_NAME__STYLE, "solid");       
      } else if (stBorder == STBorder.DOUBLE
          || stBorder == STBorder.DOTTED
          || stBorder == STBorder.DASHED
          || stBorder == STBorder.OUTSET
          || stBorder == STBorder.INSET) {
        val = composeCss(CSS_NAME__STYLE, stBorder.value() );       
      } else {
        // fallback
        log.warn("Falling back to solid");
        val = composeCss(CSS_NAME__STYLE, "solid");
      }
View Full Code Here

Examples of org.docx4j.wml.STBorder

    CTBorder border = (CTBorder)getObject();
   
    if (border==null) return;
   
    if (border.getVal()!=null) {
      STBorder stBorder = border.getVal();
     
      log.debug("border: " + stBorder);
     
      if (stBorder.equals(STBorder.NIL)
          || stBorder == STBorder.NONE) {
        foElement.setAttribute(CSS_NAME__STYLE, "none");
      } else if (stBorder==STBorder.SINGLE) {
        // can use == or .equals
        foElement.setAttribute(CSS_NAME__STYLE, "solid");       
      } else if (stBorder == STBorder.DOUBLE
          || stBorder == STBorder.DOTTED
          || stBorder == STBorder.DASHED
          || stBorder == STBorder.OUTSET
          || stBorder == STBorder.INSET) {
        foElement.setAttribute(CSS_NAME__STYLE, stBorder.value() );       
      } else {
        // fallback
        log.warn("Falling back to solid");
        foElement.setAttribute(CSS_NAME__STYLE, "solid");
      }
View Full Code Here

Examples of org.docx4j.wml.STBorder

   
    if (border==null) return "";
   
    String val = "";
    if (border.getVal()!=null) {
      STBorder stBorder = border.getVal();
     
      log.debug("border: " + stBorder);
     
      if (stBorder.equals(STBorder.NIL)
          || stBorder == STBorder.NONE) {
        val = composeCss(CSS_NAME__STYLE, "none");
      } else if (stBorder==STBorder.SINGLE) {
        // can use == or .equals
        val = composeCss(CSS_NAME__STYLE, "solid");       
      } else if (stBorder == STBorder.DOUBLE
          || stBorder == STBorder.DOTTED
          || stBorder == STBorder.DASHED
          || stBorder == STBorder.OUTSET
          || stBorder == STBorder.INSET) {
        val = composeCss(CSS_NAME__STYLE, stBorder.value() );       
      } else {
        // fallback
        log.warn("Falling back to solid");
        val = composeCss(CSS_NAME__STYLE, "solid");
      }
View Full Code Here

Examples of org.docx4j.wml.STBorder

    CTBorder border = (CTBorder)getObject();
   
    if (border==null) return;
   
    if (border.getVal()!=null) {
      STBorder stBorder = border.getVal();
     
      log.debug("border: " + stBorder);
     
      if (stBorder.equals(STBorder.NIL)
          || stBorder == STBorder.NONE) {
        foElement.setAttribute(CSS_NAME__STYLE, "none");
      } else if (stBorder==STBorder.SINGLE) {
        // can use == or .equals
        foElement.setAttribute(CSS_NAME__STYLE, "solid");       
      } else if (stBorder == STBorder.DOUBLE
          || stBorder == STBorder.DOTTED
          || stBorder == STBorder.DASHED
          || stBorder == STBorder.OUTSET
          || stBorder == STBorder.INSET) {
        foElement.setAttribute(CSS_NAME__STYLE, stBorder.value() );       
      } else {
        // fallback
        log.warn("Falling back to solid");
        foElement.setAttribute(CSS_NAME__STYLE, "solid");
      }
View Full Code Here

Examples of org.docx4j.wml.STBorder

   
    if (border==null) return "";
   
    String val = "";
    if (border.getVal()!=null) {
      STBorder stBorder = border.getVal();
     
      log.debug("border: " + stBorder);
     
      if (stBorder.equals(STBorder.NIL)
          || stBorder == STBorder.NONE) {
        val = "none";
      } else if (stBorder==STBorder.SINGLE) {
        // can use == or .equals
        val = "solid";       
      } else if (stBorder == STBorder.DOUBLE
          || stBorder == STBorder.DOTTED
          || stBorder == STBorder.DASHED
          || stBorder == STBorder.OUTSET
          || stBorder == STBorder.INSET) {
        val = stBorder.value();       
      } else {
        // fallback
        log.warn("Falling back to solid");
        val = "solid";
      }
View Full Code Here

Examples of org.docx4j.wml.STBorder

    CTBorder border = (CTBorder)getObject();
   
    if (border==null) return;
   
    if (border.getVal()!=null) {
      STBorder stBorder = border.getVal();
     
      log.debug("border: " + stBorder);
     
      if (stBorder.equals(STBorder.NIL)
          || stBorder == STBorder.NONE) {
        val = "none";
      } else if (stBorder==STBorder.SINGLE) {
        // can use == or .equals
        val = "solid";       
      } else if (stBorder == STBorder.DOUBLE
          || stBorder == STBorder.DOTTED
          || stBorder == STBorder.DASHED
          || stBorder == STBorder.OUTSET
          || stBorder == STBorder.INSET) {
        val = stBorder.value();       
      } else {
        // fallback
        log.warn("Falling back to solid");
        val = "solid";
      }
View Full Code Here

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

      // 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 XWPFTable methods.
      CTTblBorders cttb = CTTblBorders.Factory.newInstance();
      assertNotNull(cttb);
      STBorder stb = STBorder.Factory.newInstance();
      assertNotNull(stb);
      // create a table
        XWPFDocument doc = new XWPFDocument();
      CTTbl ctTable = CTTbl.Factory.newInstance();
        XWPFTable table = new XWPFTable(ctTable, doc);
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.