Package jxl
Class HeaderFooter
java.lang.Object
jxl.biff.HeaderFooter
jxl.HeaderFooter
public final class HeaderFooter
extends jxl.biff.HeaderFooter
Class which represents an Excel header or footer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
The contents - a simple wrapper around a string buffer -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.Constructor used when reading workbooks to separate the left, right a central part of the strings into their constituent partsCopy constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Clears the contents of the header/footerAccessor for the contents which in the centre of the pagegetLeft()
Accessor for the contents which appear on the left hand side of the pagegetRight()
Accessor for the contents which appear on the right hand side of the pagetoString()
Retrieves aString
ified version of this object
-
Constructor Details
-
HeaderFooter
public HeaderFooter()Default constructor. -
HeaderFooter
Constructor used when reading workbooks to separate the left, right a central part of the strings into their constituent parts- Parameters:
s
- the header string
-
-
Method Details
-
toString
Retrieves aString
ified version of this object- Overrides:
toString
in classjxl.biff.HeaderFooter
- Returns:
- the header string
-
getRight
Accessor for the contents which appear on the right hand side of the page- Returns:
- the right aligned contents
-
getCentre
Accessor for the contents which in the centre of the page- Returns:
- the centrally aligned contents
-
getLeft
Accessor for the contents which appear on the left hand side of the page- Returns:
- the left aligned contents
-
clear
public void clear()Clears the contents of the header/footer
-