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 Classes Modifier and Type Class Description static class
HeaderFooter.Contents
The contents - a simple wrapper around a string buffer
-
Constructor Summary
Constructors Constructor Description HeaderFooter()
Default constructor.HeaderFooter(java.lang.String s)
Constructor used when reading workbooks to separate the left, right a central part of the strings into their constituent partsHeaderFooter(HeaderFooter hf)
Copy constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Clears the contents of the header/footerHeaderFooter.Contents
getCentre()
Accessor for the contents which in the centre of the pageHeaderFooter.Contents
getLeft()
Accessor for the contents which appear on the left hand side of the pageHeaderFooter.Contents
getRight()
Accessor for the contents which appear on the right hand side of the pagejava.lang.String
toString()
Retrieves aString
ified version of this object
-
-
-
Constructor Detail
-
HeaderFooter
public HeaderFooter()
Default constructor.
-
HeaderFooter
public HeaderFooter(HeaderFooter hf)
Copy constructor- Parameters:
hf
- the item to copy
-
HeaderFooter
public HeaderFooter(java.lang.String s)
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 Detail
-
toString
public java.lang.String toString()
Retrieves aString
ified version of this object- Overrides:
toString
in classjxl.biff.HeaderFooter
- Returns:
- the header string
-
getRight
public HeaderFooter.Contents getRight()
Accessor for the contents which appear on the right hand side of the page- Returns:
- the right aligned contents
-
getCentre
public HeaderFooter.Contents getCentre()
Accessor for the contents which in the centre of the page- Returns:
- the centrally aligned contents
-
getLeft
public HeaderFooter.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
-
-