/** * Removes all Reactions from this container. */ @Override public void removeAllReactions() { for (int pos = this.reactionCount - 1; pos >= 0; pos--) { this.reactions[pos] = null; } this.reactionCount = 0; notifyChanged(); }
/** * Removes all Reactions from this container. */ @Override public void removeAllReactions() { for (int pos = this.reactionCount - 1; pos >= 0; pos--) { this.reactions[pos] = null; } this.reactionCount = 0; notifyChanged(); }
@Override public void stateChanged(IChemObjectChangeEvent event) { notifyChanged(event); }
@Override public void stateChanged(IChemObjectChangeEvent event) { notifyChanged(event); }
/** * Adds an reaction to this container. * * @param reaction The reaction to be added to this container */ @Override public void addReaction(IReaction reaction) { if (reactionCount + 1 >= reactions.length) growReactionArray(); reactions[reactionCount] = reaction; reactionCount++; notifyChanged(); }
/** * Adds an reaction to this container. * * @param reaction The reaction to be added to this container */ @Override public void addReaction(IReaction reaction) { if (reactionCount + 1 >= reactions.length) growReactionArray(); reactions[reactionCount] = reaction; reactionCount++; notifyChanged(); }
/** {@inheritDoc} */ @Override public void notifyChanged() { logger.debug("Notifying changed"); super.notifyChanged(); }
/** {@inheritDoc} */ @Override public void notifyChanged(IChemObjectChangeEvent evt) { logger.debug("Notifying changed event: ", evt); super.notifyChanged(evt); }
/** * Remove a reaction from this set. * * @param pos The position of the reaction to be removed. */ @Override public void removeReaction(int pos) { reactions[pos].removeListener(this); for (int i = pos; i < reactionCount - 1; i++) { reactions[i] = reactions[i + 1]; } reactions[reactionCount - 1] = null; reactionCount--; notifyChanged(); }
/** * Remove a reaction from this set. * * @param pos The position of the reaction to be removed. */ @Override public void removeReaction(int pos) { reactions[pos].removeListener(this); for (int i = pos; i < reactionCount - 1; i++) { reactions[i] = reactions[i + 1]; } reactions[reactionCount - 1] = null; reactionCount--; notifyChanged(); }