ContentArea.java
1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.template.containers;
import com.adobe.xfa.Attribute;
import com.adobe.xfa.Element;
import com.adobe.xfa.Measurement;
import com.adobe.xfa.Node;
import com.adobe.xfa.XFA;
import com.adobe.xfa.template.containers.Container;
import com.adobe.xfa.ut.UnitSpan;
import org.xml.sax.Attributes;
public final class ContentArea
extends Container {
private Measurement mZeroDefaultUnit = null;
public ContentArea(Element parent, Node prevSibling) {
super(parent, prevSibling, null, "contentArea", "contentArea", null, XFA.CONTENTAREATAG, "contentArea");
}
@Override
public Attribute defaultAttribute(int eTag) {
if (eTag == XFA.WTAG || eTag == XFA.HTAG) {
if (this.mZeroDefaultUnit == null) {
this.mZeroDefaultUnit = new Measurement("", "0");
}
return this.mZeroDefaultUnit;
}
return super.defaultAttribute(eTag);
}
public UnitSpan getHeight() {
Measurement oMeas = (Measurement)this.getAttribute(XFA.HTAG);
return oMeas.getUnitSpan();
}
public UnitSpan getWidth() {
Measurement oMeas = (Measurement)this.getAttribute(XFA.WTAG);
return oMeas.getUnitSpan();
}
@Override
public boolean isHeightGrowSupported() {
return false;
}
@Override
public boolean isWidthGrowSupported() {
return false;
}
}