]> source.dussan.org Git - poi.git/commitdiff
Slight tidy up of header/footer interface
authorNick Burch <nick@apache.org>
Mon, 4 Aug 2008 21:34:16 +0000 (21:34 +0000)
committerNick Burch <nick@apache.org>
Mon, 4 Aug 2008 21:34:16 +0000 (21:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/branches/ooxml@682517 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/poi/ss/usermodel/HeaderFooter.java
src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Footer.java
src/ooxml/interfaces-jdk15/org/apache/poi/ss/usermodel/Header.java

index c58f929e432bd44a3b4b2f5433962e1c2d6b5f0b..d862125cab83433f44e4467f03d65ef52279c35e 100644 (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);
 }
index 2566d43bf7f7b836c0a69629641b156d0d47689f..de592a1462abdc47913d03ac085170e0dae428f3 100644 (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);
-
-}
\ No newline at end of file
+}
index ef9e355eafea297b221bb166687aba224246791e..9e864b5739e201a93f11e154e4cf5b90197998ce 100644 (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);
-
-}
\ No newline at end of file
+}