Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   *  Copyright 2007-2013, 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.wml; 
 
 

Java class for CT_FramePr complex type.

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

 <complexType name="CT_FramePr">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <attribute name="dropCap" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DropCap" />
       <attribute name="lines" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" />
       <attribute name="w" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
       <attribute name="h" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
       <attribute name="vSpace" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
       <attribute name="hSpace" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" />
       <attribute name="wrap" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_Wrap" />
       <attribute name="hAnchor" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_HAnchor" />
       <attribute name="vAnchor" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_VAnchor" />
       <attribute name="x" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_SignedTwipsMeasure" />
       <attribute name="xAlign" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_XAlign" />
       <attribute name="y" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_SignedTwipsMeasure" />
       <attribute name="yAlign" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_YAlign" />
       <attribute name="hRule" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_HeightRule" />
       <attribute name="anchorLock" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "CT_FramePr")
 public class CTFramePr implements Child
 {
 
     @XmlAttribute(name = "dropCap", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STDropCap dropCap;
     @XmlAttribute(name = "lines", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected BigInteger lines;
     @XmlAttribute(name = "w", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected BigInteger w;
     @XmlAttribute(name = "h", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected BigInteger h;
     @XmlAttribute(name = "vSpace", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected BigInteger vSpace;
     @XmlAttribute(name = "hSpace", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected BigInteger hSpace;
     @XmlAttribute(name = "wrap", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STWrap wrap;
     @XmlAttribute(name = "hAnchor", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STHAnchor hAnchor;
     @XmlAttribute(name = "vAnchor", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STVAnchor vAnchor;
     @XmlAttribute(name = "x", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected BigInteger x;
     @XmlAttribute(name = "xAlign", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STXAlign xAlign;
     @XmlAttribute(name = "y", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected BigInteger y;
     @XmlAttribute(name = "yAlign", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STYAlign yAlign;
     @XmlAttribute(name = "hRule", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
     protected STHeightRule hRule;
     @XmlAttribute(name = "anchorLock", namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
    protected Boolean anchorLock;
    private Object parent;

    
Gets the value of the dropCap property.

Returns:
possible object is
    public STDropCap getDropCap() {
        return ;
    }

    
Sets the value of the dropCap property.

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

    
Gets the value of the lines property.

Returns:
possible object is
    public BigInteger getLines() {
        return ;
    }

    
Sets the value of the lines property.

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

    
Gets the value of the w property.

Returns:
possible object is
    public BigInteger getW() {
        return ;
    }

    
Sets the value of the w property.

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

    
Gets the value of the h property.

Returns:
possible object is
    public BigInteger getH() {
        return ;
    }

    
Sets the value of the h property.

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

    
Gets the value of the vSpace property.

Returns:
possible object is
    public BigInteger getVSpace() {
        return ;
    }

    
Sets the value of the vSpace property.

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

    
Gets the value of the hSpace property.

Returns:
possible object is
    public BigInteger getHSpace() {
        return ;
    }

    
Sets the value of the hSpace property.

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

    
Gets the value of the wrap property.

Returns:
possible object is
    public STWrap getWrap() {
        return ;
    }

    
Sets the value of the wrap property.

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

    
Gets the value of the hAnchor property.

Returns:
possible object is
    public STHAnchor getHAnchor() {
        return ;
    }

    
Sets the value of the hAnchor property.

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

    
Gets the value of the vAnchor property.

Returns:
possible object is
    public STVAnchor getVAnchor() {
        return ;
    }

    
Sets the value of the vAnchor property.

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

    
Gets the value of the x property.

Returns:
possible object is
    public BigInteger getX() {
        return ;
    }

    
Sets the value of the x property.

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

    
Gets the value of the xAlign property.

Returns:
possible object is
    public STXAlign getXAlign() {
        return ;
    }

    
Sets the value of the xAlign property.

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

    
Gets the value of the y property.

Returns:
possible object is
    public BigInteger getY() {
        return ;
    }

    
Sets the value of the y property.

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

    
Gets the value of the yAlign property.

Returns:
possible object is
    public STYAlign getYAlign() {
        return ;
    }

    
Sets the value of the yAlign property.

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

    
Gets the value of the hRule property.

Returns:
possible object is
    public STHeightRule getHRule() {
        return ;
    }

    
Sets the value of the hRule property.

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

    
Gets the value of the anchorLock property.

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

    
Sets the value of the anchorLock property.

Parameters:
value allowed object is
    public void setAnchorLock(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