Package org.docx4j.wml

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


    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

   
    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

    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

   
    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

    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

TOP

Related Classes of org.docx4j.wml.STBorder

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.