code: public void setHeaderFooter(RtfHeaderFooter headerFooter, int displayAt) {
          this.mode = MODE_MULTIPLE;
          headerFooter.setRtfDocument(this.document);
          headerFooter.setType(this.type);
          headerFooter.setDisplayAt(displayAt);
          switch(displayAt) {
              case RtfHeaderFooter.DISPLAY_ALL_PAGES:
                  headerAll = headerFooter;
              	break;
              case RtfHeaderFooter.DISPLAY_FIRST_PAGE:
                  headerFirst = headerFooter;
                  break;
              case RtfHeaderFooter.DISPLAY_LEFT_PAGES:
                  headerLeft = headerFooter;
                  break;
              case RtfHeaderFooter.DISPLAY_RIGHT_PAGES:
                  headerRight = headerFooter;
                  break;
          }
      }
docs: Set a RtfHeaderFooter to be displayed at a certain position
  
  @param headerFooter The RtfHeaderFooter to display
  @param displayAt The display location to use