Button.java 890 Bytes
/*
 * 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.Model;
import com.adobe.xfa.Node;
import com.adobe.xfa.ProtoableNode;
import com.adobe.xfa.XFA;
import org.xml.sax.Attributes;

public final class Button
extends ProtoableNode {
    public Button(Element parent, Node prevSibling) {
        super(parent, prevSibling, null, "button", "button", null, XFA.BUTTONTAG, "button");
    }

    @Override
    public Attribute defaultAttribute(int eTag) {
        int nVersion;
        if (eTag == XFA.HIGHLIGHTTAG && (nVersion = this.getModel().getCurrentVersion()) == 25) {
            return EnumValue.getEnum(XFA.HIGHLIGHTTAG, EnumAttr.getEnum(7798786));
        }
        return super.defaultAttribute(eTag);
    }
}