code: public void setType(int type) {
          this.type = type;
          if(headerAll != null) {
              headerAll.setType(this.type);
          }
          if(headerFirst != null) {
              headerFirst.setType(this.type);
          }
          if(headerLeft != null) {
              headerLeft.setType(this.type);
          }
          if(headerRight != null) {
              headerRight.setType(this.type);
          }
      }
docs: Set the type of this RtfHeaderFooterGroup. RtfHeaderFooter.TYPE_HEADER
  or RtfHeaderFooter.TYPE_FOOTER. Also sets the type for all RtfHeaderFooters
  of this RtfHeaderFooterGroup.
  
  @param type The type to use