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

void org::openscience::cdk::io::DefaultChemObjectReader::fireFrameRead (  )  [inline, protected, inherited]

Sends a frame read event to the registered ReaderListeners.

Definition at line 63 of file DefaultChemObjectReader.java.

References org::openscience::cdk::io::DefaultChemObjectReader::frameReadEvent, and org::openscience::cdk::io::DefaultChemObjectReader::listenerList.

Referenced by org::openscience::cdk::io::Gaussian98Reader::readChemFile(), and org::openscience::cdk::io::MACiEReader::readReactions().

                                   {
        for (int i = 0; i < listenerList.size(); ++i) {
            IChemObjectIOListener listener = (IChemObjectIOListener)listenerList.elementAt(i);
            if (listener instanceof IReaderListener) {
                // Lazily create the event:
                if (frameReadEvent == null) {
                    frameReadEvent = new ReaderEvent(this);
                }
                ((IReaderListener)listener).frameRead(frameReadEvent);
            }
        }
    }


Generated by  Doxygen 1.6.0   Back to index