HSSFHeader and HSSFFooter.
| Modifier and Type | Class and Description |
|---|---|
| private static enum |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public final String | Returns: the center of the header or footer.Implements org. Get the center of the header or footer. |
| public final String | Returns: the left side of the header or footer.Implements org. Get the left side of the header or footer. |
| protected abstract String | Returns: the internal text representation (combining center, left and right parts). Possibly empty string if no header or footer is set. Nevernull.
|
| public final String | Returns: The right side of the header or footer.Implements org. Get the right side of the header or footer. |
| public static String | |
| public static String | |
| public final void | setCenter(String
The string to set as the center. newCenter)Implements org. Sets the center string. |
| protected abstract void | setHeaderFooterText(String
the new header footer text (contains mark-up tags). Possibly
empty string never text)null
|
| public final void | setLeft(String
The string to set as the left side. newLeft)Implements org. Sets the left string. |
| public final void | setRight(String
The string to set as the right side. newRight)Implements org. Sets the right string or footer. |
| private String[] | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| public static String | |
| private void | updateHeaderFooterText(String[] parts)
Creates the complete footer string based on the left, center, and middle strings. |
| private void |
| HeaderFooter | back to summary |
|---|---|
| protected HeaderFooter() | |
| date | back to summary |
|---|---|
public static String date()
| |
| endBold | back to summary |
|---|---|
public static String endBold()
| |
| endDoubleUnderline | back to summary |
|---|---|
public static String endDoubleUnderline()
| |
| endUnderline | back to summary |
|---|---|
public static String endUnderline()
| |
| file | back to summary |
|---|---|
public static String file()
| |
| font | back to summary |
|---|---|
| public static String font(String font, String style) | |
| fontSize | back to summary |
|---|---|
public static String fontSize(short size)
| |
| getCenter | back to summary |
|---|---|
| public final String getCenter() Implements org. Doc from org. Get the center of the header or footer.
| |
| getLeft | back to summary |
|---|---|
| public final String getLeft() Implements org. Doc from org. Get the left side of the header or footer.
| |
| getRawText | back to summary |
|---|---|
protected abstract String getRawText()
| |
| getRight | back to summary |
|---|---|
| public final String getRight() Implements org. Doc from org. Get the right side of the header or footer.
| |
| numPages | back to summary |
|---|---|
public static String numPages()
| |
| page | back to summary |
|---|---|
public static String page()
| |
| setCenter | back to summary |
|---|---|
| public final void setCenter(String newCenter) Implements org. Doc from org. Sets the center string.
| |
| setHeaderFooterText | back to summary |
|---|---|
protected abstract void setHeaderFooterText(String text)
| |
| setLeft | back to summary |
|---|---|
| public final void setLeft(String newLeft) Implements org. Doc from org. Sets the left string.
| |
| setRight | back to summary |
|---|---|
| public final void setRight(String newRight) Implements org. Doc from org. Sets the right string or footer.
| |
| splitParts | back to summary |
|---|---|
| private String[] splitParts() | |
| startBold | back to summary |
|---|---|
public static String startBold()
| |
| startDoubleUnderline | back to summary |
|---|---|
public static String startDoubleUnderline()
| |
| startUnderline | back to summary |
|---|---|
public static String startUnderline()
| |
| stripFields | back to summary |
|---|---|
| public static String stripFields(String pText) Removes any fields (eg macros, page markers etc) from the string. Normally used to make some text suitable for showing to humans, and the resultant text should not normally be saved back into the document! | |
| tab | back to summary |
|---|---|
public static String tab()
| |
| time | back to summary |
|---|---|
public static String time()
| |
| updateHeaderFooterText | back to summary |
|---|---|
| private void updateHeaderFooterText(String[] parts) Creates the complete footer string based on the left, center, and middle strings. | |
| updatePart | back to summary |
|---|---|
| private void updatePart(int partIndex, String newValue) | |