|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.usermodel.HeaderFooter
public abstract class HeaderFooter
Common class for HSSFHeader
and HSSFFooter
.
Constructor Summary | |
---|---|
protected |
HeaderFooter()
|
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected HeaderFooter()
Method Detail |
---|
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 size
public 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 italic
public 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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |