Examples of TreeNodeAdapter


Examples of org.sbml.jsbml.util.TreeNodeAdapter

   */
  public TreeNode getChildAt(int childIndex) {
    int pos = 0;
    if (isSetListOfCreators()) {
      if (pos == childIndex) {
        return new TreeNodeAdapter(getListOfCreators(), this);
      }
      pos++;
    }
    if (isSetListOfModification()) {
      if (pos == childIndex) {
        return new TreeNodeAdapter(getListOfModifiedDates(), this);
      }
      pos++;
    }
    throw new IndexOutOfBoundsException(MessageFormat.format(
      "Index {0,number,integer} >= {1,number,integer}",
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeAdapter

      }
      pos++;
    }
    if (isSetListOfCVTerms()) {
      if (childIndex == pos) {
        return new TreeNodeAdapter(getListOfCVTerms(), this);
      }
      pos++;
    }
    if (extensions.size() > 0) {
      if (childIndex == pos) {
        return new TreeNodeAdapter(extensions, this);
      }
      pos++;
    }
//    if (isSetNonRDFannotation()) {
//      if (childIndex == pos) {
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeAdapter

   */
  public boolean addResource(String urn) {
    boolean contains = resourceURIs.contains(urn);
    boolean success = resourceURIs.add(urn);
    if (success && !contains) {
        (new TreeNodeAdapter(urn, this)).fireNodeAddedEvent();
    }
    return success;
  }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeAdapter

  /* (non-Javadoc)
   * @see javax.swing.tree.TreeNode#getChildAt(int)
   */
  public TreeNode getChildAt(int childIndex) {
    return new TreeNodeAdapter(getResourceURI(childIndex), this);
  }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeAdapter

   */
  public void removeResource(String resource) {
    for (int i = resourceURIs.size(); i >= 0; i--) {
      if (resourceURIs.get(i).equals(resource)) {
        String urn = resourceURIs.remove(i);
        (new TreeNodeAdapter(urn, this)).fireNodeRemovedEvent();
      }
    }
  }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeAdapter

   */
  public TreeNode getChildAt(int childIndex) {
    int pos = 0;
    if (isSetListOfCreators()) {
      if (pos == childIndex) {
        return new TreeNodeAdapter(getListOfCreators(), this);
      }
      pos++;
    }
    if (isSetListOfModification()) {
      if (pos == childIndex) {
        return new TreeNodeAdapter(getListOfModifiedDates(), this);
      }
      pos++;
    }
    throw new IndexOutOfBoundsException(String.format("Index %d >= %d",
        childIndex, +((int) Math.min(pos, 0))));
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeAdapter

   */
  public boolean addResource(String urn) {
    boolean contains = resourceURIs.contains(urn);
    boolean success = resourceURIs.add(urn);
    if (success && !contains) {
        (new TreeNodeAdapter(urn, this)).fireNodeAddedEvent();
    }
    return success;
  }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeAdapter

  /* (non-Javadoc)
   * @see javax.swing.tree.TreeNode#getChildAt(int)
   */
  public TreeNode getChildAt(int childIndex) {
    return new TreeNodeAdapter(getResourceURI(childIndex), this);
  }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeAdapter

   */
  public void removeResource(String resource) {
    for (int i = resourceURIs.size(); i >= 0; i--) {
      if (resourceURIs.get(i).equals(resource)) {
        String urn = resourceURIs.remove(i);
        (new TreeNodeAdapter(urn, this)).fireNodeRemovedEvent();
      }
    }
  }
View Full Code Here

Examples of org.sbml.jsbml.util.TreeNodeAdapter

      }
      pos++;
    }
    if (isSetListOfCVTerms()) {
      if (childIndex == pos) {
        return new TreeNodeAdapter(getListOfCVTerms(), this);
      }
      pos++;
    }
    if (extensions.size() > 0) {
      if (childIndex == pos) {
        return new TreeNodeAdapter(extensions, this);
      }
      pos++;
    }
//    if (isSetNonRDFannotation()) {
//      if (childIndex == pos) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.