Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi.xwpf.usermodel
Class XWPFHeader

    java.lang.Object
      org.apache.poi.POIXMLDocumentPart
          org.apache.poi.xwpf.usermodel.XWPFHeaderFooter
              org.apache.poi.xwpf.usermodel.XWPFHeader

All Implemented Interfaces:
  IBody

    public class XWPFHeader

extends XWPFHeaderFooter

Sketch of XWPF header class

Field Summary

Fields inherited from class org.apache.poi.POIXMLDocumentPart
`DEFAULT_XML_OPTIONS`

Constructor Summary
`XWPFHeader()`
`XWPFHeader(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr hdrFtr)`
`XWPFHeader(PackagePart part, PackageRelationship rel)`

Method Summary
`IBody` | `getPart()` returns the Part, to which the body belongs, which you need for adding relationship to other parts
`BodyType` | `getPartType()` get the PartType of the body

Methods inherited from class org.apache.poi.xwpf.usermodel.XWPFHeaderFooter
`_getHdrFtr, addPicture, addPicture, addPictureReference, addPictureReference, getAllPackagePictures, getAllPictures, getBodyElements, getListParagraph, getNextPicNameNumber, getOwner, getParagraph, getParagraphArray, getParagraphs, getPictureDataByID, getTable, getTableArray, getTableCell, getTables, getText, insertNewParagraph, insertNewTbl, insertTable, readHdrFtr, setHeaderFooter`

Methods inherited from class org.apache.poi.POIXMLDocumentPart
`createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelations, removeRelation, toString`

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### XWPFHeader

    public XWPFHeader()

### XWPFHeader

    public XWPFHeader(PackagePart part,
                      PackageRelationship rel)
               throws java.io.IOException

Throws:
  `java.io.IOException`

### XWPFHeader

    public XWPFHeader(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTHdrFtr hdrFtr)
               throws java.io.IOException

Throws:
  `java.io.IOException`

Method Detail

### getPart

    public IBody getPart()

  returns the Part, to which the body belongs, which you need for adding relationship to other parts

  Returns:
    the Part, to which the body belongs
  See Also:
    `IBody.getPart()`

### getPartType

    public BodyType getPartType()

  get the PartType of the body

  Returns:
    the PartType of the body
  See Also:
    `IBody.getPartType()`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD