All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.adobe.xfa.text.StrNullFrame Maven / Gradle / Ivy

The newest version!
package com.adobe.xfa.text;

/**
 * @exclude from published api.
 */

class StrNullFrame extends StrItem {
	private final TextNullFrame mpoNullFrame;

	StrNullFrame () {
		super (TextItem.NULL_FRAME);
		mpoNullFrame = null;
	}

	StrNullFrame (TextNullFrame poNullFrame) {
		super (TextItem.NULL_FRAME);
		mpoNullFrame = poNullFrame;
	}

// Inherited from class TextStrItem
	TextNullFrame nullFrameAt (int nIndex) {
		return mpoNullFrame;
	}

	boolean isEqual (StrItem poCompare) {
		StrNullFrame poOther = ((StrNullFrame) (poCompare));
		return mpoNullFrame.equals (poOther.mpoNullFrame); // TBD: or are all null frames equal?
	}

// TBD: investigate stream copy and stream insert for creating spurious
// null frame references.
	StrItem cloneItem (TextGfxSource oGfxSource) {
		return new StrNullFrame (mpoNullFrame);
	}

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy