| 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 | |
|---|
| 22 | package org.docx4j.vml; |
|---|
| 23 | |
|---|
| 24 | import javax.xml.bind.Unmarshaller; |
|---|
| 25 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 26 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 27 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 28 | import javax.xml.bind.annotation.XmlTransient; |
|---|
| 29 | import javax.xml.bind.annotation.XmlType; |
|---|
| 30 | import org.docx4j.vml.officedrawing.STBWMode; |
|---|
| 31 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | /** |
|---|
| 35 | * <p>Java class for CT_Background complex type. |
|---|
| 36 | * |
|---|
| 37 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 38 | * |
|---|
| 39 | * <pre> |
|---|
| 40 | * <complexType name="CT_Background"> |
|---|
| 41 | * <complexContent> |
|---|
| 42 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 43 | * <sequence> |
|---|
| 44 | * <element ref="{urn:schemas-microsoft-com:vml}fill" minOccurs="0"/> |
|---|
| 45 | * </sequence> |
|---|
| 46 | * <attGroup ref="{urn:schemas-microsoft-com:vml}AG_Id"/> |
|---|
| 47 | * <attGroup ref="{urn:schemas-microsoft-com:vml}AG_Fill"/> |
|---|
| 48 | * <attribute ref="{urn:schemas-microsoft-com:office:office}bwmode"/> |
|---|
| 49 | * <attribute ref="{urn:schemas-microsoft-com:office:office}bwpure"/> |
|---|
| 50 | * <attribute ref="{urn:schemas-microsoft-com:office:office}bwnormal"/> |
|---|
| 51 | * <attribute ref="{urn:schemas-microsoft-com:office:office}targetscreensize"/> |
|---|
| 52 | * </restriction> |
|---|
| 53 | * </complexContent> |
|---|
| 54 | * </complexType> |
|---|
| 55 | * </pre> |
|---|
| 56 | * |
|---|
| 57 | * |
|---|
| 58 | */ |
|---|
| 59 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 60 | @XmlType(namespace = "urn:schemas-microsoft-com:vml", name = "CT_Background", propOrder = { |
|---|
| 61 | "fill" |
|---|
| 62 | }) |
|---|
| 63 | public class CTBackground |
|---|
| 64 | implements Child |
|---|
| 65 | { |
|---|
| 66 | |
|---|
| 67 | protected CTFill fill; |
|---|
| 68 | @XmlAttribute(name = "bwmode", namespace = "urn:schemas-microsoft-com:office:office") |
|---|
| 69 | protected STBWMode bwmode; |
|---|
| 70 | @XmlAttribute(name = "bwpure", namespace = "urn:schemas-microsoft-com:office:office") |
|---|
| 71 | protected STBWMode bwpure; |
|---|
| 72 | @XmlAttribute(name = "bwnormal", namespace = "urn:schemas-microsoft-com:office:office") |
|---|
| 73 | protected STBWMode bwnormal; |
|---|
| 74 | @XmlAttribute(name = "targetscreensize", namespace = "urn:schemas-microsoft-com:office:office") |
|---|
| 75 | protected String targetscreensize; |
|---|
| 76 | @XmlAttribute(name = "id") |
|---|
| 77 | protected String vmlId; |
|---|
| 78 | @XmlAttribute(name = "filled") |
|---|
| 79 | protected STTrueFalse filled; |
|---|
| 80 | @XmlAttribute(name = "fillcolor") |
|---|
| 81 | protected String fillcolor; |
|---|
| 82 | @XmlTransient |
|---|
| 83 | private Object parent; |
|---|
| 84 | |
|---|
| 85 | /** |
|---|
| 86 | * Gets the value of the fill property. |
|---|
| 87 | * |
|---|
| 88 | * @return |
|---|
| 89 | * possible object is |
|---|
| 90 | * {@link CTFill } |
|---|
| 91 | * |
|---|
| 92 | */ |
|---|
| 93 | public CTFill getFill() { |
|---|
| 94 | return fill; |
|---|
| 95 | } |
|---|
| 96 | |
|---|
| 97 | /** |
|---|
| 98 | * Sets the value of the fill property. |
|---|
| 99 | * |
|---|
| 100 | * @param value |
|---|
| 101 | * allowed object is |
|---|
| 102 | * {@link CTFill } |
|---|
| 103 | * |
|---|
| 104 | */ |
|---|
| 105 | public void setFill(CTFill value) { |
|---|
| 106 | this.fill = value; |
|---|
| 107 | } |
|---|
| 108 | |
|---|
| 109 | /** |
|---|
| 110 | * Black-and-White Mode |
|---|
| 111 | * |
|---|
| 112 | * @return |
|---|
| 113 | * possible object is |
|---|
| 114 | * {@link STBWMode } |
|---|
| 115 | * |
|---|
| 116 | */ |
|---|
| 117 | public STBWMode getBwmode() { |
|---|
| 118 | return bwmode; |
|---|
| 119 | } |
|---|
| 120 | |
|---|
| 121 | /** |
|---|
| 122 | * Sets the value of the bwmode property. |
|---|
| 123 | * |
|---|
| 124 | * @param value |
|---|
| 125 | * allowed object is |
|---|
| 126 | * {@link STBWMode } |
|---|
| 127 | * |
|---|
| 128 | */ |
|---|
| 129 | public void setBwmode(STBWMode value) { |
|---|
| 130 | this.bwmode = value; |
|---|
| 131 | } |
|---|
| 132 | |
|---|
| 133 | /** |
|---|
| 134 | * Pure Black-and-White Mode |
|---|
| 135 | * |
|---|
| 136 | * @return |
|---|
| 137 | * possible object is |
|---|
| 138 | * {@link STBWMode } |
|---|
| 139 | * |
|---|
| 140 | */ |
|---|
| 141 | public STBWMode getBwpure() { |
|---|
| 142 | return bwpure; |
|---|
| 143 | } |
|---|
| 144 | |
|---|
| 145 | /** |
|---|
| 146 | * Sets the value of the bwpure property. |
|---|
| 147 | * |
|---|
| 148 | * @param value |
|---|
| 149 | * allowed object is |
|---|
| 150 | * {@link STBWMode } |
|---|
| 151 | * |
|---|
| 152 | */ |
|---|
| 153 | public void setBwpure(STBWMode value) { |
|---|
| 154 | this.bwpure = value; |
|---|
| 155 | } |
|---|
| 156 | |
|---|
| 157 | /** |
|---|
| 158 | * Normal Black-and-White Mode |
|---|
| 159 | * |
|---|
| 160 | * @return |
|---|
| 161 | * possible object is |
|---|
| 162 | * {@link STBWMode } |
|---|
| 163 | * |
|---|
| 164 | */ |
|---|
| 165 | public STBWMode getBwnormal() { |
|---|
| 166 | return bwnormal; |
|---|
| 167 | } |
|---|
| 168 | |
|---|
| 169 | /** |
|---|
| 170 | * Sets the value of the bwnormal property. |
|---|
| 171 | * |
|---|
| 172 | * @param value |
|---|
| 173 | * allowed object is |
|---|
| 174 | * {@link STBWMode } |
|---|
| 175 | * |
|---|
| 176 | */ |
|---|
| 177 | public void setBwnormal(STBWMode value) { |
|---|
| 178 | this.bwnormal = value; |
|---|
| 179 | } |
|---|
| 180 | |
|---|
| 181 | /** |
|---|
| 182 | * Target Screen Size |
|---|
| 183 | * |
|---|
| 184 | * @return |
|---|
| 185 | * possible object is |
|---|
| 186 | * {@link String } |
|---|
| 187 | * |
|---|
| 188 | */ |
|---|
| 189 | public String getTargetscreensize() { |
|---|
| 190 | return targetscreensize; |
|---|
| 191 | } |
|---|
| 192 | |
|---|
| 193 | /** |
|---|
| 194 | * Sets the value of the targetscreensize property. |
|---|
| 195 | * |
|---|
| 196 | * @param value |
|---|
| 197 | * allowed object is |
|---|
| 198 | * {@link String } |
|---|
| 199 | * |
|---|
| 200 | */ |
|---|
| 201 | public void setTargetscreensize(String value) { |
|---|
| 202 | this.targetscreensize = value; |
|---|
| 203 | } |
|---|
| 204 | |
|---|
| 205 | /** |
|---|
| 206 | * Gets the value of the vmlId property. |
|---|
| 207 | * |
|---|
| 208 | * @return |
|---|
| 209 | * possible object is |
|---|
| 210 | * {@link String } |
|---|
| 211 | * |
|---|
| 212 | */ |
|---|
| 213 | public String getVmlId() { |
|---|
| 214 | return vmlId; |
|---|
| 215 | } |
|---|
| 216 | |
|---|
| 217 | /** |
|---|
| 218 | * Sets the value of the vmlId property. |
|---|
| 219 | * |
|---|
| 220 | * @param value |
|---|
| 221 | * allowed object is |
|---|
| 222 | * {@link String } |
|---|
| 223 | * |
|---|
| 224 | */ |
|---|
| 225 | public void setVmlId(String value) { |
|---|
| 226 | this.vmlId = value; |
|---|
| 227 | } |
|---|
| 228 | |
|---|
| 229 | /** |
|---|
| 230 | * Gets the value of the filled property. |
|---|
| 231 | * |
|---|
| 232 | * @return |
|---|
| 233 | * possible object is |
|---|
| 234 | * {@link STTrueFalse } |
|---|
| 235 | * |
|---|
| 236 | */ |
|---|
| 237 | public STTrueFalse getFilled() { |
|---|
| 238 | return filled; |
|---|
| 239 | } |
|---|
| 240 | |
|---|
| 241 | /** |
|---|
| 242 | * Sets the value of the filled property. |
|---|
| 243 | * |
|---|
| 244 | * @param value |
|---|
| 245 | * allowed object is |
|---|
| 246 | * {@link STTrueFalse } |
|---|
| 247 | * |
|---|
| 248 | */ |
|---|
| 249 | public void setFilled(STTrueFalse value) { |
|---|
| 250 | this.filled = value; |
|---|
| 251 | } |
|---|
| 252 | |
|---|
| 253 | /** |
|---|
| 254 | * Gets the value of the fillcolor property. |
|---|
| 255 | * |
|---|
| 256 | * @return |
|---|
| 257 | * possible object is |
|---|
| 258 | * {@link String } |
|---|
| 259 | * |
|---|
| 260 | */ |
|---|
| 261 | public String getFillcolor() { |
|---|
| 262 | return fillcolor; |
|---|
| 263 | } |
|---|
| 264 | |
|---|
| 265 | /** |
|---|
| 266 | * Sets the value of the fillcolor property. |
|---|
| 267 | * |
|---|
| 268 | * @param value |
|---|
| 269 | * allowed object is |
|---|
| 270 | * {@link String } |
|---|
| 271 | * |
|---|
| 272 | */ |
|---|
| 273 | public void setFillcolor(String value) { |
|---|
| 274 | this.fillcolor = value; |
|---|
| 275 | } |
|---|
| 276 | |
|---|
| 277 | /** |
|---|
| 278 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 279 | * |
|---|
| 280 | * @return |
|---|
| 281 | * The parent object. |
|---|
| 282 | */ |
|---|
| 283 | public Object getParent() { |
|---|
| 284 | return this.parent; |
|---|
| 285 | } |
|---|
| 286 | |
|---|
| 287 | public void setParent(Object parent) { |
|---|
| 288 | this.parent = parent; |
|---|
| 289 | } |
|---|
| 290 | |
|---|
| 291 | /** |
|---|
| 292 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 293 | * |
|---|
| 294 | * @param parent |
|---|
| 295 | * The parent object in the object tree. |
|---|
| 296 | * @param unmarshaller |
|---|
| 297 | * The unmarshaller that generated the instance. |
|---|
| 298 | */ |
|---|
| 299 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 300 | setParent(parent); |
|---|
| 301 | } |
|---|
| 302 | |
|---|
| 303 | } |
|---|