public final class HSSFHeader extends HeaderFooter implements Header
The header works by having a left, center, and right side. The total cannot be more that 255 bytes long. One uses this class by getting the HSSFHeader from HSSFSheet and then getting or setting the left, center, and right side. For special things (such as page numbers and date), one can use a the methods that return the characters used to represent these. One can also change the fonts by using similar methods.
Modifier | Constructor and Description |
---|---|
protected |
HSSFHeader(PageSettingsBlock psb) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getRawText() |
protected void |
setHeaderFooterText(java.lang.String text) |
date, endBold, endDoubleUnderline, endUnderline, file, font, fontSize, getCenter, getLeft, getRight, numPages, page, setCenter, setLeft, setRight, startBold, startDoubleUnderline, startUnderline, stripFields, tab, time
protected HSSFHeader(PageSettingsBlock psb)
protected java.lang.String getRawText()
getRawText
in class HeaderFooter
null
.protected void setHeaderFooterText(java.lang.String text)
setHeaderFooterText
in class HeaderFooter
text
- the new header footer text (contains mark-up tags). Possibly
empty string never null
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.