Package org.sbml.jsbml.util

Examples of org.sbml.jsbml.util.TreeNodeChangeEvent


           * the SBMLDocument because this is already done in the
           * method setThisAsParentSBMLObject, a method that is called
           * to link a new element to an existing SBML tree.
           */
          // Now we can notify all listeners about the change:
          TreeNodeChangeEvent changeEvent = new TreeNodeChangeEvent(this,
              propertyName, oldValue, newValue);
          for (TreeNodeChangeListener listener : listOfListeners) {
            listener.propertyChange(changeEvent);
          }
        }
View Full Code Here


           * the SBMLDocument because this is already done in the
           * method setThisAsParentSBMLObject, a method that is called
           * to link a new element to an existing SBML tree.
           */
          // Now we can notify all listeners about the change:
          TreeNodeChangeEvent changeEvent = new TreeNodeChangeEvent(this,
              propertyName, oldValue, newValue);
          for (TreeNodeChangeListener listener : listOfListeners) {
            listener.propertyChange(changeEvent);
          }
        }
View Full Code Here

           * the SBMLDocument because this is already done in the
           * method setThisAsParentSBMLObject, a method that is called
           * to link a new element to an existing SBML tree.
           */
          // Now we can notify all listeners about the change:
          TreeNodeChangeEvent changeEvent = new TreeNodeChangeEvent(this,
              propertyName, oldValue, newValue);
          for (TreeNodeChangeListener listener : listOfListeners) {
            listener.propertyChange(changeEvent);
          }
        }
View Full Code Here

   * @see java.lang.Object#equals(java.lang.Object)
   */
  @Override
  public boolean equals(Object object) {
    if (object.getClass().equals(getClass())) {
      TreeNodeChangeEvent tnce = (TreeNodeChangeEvent) object;
      boolean equals = tnce.isSetSource() == isSetSource();
      if (equals && isSetSource()) {
        equals &= tnce.getSource().equals(getSource());
      }
      equals &= tnce.isSetOldValue() == isSetOldValue();
      if (equals && isSetOldValue()) {
        equals &= tnce.getOldValue().equals(getOldValue());
      }
      equals &= tnce.isSetNewValue() == isSetNewValue();
      if (equals && isSetNewValue()) {
        equals &= tnce.getNewValue().equals(getNewValue());
      }
      return equals;
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of org.sbml.jsbml.util.TreeNodeChangeEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.