Package de.chris_soft.nanodoa.gui.tree.path

Examples of de.chris_soft.nanodoa.gui.tree.path.SubPath


      @Override
      public void run() {
        try {
          List<Pair<Long, String>> list = God.archive.getDirectories(0);
          for (Pair<Long, String> pair : list) {
            SubPath subpath = new SubPath(pair.obj1, pair.obj2);
            if (!hasNode(subpath)) {
              addNode(null, subpath);
              List<Pair<Long, String>> list2 = God.archive.getDirectories(pair.obj1);
              for (Pair<Long, String> pair2 : list2) {
                SubPath subpath2 = new SubPath(pair2.obj1, pair2.obj2);
                if (!hasNode(subpath2)) {
                  addNode(subpath, subpath2);
                }
              }
            }
View Full Code Here


      pathID = God.archive.db.getParentPath((Long) userObject);
    }
    if (pathID != 0) {
      fillArchiveTreeToDocumentRecursive(pathID);
    }
    SubPath parent = new SubPath(pathID, null);
    if (userObject instanceof DocumentPath) {
      if (!hasNode(userObject)) {
        addNode(parent, userObject);
      }
      setCurrentNode(userObject);
    }
    else {
      SubPath subpath = new SubPath((Long) userObject, God.archive.getPathName((Long) userObject));
      if (!hasNode(subpath)) {
        addNode(parent, subpath);
      }
      setCurrentNode(new SubPath((Long) userObject, null));
    }
  }
View Full Code Here

  private void fillTreeNode(DefaultMutableTreeNode parentNode) {
    Object userObject = parentNode.getUserObject();
    if (userObject instanceof SubPath) {
      try {
        SubPath subPath = (SubPath) userObject;
        addAllSubPathsToTreeNode(subPath);
        addAllDocumentsToTreeNode(subPath);
      }
      catch (Exception exception) {
        LogUtils.log(exception);
View Full Code Here

  }

  private void addAllSubPathsToTreeNode(SubPath subPath) throws Exception {
    List<Pair<Long, String>> list = God.archive.getDirectories(subPath.id);
    for (Pair<Long, String> pair : list) {
      SubPath subpath = new SubPath(pair.obj1, pair.obj2);
      if (!hasNode(subpath)) {
        addNode(subPath, subpath);
      }
    }
  }
View Full Code Here

TOP

Related Classes of de.chris_soft.nanodoa.gui.tree.path.SubPath

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.