Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2010-2013, Plutext Pty Ltd.
   *   
   *  This file is part of xlsx4j, a component 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.xlsx4j.sml;
 

Java class for CT_CommentPr complex type.

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

 <complexType name="CT_CommentPr">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <element name="anchor" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}CT_ObjectAnchor"/>
       </sequence>
       <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="defaultSize" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="print" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="disabled" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="autoFill" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="autoLine" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="altText" type="{http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes}ST_Xstring" />
       <attribute name="textHAlign" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TextHAlign" default="left" />
       <attribute name="textVAlign" type="{http://schemas.openxmlformats.org/spreadsheetml/2006/main}ST_TextVAlign" default="top" />
       <attribute name="lockText" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
       <attribute name="justLastX" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
       <attribute name="autoScale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_CommentPr", propOrder = {
     "anchor"
 })
 public class CTCommentPr implements Child
 {
 
     @XmlElement(required = true)
     protected CTObjectAnchor anchor;
     @XmlAttribute(name = "locked")
     protected Boolean locked;
     @XmlAttribute(name = "defaultSize")
     protected Boolean defaultSize;
     @XmlAttribute(name = "print")
     protected Boolean print;
     @XmlAttribute(name = "disabled")
     protected Boolean disabled;
     @XmlAttribute(name = "autoFill")
     protected Boolean autoFill;
     @XmlAttribute(name = "autoLine")
     protected Boolean autoLine;
     @XmlAttribute(name = "altText")
     protected String altText;
     @XmlAttribute(name = "textHAlign")
     protected STTextHAlign textHAlign;
     @XmlAttribute(name = "textVAlign")
     protected STTextVAlign textVAlign;
     @XmlAttribute(name = "lockText")
     protected Boolean lockText;
     @XmlAttribute(name = "justLastX")
     protected Boolean justLastX;
     @XmlAttribute(name = "autoScale")
     protected Boolean autoScale;
     @XmlTransient
     private Object parent;

    
Gets the value of the anchor property.

Returns:
possible object is
    public CTObjectAnchor getAnchor() {
        return ;
    }

    
Sets the value of the anchor property.

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

    
Gets the value of the locked property.

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

    
Sets the value of the locked property.

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

    
Gets the value of the defaultSize property.

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

    
Sets the value of the defaultSize property.

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

    
Gets the value of the print property.

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

    
Sets the value of the print property.

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

    
Gets the value of the disabled property.

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

    
Sets the value of the disabled property.

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

    
Gets the value of the autoFill property.

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

    
Sets the value of the autoFill property.

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

    
Gets the value of the autoLine property.

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

    
Sets the value of the autoLine property.

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

    
Gets the value of the altText property.

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

    
Sets the value of the altText property.

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

    
Gets the value of the textHAlign property.

Returns:
possible object is
    public STTextHAlign getTextHAlign() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the textHAlign property.

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

    
Gets the value of the textVAlign property.

Returns:
possible object is
    public STTextVAlign getTextVAlign() {
        if ( == null) {
            return .;
        } else {
            return ;
        }
    }

    
Sets the value of the textVAlign property.

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

    
Gets the value of the lockText property.

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

    
Sets the value of the lockText property.

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

    
Gets the value of the justLastX property.

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

    
Sets the value of the justLastX property.

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

    
Gets the value of the autoScale property.

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

    
Sets the value of the autoScale property.

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

    
Gets the parent object in the object tree representing the unmarshalled xml document.

Returns:
The parent object.
    public Object getParent() {
        return this.;
    }
    public void setParent(Object parent) {
        this. = parent;
    }

    
This method is invoked by the JAXB implementation on each instance when unmarshalling completes.

Parameters:
parent The parent object in the object tree.
unmarshaller The unmarshaller that generated the instance.
    public void afterUnmarshal(Unmarshaller unmarshallerObject parent) {
        setParent(parent);
    }
New to GrepCode? Check out our FAQ X