Slight tidy up of header/footer interface

git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@682517 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2008-08-04 21:34:16 +00:00
parent 946dea40a7
commit c62c0b51a9
3 changed files with 43 additions and 14 deletions

View File

@ -21,12 +21,45 @@ package org.apache.poi.ss.usermodel;
* {@link Footer}.
*/
public interface HeaderFooter {
public String getLeft();
public void setLeft( String newLeft );
/**
* Get the left side of the header or footer.
*
* @return The string representing the left side.
*/
String getLeft();
public String getCenter();
public void setCenter( String newCenter );
/**
* Sets the left string.
*
* @param newLeft The string to set as the left side.
*/
void setLeft(String newLeft);
public String getRight();
public void setRight( String newRight );
/**
* Get the center of the header or footer.
*
* @return The string representing the center.
*/
String getCenter();
/**
* Sets the center string.
*
* @param newCenter The string to set as the center.
*/
void setCenter(String newCenter);
/**
* Get the right side of the header or footer.
*
* @return The string representing the right side.
*/
String getRight();
/**
* Sets the right string or footer.
*
* @param newRight The string to set as the right side.
*/
void setRight(String newRight);
}

View File

@ -17,8 +17,7 @@
package org.apache.poi.ss.usermodel;
public interface Footer {
public interface Footer extends HeaderFooter {
/**
* Get the left side of the footer.
* @return The string representing the left side.
@ -54,5 +53,4 @@ public interface Footer {
* @param newRight The string to set as the right side.
*/
void setRight(String newRight);
}
}

View File

@ -17,8 +17,7 @@
package org.apache.poi.ss.usermodel;
public interface Header {
public interface Header extends HeaderFooter {
/**
* Get the left side of the header.
*
@ -60,5 +59,4 @@ public interface Header {
* @param newRight The string to set as the right side.
*/
void setRight(String newRight);
}
}