jxl
Class HeaderFooter

java.lang.Object
  extended byjxl.biff.HeaderFooter
      extended byjxl.HeaderFooter

public final class HeaderFooter
extends HeaderFooter

Class which represents an Excel header or footer.


Nested Class Summary
static class HeaderFooter.Contents
          The contents - a simple wrapper around a string buffer
 
Constructor Summary
HeaderFooter()
          Default constructor.
HeaderFooter(HeaderFooter hf)
          Copy 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 parts
 
Method Summary
 void clear()
          Clears the contents of the header/footer
protected  HeaderFooter.Contents createContents()
          Creates internal class of the appropriate type
protected  HeaderFooter.Contents createContents(HeaderFooter.Contents c)
          Creates internal class of the appropriate type
protected  HeaderFooter.Contents createContents(java.lang.String s)
          Creates internal class of the appropriate type
 HeaderFooter.Contents getCentre()
          Accessor for the contents which in the centre of the page
 HeaderFooter.Contents getLeft()
          Accessor for the contents which appear on the left hand side of the page
 HeaderFooter.Contents getRight()
          Accessor for the contents which appear on the right hand side of the page
 java.lang.String toString()
          Retrieves a Stringified version of this object
 
Methods inherited from class jxl.biff.HeaderFooter
getCentreText, getLeftText, getRightText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HeaderFooter

public HeaderFooter()
Default constructor.


HeaderFooter

public HeaderFooter(HeaderFooter hf)
Copy constructor


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

Method Detail

toString

public java.lang.String toString()
Retrieves a Stringified version of this object

Overrides:
toString in class 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

Overrides:
clear in class HeaderFooter

createContents

protected HeaderFooter.Contents createContents()
Creates internal class of the appropriate type

Specified by:
createContents in class HeaderFooter

createContents

protected HeaderFooter.Contents createContents(java.lang.String s)
Creates internal class of the appropriate type

Specified by:
createContents in class HeaderFooter

createContents

protected HeaderFooter.Contents createContents(HeaderFooter.Contents c)
Creates internal class of the appropriate type

Specified by:
createContents in class HeaderFooter