Caption.java
1.32 KB
/*
* Decompiled with CFR 0_118.
*/
package com.adobe.xfa.template.formatting;
import com.adobe.xfa.Element;
import com.adobe.xfa.Node;
import com.adobe.xfa.ProtoableNode;
import com.adobe.xfa.XFA;
import com.adobe.xfa.template.containers.ExclGroup;
import org.xml.sax.Attributes;
public final class Caption
extends ProtoableNode {
public Caption(Element parent, Node prevSibling) {
super(parent, prevSibling, null, "caption", "caption", null, XFA.CAPTIONTAG, "caption");
}
@Override
public Element getElement(int eTag, boolean bPeek, int nOccurrence, boolean bReturnDefault, boolean bValidate) {
Element poParent;
if (eTag == XFA.FONTTAG && !this.isPropertySpecified(eTag, true, nOccurrence) && !((poParent = this.getXFAParent()) instanceof ExclGroup)) {
if (bPeek) {
return poParent.getElement(eTag, bPeek, nOccurrence, bReturnDefault, bValidate);
}
Element poParentsFontProperty = poParent.getElement(eTag, bPeek, nOccurrence, bReturnDefault, bValidate);
if (poParentsFontProperty != null) {
Element oClonedFontProperty = poParentsFontProperty.clone(this, true);
return oClonedFontProperty;
}
}
return super.getElement(eTag, bPeek, nOccurrence, bReturnDefault, bValidate);
}
}