Examples of addBreak()


Examples of org.apache.poi.xwpf.usermodel.XWPFRun.addBreak()

        String imgFile = "aspose.jpg";
        XWPFRun r = p.createRun();
       
        int format = XWPFDocument.PICTURE_TYPE_JPEG;
        r.setText(imgFile);
        r.addBreak();
        r.addPicture(new FileInputStream(imgFile), format, imgFile, Units.toEMU(200), Units.toEMU(200)); // 200x200 pixels
        r.addBreak(BreakType.PAGE);

      FileOutputStream out = new FileOutputStream("data/Apache_ImagesInDoc.docx");
      doc.write(out);
View Full Code Here

Examples of org.apache.poi.xwpf.usermodel.XWPFRun.addBreak()

       
        int format = XWPFDocument.PICTURE_TYPE_JPEG;
        r.setText(imgFile);
        r.addBreak();
        r.addPicture(new FileInputStream(imgFile), format, imgFile, Units.toEMU(200), Units.toEMU(200)); // 200x200 pixels
        r.addBreak(BreakType.PAGE);

      FileOutputStream out = new FileOutputStream("data/Apache_ImagesInDoc.docx");
      doc.write(out);
      out.close();
     
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addBreak()

          jm.addLine(pHandlerVar, " = getData().getAtomicHandler();");
        }
        jm.addLine(pHandlerVar, ".startDocument();");
        jm.addLine(pHandlerVar, ".startElement(pNamespaceURI, pLocalName, pQName, pAttr);");

        jm.addBreak();
        jm.addDefault();
        jm.addLine("validationEvent(", ValidationEvent.class, ".WARNING, ",
                   JavaSource.getQuoted("The element "), " + ", pQName, " + ",
                   JavaSource.getQuoted(" was unexpected at this place."),
                   ", ", ValidationEvents.class,
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addBreak()

        jm.addLine("validationEvent(", ValidationEvent.class, ".WARNING, ",
                   JavaSource.getQuoted("The element "), " + ", pQName, " + ",
                   JavaSource.getQuoted(" was unexpected at this place."),
                   ", ", ValidationEvents.class,
                   ".EVENT_UNEXPECTED_CHILD_STATE);");
        jm.addBreak();
        jm.addEndSwitch();
      }

      jm.addEndIf();
    }
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addBreak()

      }

      jm.addEndIf();
    }
    jm.addEndIf();
    jm.addBreak();

    jm.addDefault();
    jm.addIf(pHandlerVar, " == null");
    jm.addLine("super.startElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ", ", pAttr, ");");
    jm.addElse();
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addBreak()

    jm.addLine(pHandlerVar, ".endElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ");");
    jm.addEndIf();

    jm.addSwitch("--", pLevelVar);
    jm.addCase("0");
    jm.addBreak();
    jm.addCase("1");
    JavaQName elementInterface = pController.getClassContext().getXMLInterfaceName();
    LocalJavaField element = jm.newJavaField(elementInterface);
    element.addLine("(", elementInterface, ") getResult()");
    jm.addSwitch(pStateVar);
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addBreak()

          v = castedValue;
          type = null;
        }
      }
      child.getPropertySG().addValue(jm, element, v, type);
      jm.addBreak();
    }
    jm.addDefault();
    jm.addThrowNew(IllegalStateException.class, JavaSource.getQuoted("Illegal state: "), " + ",  pStateVar);
    jm.addEndSwitch();
    jm.addEndSwitch();
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addBreak()

      jm.addLine("addAttribute(", pAttr, ".getURI(", iVar, "), ", pAttr, ".getLocalName(", iVar,
                 "), ", pAttr, ".getValue(", iVar, "));");     
    }
    jm.addEndFor();
    jm.addEndIf();
    jm.addBreak();

    if (pController.hasSimpleContent()) {
      jm.addDefault();
      jm.addLine("super.startElement(pNamespaceURI, pLocalName, pQName, pAttr);");
      jm.addBreak();
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addBreak()

    jm.addBreak();

    if (pController.hasSimpleContent()) {
      jm.addDefault();
      jm.addLine("super.startElement(pNamespaceURI, pLocalName, pQName, pAttr);");
      jm.addBreak();
    } else {
      PlaceHolder placeHolder = jm.newPlaceHolder("GroupSG", true);
      placeHolder.setProperty("pNamespaceURI", pNamespaceURI);
      placeHolder.setProperty("pLocalName", pLocalName);
      placeHolder.setProperty("pQName", pQName);
View Full Code Here

Examples of org.apache.ws.jaxme.js.JavaMethod.addBreak()

      }
      jm.addLine("super.startElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ", ", pAttr, ");");
      if (!firstNamespace) {
          jm.addEndIf();
      }
      jm.addBreak();
     
      jm.addDefault();
      jm.addIf(pHandlerVar, " == null");
      jm.addLine("super.startElement(", pNamespaceURI, ", ", pLocalName, ", ", pQName, ", ", pAttr, ");");
      jm.addElse();
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.