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

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


    TreePath selectionPath = tree.getSelectionPath();
    if (selectionPath != null) {
      DefaultMutableTreeNode treeNode = (DefaultMutableTreeNode) selectionPath.getLastPathComponent();
      Object userObject = treeNode.getUserObject();
      if (userObject instanceof DocumentPath) {
        DocumentPath docPath = (DocumentPath) userObject;
        God.appWindow.setCurrentDocument(docPath.docID);
        // selectShownDocumentInArchiveTree(treeNode, docPath);
      }
    }
  }
View Full Code Here


   */
  public void removeFromUnlabeledDocuments(Long documentID) {
    final Object specialPath = new SpecialPath("Unlabeled documents");
    if (hasNode(specialPath)) {
      List<Object> children = getChildUserObjects(specialPath);
      DocumentPath docPath = new DocumentPath(documentID);
      if (children.contains(docPath)) {
        removeUserObjectPath(new Object[] { rootObject, specialPath, docPath });
      }
    }
  }
View Full Code Here

  private void addDocumentToSpecialPath(final Object searchPath, long documentID) {
    if (!hasNode(searchPath)) {
      addNode(null, searchPath);
    }
    List<Object> children = getChildUserObjects(searchPath);
    DocumentPath docPath = new DocumentPath(documentID);
    if (!children.contains(docPath)) {
      addNode(searchPath, docPath);
    }
  }
View Full Code Here

TOP

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

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.