Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2007-2008, Plutext Pty Ltd.
   *   
   *  This file is part of docx4j.
  
      docx4j is licensed under the Apache License, Version 2.0 (the "License"); 
      you may not use this file except in compliance with the License. 
  
      You may obtain a copy of the License at 
 
         http://www.apache.org/licenses/LICENSE-2.0 
 
     Unless required by applicable law or agreed to in writing, software 
     distributed under the License is distributed on an "AS IS" BASIS, 
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
     See the License for the specific language governing permissions and 
     limitations under the License.
 
  */
 
 
 package org.docx4j.dml.chart;
 

Java class for CT_HeaderFooter complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="CT_HeaderFooter">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="oddHeader" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}ST_Xstring" minOccurs="0"/>
         <element name="oddFooter" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}ST_Xstring" minOccurs="0"/>
         <element name="evenHeader" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}ST_Xstring" minOccurs="0"/>
         <element name="evenFooter" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}ST_Xstring" minOccurs="0"/>
         <element name="firstHeader" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}ST_Xstring" minOccurs="0"/>
         <element name="firstFooter" type="{http://schemas.openxmlformats.org/drawingml/2006/chart}ST_Xstring" minOccurs="0"/>
       </sequence>
       <attribute name="alignWithMargins" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="differentOddEven" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="differentFirst" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_HeaderFooter", propOrder = {
     "oddHeader",
     "oddFooter",
     "evenHeader",
     "evenFooter",
     "firstHeader",
     "firstFooter"
 })
 public class CTHeaderFooter {
 
     protected String oddHeader;
     protected String oddFooter;
     protected String evenHeader;
     protected String evenFooter;
     protected String firstHeader;
     protected String firstFooter;
     @XmlAttribute
     protected Boolean alignWithMargins;
     @XmlAttribute
     protected Boolean differentOddEven;
     @XmlAttribute
     protected Boolean differentFirst;

    
Gets the value of the oddHeader property.

Returns:
possible object is
 
     public String getOddHeader() {
         return ;
     }

    
Sets the value of the oddHeader property.

Parameters:
value allowed object is
    public void setOddHeader(String value) {
        this. = value;
    }

    
Gets the value of the oddFooter property.

Returns:
possible object is
    public String getOddFooter() {
        return ;
    }

    
Sets the value of the oddFooter property.

Parameters:
value allowed object is
    public void setOddFooter(String value) {
        this. = value;
    }

    
Gets the value of the evenHeader property.

Returns:
possible object is
    public String getEvenHeader() {
        return ;
    }

    
Sets the value of the evenHeader property.

Parameters:
value allowed object is
    public void setEvenHeader(String value) {
        this. = value;
    }

    
Gets the value of the evenFooter property.

Returns:
possible object is
    public String getEvenFooter() {
        return ;
    }

    
Sets the value of the evenFooter property.

Parameters:
value allowed object is
    public void setEvenFooter(String value) {
        this. = value;
    }

    
Gets the value of the firstHeader property.

Returns:
possible object is
    public String getFirstHeader() {
        return ;
    }

    
Sets the value of the firstHeader property.

Parameters:
value allowed object is
    public void setFirstHeader(String value) {
        this. = value;
    }

    
Gets the value of the firstFooter property.

Returns:
possible object is
    public String getFirstFooter() {
        return ;
    }

    
Sets the value of the firstFooter property.

Parameters:
value allowed object is
    public void setFirstFooter(String value) {
        this. = value;
    }

    
Gets the value of the alignWithMargins property.

Returns:
possible object is
    public boolean isAlignWithMargins() {
        if ( == null) {
            return true;
        } else {
            return ;
        }
    }

    
Sets the value of the alignWithMargins property.

Parameters:
value allowed object is
    public void setAlignWithMargins(Boolean value) {
        this. = value;
    }

    
Gets the value of the differentOddEven property.

Returns:
possible object is
    public boolean isDifferentOddEven() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the differentOddEven property.

Parameters:
value allowed object is
    public void setDifferentOddEven(Boolean value) {
        this. = value;
    }

    
Gets the value of the differentFirst property.

Returns:
possible object is
    public boolean isDifferentFirst() {
        if ( == null) {
            return false;
        } else {
            return ;
        }
    }

    
Sets the value of the differentFirst property.

Parameters:
value allowed object is
    public void setDifferentFirst(Boolean value) {
        this. = value;
    }
New to GrepCode? Check out our FAQ X