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

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


   * Removes the document from the list of unlabeled documents in the
   * corresponding tree branch.
   * @param documentID Document ID.
   */
  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


  /**
   * A new document has been added to the archive. Add it to the tree view here.
   * @param documentID
   */
  public void addNewArchiveDocument(long documentID) {
    addDocumentToSpecialPath(new SpecialPath("New documents"), documentID);
    addToUnlabeledDocuments(documentID);
  }
View Full Code Here

   * @see de.chris_soft.nanoarchive.DocumentFoundListener#foundDocument(String,
   *      java.io.File, long, java.util.Properties)
   */
  @Override
  public void foundDocument(String searchTerm, File document, long documentID, Properties metadata) {
    addDocumentToSpecialPath(new SpecialPath(searchTerm), documentID);
  }
View Full Code Here

  /**
   * Adds a document to the list of the unlabeled documents.
   * @param documentID ID of the document.
   */
  public void addToUnlabeledDocuments(long documentID) {
    Object specialPath = new SpecialPath("Unlabeled documents");
    addDocumentToSpecialPath(specialPath, documentID);
  }
View Full Code Here

  /**
   * Selects the last node of the unlabeled documents path.
   */
  public void selectLastUnlabeledDocument() {
    Object specialPath = new SpecialPath("Unlabeled documents");
    List<Object> childUserObjects = getChildUserObjects(specialPath);
    if (!childUserObjects.isEmpty()) {
      setCurrentNode(specialPath);
      setCurrentChild(childUserObjects.get(childUserObjects.size() - 1));
    }
View Full Code Here

TOP

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

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.