Fill.java
1.02 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
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.template.formatting;
import com.adobe.xfa.Attribute;
import com.adobe.xfa.Element;
import com.adobe.xfa.EnumAttr;
import com.adobe.xfa.EnumValue;
import com.adobe.xfa.Node;
import com.adobe.xfa.ProtoableNode;
import com.adobe.xfa.XFA;
import org.xml.sax.Attributes;
public final class Fill
extends ProtoableNode {
public Fill(Element parent, Node prevSibling) {
super(parent, prevSibling, null, "fill", "fill", null, XFA.FILLTAG, "fill");
}
@Override
public Attribute defaultAttribute(int eTag) {
if (eTag == XFA.PRESENCETAG && this.isDefault(true)) {
return EnumValue.getEnum(XFA.PRESENCETAG, EnumAttr.getEnum(1076494338));
}
return super.defaultAttribute(eTag);
}
@Override
public int defaultElement() {
return XFA.SOLIDTAG;
}
@Override
public boolean isContextSensitiveAttribute(int eTag) {
return eTag == XFA.PRESENCETAG || super.isContextSensitiveAttribute(eTag);
}
}