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