org.apache.poi.hssf.usermodel
Class HSSFFooter

java.lang.Object
  extended by org.apache.poi.hssf.usermodel.HeaderFooter
      extended by org.apache.poi.hssf.usermodel.HSSFFooter

public class HSSFFooter
extends HeaderFooter

Class to read and manipulate the footer.

The footer works by having a left, center, and right side. The total cannot be more that 255 bytes long. One uses this class by getting the HSSFFooter from HSSFSheet and then getting or setting the left, center, and right side. For special things (such as page numbers and date), one can use a the methods that return the characters used to represent these. One can also change the fonts by using similar methods.

Author:
Shawn Laubach (slaubach at apache dot org)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.poi.hssf.usermodel.HeaderFooter
HeaderFooter.Field, HeaderFooter.PairField
 
Field Summary
 
Fields inherited from class org.apache.poi.hssf.usermodel.HeaderFooter
BOLD_FIELD, center, DATE_FIELD, DOUBLE_UNDERLINE_FIELD, FILE_FIELD, FULL_FILE_FIELD, ITALIC_FIELD, left, NUM_PAGES_FIELD, PAGE_FIELD, PICTURE_FIELD, right, SHEET_NAME_FIELD, STRIKETHROUGH_FIELD, SUBSCRIPT_FIELD, SUPERSCRIPT_FIELD, TIME_FIELD, UNDERLINE_FIELD
 
Constructor Summary
protected HSSFFooter(FooterRecord footerRecord)
          Constructor.
 
Method Summary
protected  java.lang.String getRawFooter()
           
 void setCenter(java.lang.String newCenter)
          Sets the center string.
 void setLeft(java.lang.String newLeft)
          Sets the left string.
 void setRight(java.lang.String newRight)
          Sets the right string.
 
Methods inherited from class org.apache.poi.hssf.usermodel.HeaderFooter
areFieldsStripped, date, endBold, endDoubleUnderline, endUnderline, file, font, fontSize, getCenter, getLeft, getRight, numPages, page, setAreFieldsStripped, startBold, startDoubleUnderline, startUnderline, stripFields, tab, time
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HSSFFooter

protected HSSFFooter(FooterRecord footerRecord)
Constructor. Creates a new footer interface from a footer record

Parameters:
footerRecord - Footer record to create the footer with
Method Detail

setLeft

public void setLeft(java.lang.String newLeft)
Sets the left string.

Specified by:
setLeft in class HeaderFooter
Parameters:
newLeft - The string to set as the left side.

setCenter

public void setCenter(java.lang.String newCenter)
Sets the center string.

Specified by:
setCenter in class HeaderFooter
Parameters:
newCenter - The string to set as the center.

setRight

public void setRight(java.lang.String newRight)
Sets the right string.

Specified by:
setRight in class HeaderFooter
Parameters:
newRight - The string to set as the right side.

getRawFooter

protected java.lang.String getRawFooter()


Copyright 2008 The Apache Software Foundation or its licensors, as applicable.