Fill.java 1.02 KB
/*
 * 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);
    }
}