StrNullFrame.java 1.02 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.xfa.text;

import com.adobe.xfa.text.Pkg;
import com.adobe.xfa.text.StrItem;
import com.adobe.xfa.text.TextGfxSource;
import com.adobe.xfa.text.TextNullFrame;
import java.io.PrintStream;

class StrNullFrame
extends StrItem {
    private final TextNullFrame mpoNullFrame;

    StrNullFrame() {
        super(6);
        this.mpoNullFrame = null;
    }

    StrNullFrame(TextNullFrame poNullFrame) {
        super(6);
        this.mpoNullFrame = poNullFrame;
    }

    @Override
    TextNullFrame nullFrameAt(int nIndex) {
        return this.mpoNullFrame;
    }

    @Override
    boolean isEqual(StrItem poCompare) {
        StrNullFrame poOther = (StrNullFrame)poCompare;
        return this.mpoNullFrame.equals(poOther.mpoNullFrame);
    }

    @Override
    StrItem cloneItem(TextGfxSource oGfxSource) {
        return new StrNullFrame(this.mpoNullFrame);
    }

    @Override
    void debug(int indent) {
        System.out.println(Pkg.doIndent(indent + 1) + "Null frame");
    }
}