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()
HeaderFooter
getLeft
in interface HeaderFooter
public final void setLeft(String newLeft)
HeaderFooter
setLeft
in interface HeaderFooter
newLeft
- The string to set as the left side.public final String getCenter()
HeaderFooter
getCenter
in interface HeaderFooter
public final void setCenter(String newCenter)
HeaderFooter
setCenter
in interface HeaderFooter
newCenter
- The string to set as the center.public final String getRight()
HeaderFooter
getRight
in interface HeaderFooter
public final void setRight(String newRight)
HeaderFooter
setRight
in interface HeaderFooter
newRight
- 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 null
public 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.