public abstract class HeaderFooter extends java.lang.Object implements HeaderFooter
HSSFHeader
and HSSFFooter
.Modifier | Constructor and Description |
---|---|
protected |
HeaderFooter() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
date() |
static java.lang.String |
endBold() |
static java.lang.String |
endDoubleUnderline() |
static java.lang.String |
endUnderline() |
static java.lang.String |
file() |
static java.lang.String |
font(java.lang.String font,
java.lang.String style) |
static java.lang.String |
fontSize(short size) |
java.lang.String |
getCenter()
Get the center of the header or footer.
|
java.lang.String |
getLeft()
Get the left side of the header or footer.
|
protected abstract java.lang.String |
getRawText() |
java.lang.String |
getRight()
Get the right side of the header or footer.
|
static java.lang.String |
numPages() |
static java.lang.String |
page() |
void |
setCenter(java.lang.String newCenter)
Sets the center string.
|
protected abstract void |
setHeaderFooterText(java.lang.String text) |
void |
setLeft(java.lang.String newLeft)
Sets the left string.
|
void |
setRight(java.lang.String newRight)
Sets the right string or footer.
|
static java.lang.String |
startBold() |
static java.lang.String |
startDoubleUnderline() |
static java.lang.String |
startUnderline() |
static java.lang.String |
stripFields(java.lang.String pText)
Removes any fields (eg macros, page markers etc) from the string.
|
static java.lang.String |
tab() |
static java.lang.String |
time() |
protected abstract java.lang.String getRawText()
null
.public final java.lang.String getLeft()
HeaderFooter
getLeft
in interface HeaderFooter
public final void setLeft(java.lang.String newLeft)
HeaderFooter
setLeft
in interface HeaderFooter
newLeft
- The string to set as the left side.public final java.lang.String getCenter()
HeaderFooter
getCenter
in interface HeaderFooter
public final void setCenter(java.lang.String newCenter)
HeaderFooter
setCenter
in interface HeaderFooter
newCenter
- The string to set as the center.public final java.lang.String getRight()
HeaderFooter
getRight
in interface HeaderFooter
public final void setRight(java.lang.String newRight)
HeaderFooter
setRight
in interface HeaderFooter
newRight
- The string to set as the right side.protected abstract void setHeaderFooterText(java.lang.String text)
text
- the new header footer text (contains mark-up tags). Possibly
empty string never null
public static java.lang.String fontSize(short size)
size
- the new font sizepublic static java.lang.String font(java.lang.String font, java.lang.String style)
font
- the new fontstyle
- the fonts style, one of regular, italic, bold, italic bold or
bold italicpublic static java.lang.String page()
public static java.lang.String numPages()
public static java.lang.String date()
public static java.lang.String time()
public static java.lang.String file()
public static java.lang.String tab()
public static java.lang.String startBold()
public static java.lang.String endBold()
public static java.lang.String startUnderline()
public static java.lang.String endUnderline()
public static java.lang.String startDoubleUnderline()
public static java.lang.String endDoubleUnderline()
public static java.lang.String stripFields(java.lang.String pText)
Copyright 2022 The Apache Software Foundation or its licensors, as applicable.