source: trunk/docx4j/src/main/java/org/docx4j/wml/TblPr.java @ 943

Revision 943, 3.0 KB checked in by jharrop, 3 years ago (diff)

Added DocumentModel?. DocumentModel? is a list of SectionWrappers?; a SectionWrapper? has a HeaderFooterPolicy?, PageDimensions? and sectPr.
HeaderFooterPolicy? moved to new package, as there will be 1 per SectionWrapper?.

TblFactory? is a way to create simple tables; now used in the Create..Document sample.

Debug of JAXBElement.
NamespacePrefixMapper?: convenient static method.

WordXmlPicture?: add @id,containing relId.

MDP styles in use:recurse into tables

Line 
1/*
2 *  Copyright 2007-2008, Plutext Pty Ltd.
3 *   
4 *  This file is part of docx4j.
5
6    docx4j is licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8
9    You may obtain a copy of the License at
10
11        http://www.apache.org/licenses/LICENSE-2.0
12
13    Unless required by applicable law or agreed to in writing, software
14    distributed under the License is distributed on an "AS IS" BASIS,
15    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16    See the License for the specific language governing permissions and
17    limitations under the License.
18
19 */
20
21
22package org.docx4j.wml;
23
24import javax.xml.bind.Unmarshaller;
25import javax.xml.bind.annotation.XmlAccessType;
26import javax.xml.bind.annotation.XmlAccessorType;
27import javax.xml.bind.annotation.XmlRootElement;
28import javax.xml.bind.annotation.XmlTransient;
29import javax.xml.bind.annotation.XmlType;
30import org.jvnet.jaxb2_commons.ppp.Child;
31
32
33/**
34 * <p>Java class for CT_TblPr complex type.
35 *
36 * <p>The following schema fragment specifies the expected content contained within this class.
37 *
38 * <pre>
39 * &lt;complexType name="CT_TblPr">
40 *   &lt;complexContent>
41 *     &lt;extension base="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblPrBase">
42 *       &lt;sequence>
43 *         &lt;element name="tblPrChange" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TblPrChange" minOccurs="0"/>
44 *       &lt;/sequence>
45 *     &lt;/extension>
46 *   &lt;/complexContent>
47 * &lt;/complexType>
48 * </pre>
49 *
50 *
51 */
52@XmlAccessorType(XmlAccessType.FIELD)
53@XmlType(name = "CT_TblPr", propOrder = {
54    "tblPrChange"
55})
56@XmlRootElement(name = "tblPr")
57public class TblPr
58    extends CTTblPrBase
59    implements Child
60{
61
62    protected CTTblPrChange tblPrChange;
63    @XmlTransient
64    private Object parent;
65
66    /**
67     * Gets the value of the tblPrChange property.
68     *
69     * @return
70     *     possible object is
71     *     {@link CTTblPrChange }
72     *     
73     */
74    public CTTblPrChange getTblPrChange() {
75        return tblPrChange;
76    }
77
78    /**
79     * Sets the value of the tblPrChange property.
80     *
81     * @param value
82     *     allowed object is
83     *     {@link CTTblPrChange }
84     *     
85     */
86    public void setTblPrChange(CTTblPrChange value) {
87        this.tblPrChange = value;
88    }
89
90    /**
91     * Gets the parent object in the object tree representing the unmarshalled xml document.
92     *
93     * @return
94     *     The parent object.
95     */
96    public Object getParent() {
97        return this.parent;
98    }
99
100    public void setParent(Object parent) {
101        this.parent = parent;
102    }
103
104    /**
105     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
106     *
107     * @param parent
108     *     The parent object in the object tree.
109     * @param unmarshaller
110     *     The unmarshaller that generated the instance.
111     */
112    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
113        setParent(parent);
114    }
115
116}
Note: See TracBrowser for help on using the repository browser.