intarsys PDF library API

de.intarsys.pdf.cos
Interface ICOSObjectListener

All Known Implementing Classes:
CDSBase, CDSDate, CDSMatrix, CDSNameTreeNode, CDSNumberTreeNode, CDSRectangle, CDSTreeNode, CIDFont, CIDFontType0, CIDFontType2, CIDSystemInfo, CIDToGIDMap, CMap, COSBasedObject, COSCatalog, COSEncryption, COSInfoDict, COSObjectStream, COSTrailer, FDFDF, FDField, FDObject, IdentityCMap, NamedCMap, NamedGIDMap, PDAcroForm, PDAcroFormField, PDAcroFormNode, PDAction, PDActionAny, PDActionGoTo, PDActionGoToR, PDActionJavaScript, PDActionLaunch, PDActionNamed, PDActionResetForm, PDActionSubmitForm, PDActionURI, PDAdditionalActions, PDAFButtonField, PDAFChoiceField, PDAFIntermediateNode, PDAFSignatureField, PDAFTextField, PDAnnotation, PDAnyAnnotation, PDAppearance, PDAppearanceCharacteristics, PDApplicationData, PDAxialShading, PDBorderStyle, PDBuildData, PDBuildProperties, PDColorSpace, PDCoonsShading, PDCSCalGray, PDCSCalRGB, PDCSCIEBased, PDCSDevice, PDCSDeviceCMYK, PDCSDeviceGray, PDCSDeviceN, PDCSDeviceRGB, PDCSICCBased, PDCSIndexed, PDCSLab, PDCSPattern, PDCSSeparation, PDCSSpecial, PDDestination, PDEmbeddedFile, PDExplicitDestination, PDExtGState, PDFileAttachmentAnnotation, PDFileSpecification, PDFileSpecificationURL, PDFont, PDFontAny, PDFontDescriptor, PDFontDescriptorEmbedded, PDFontDescriptorType1, PDFontMMType1, PDFontTrueType, PDFontType0, PDFontType1, PDFontType3, PDForm, PDFreeFormShading, PDFunction, PDFunctionBasedShading, PDIconFit, PDImage, PDInterpolationFunction, PDLatticeFormShading, PDLinkAnnotation, PDMarkupAnnotation, PDNamedDestination, PDObject, PDOutline, PDOutlineItem, PDOutlineNode, PDOutputIntent, PDPage, PDPageNode, PDPageTree, PDPattern, PDPopupAnnotation, PDPostScript, PDPostScriptFunction, PDRadialShading, PDResources, PDSampledFunction, PDShading, PDShadingPattern, PDSignature, PDSignatureReference, PDStampAnnotation, PDStitchingFunction, PDTensorProductShading, PDTextAnnotation, PDTextMarkupAnnotation, PDTilingPattern, PDTransformMethod, PDTransformMethodDocMDP, PDTransformMethodFieldMDP, PDTransformMethodIdentity, PDTransformMethodUR, PDTransformParams, PDWidgetAnnotation, PDXObject, StreamBasedCMap, StreamBasedGIDMap

public interface ICOSObjectListener

A listener for changes in a COSObject.


Method Summary
 void changed(COSObject object, Object slot, Object oldValue, Object newValue)
          A COSObject has changed its internal state.
 

Method Detail

changed

void changed(COSObject object,
             Object slot,
             Object oldValue,
             Object newValue)
A COSObject has changed its internal state. For any COSObject this may be a change in containement (slot == COSObject.SLOT_CONTAINER).

For containers itself, this may be a change in the collection of contained objects. For dictionaries, slot will be the COSName of the changed entry, for arrays slot will be the Integer key. A stream may indicate a change in its byte content using (slot == COSStream.SLOT_BYTES).

A slot value of null may indicate a "changed all" event. For example you can expect for a clear operation on an array only a single "changed all" event.

Parameters:
object - The object that has changed
slot - The slot in the object that has changed (or null for unspecified change).
oldValue - The old value of the slot if known.
newValue - The new value of the slot if known.

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.