Logo Search packages:      
Sourcecode: cdk version File versions  Download package

void org::openscience::cdk::ChemObject::notifyChanged ( IChemObjectChangeEvent  evt  )  [inline, inherited]

This should be triggered by an method that changes the content of an object to that the registered listeners can react to it. This is a version of notifyChanged() which allows to propagate a change event while preserving the original origin.

Parameters:
evt A ChemObjectChangeEvent pointing to the source of where the change happend

Implements org::openscience::cdk::interfaces::IChemObject.

Reimplemented in org::openscience::cdk::debug::DebugAminoAcid, org::openscience::cdk::debug::DebugAtom, org::openscience::cdk::debug::DebugAtomContainer, org::openscience::cdk::debug::DebugAtomContainerSet, org::openscience::cdk::debug::DebugAtomParity, org::openscience::cdk::debug::DebugAtomType, org::openscience::cdk::debug::DebugBioPolymer, org::openscience::cdk::debug::DebugBond, org::openscience::cdk::debug::DebugChemFile, org::openscience::cdk::debug::DebugChemModel, org::openscience::cdk::debug::DebugChemObject, org::openscience::cdk::debug::DebugChemSequence, org::openscience::cdk::debug::DebugCrystal, org::openscience::cdk::debug::DebugElectronContainer, org::openscience::cdk::debug::DebugElement, org::openscience::cdk::debug::DebugIsotope, org::openscience::cdk::debug::DebugLonePair, org::openscience::cdk::debug::DebugMapping, org::openscience::cdk::debug::DebugMolecule, org::openscience::cdk::debug::DebugMoleculeSet, org::openscience::cdk::debug::DebugMonomer, org::openscience::cdk::debug::DebugPolymer, org::openscience::cdk::debug::DebugPseudoAtom, org::openscience::cdk::debug::DebugReaction, org::openscience::cdk::debug::DebugReactionSet, org::openscience::cdk::debug::DebugRing, org::openscience::cdk::debug::DebugSingleElectron, and org::openscience::cdk::debug::DebugStrand.

Definition at line 205 of file ChemObject.java.

References org::openscience::cdk::ChemObject::getListenerCount(), org::openscience::cdk::ChemObject::getNotification(), and org::openscience::cdk::ChemObject::lazyChemObjectListeners().

                                                            {
        if (getNotification() && getListenerCount() > 0) {
            List listeners = lazyChemObjectListeners();
            for (int f = 0; f < listeners.size(); f++) {
                ((IChemObjectListener) listeners.get(f)).stateChanged(evt);
            }
        }
      }


Generated by  Doxygen 1.6.0   Back to index