Module xaos.ui

Class TreeDirectoryItems.TopLevelDirectoryItem<I,​T>

    • Method Detail

      • addDirectory

        public void addDirectory​(Path relativePath,
                                 I initiator)
        Adds a directory to the model rooted at this item.
        Parameters:
        relativePath - The directory Path.
        initiator - The initiator of changes to the model.
      • addFile

        public void addFile​(Path relativePath,
                            FileTime lastModified,
                            I initiator)
        Adds a file to the model rooted at this item.
        Parameters:
        relativePath - The file Path.
        lastModified - The file's last modification time.
        initiator - The initiator of changes to the model.
      • contains

        public boolean contains​(Path relativePath)
        Parameters:
        relativePath - The Path to be checked.
        Returns:
        true if the given Path is contained in the model rooted at this item.
      • remove

        public void remove​(Path relativePath,
                           I initiator)
        Removes the given Path from the model rooted at this item.
        Parameters:
        relativePath - The Path to be removed from the model rooted at this item.
        initiator - The initiator of changes to the model.
      • sync

        public void sync​(Path root,
                         I initiator)
        Adds to the model rooted at this item all the subdirectories and files rooted at the given Path element.
        Parameters:
        root - The path to be synchronized.
        initiator - The initiator of changes to the model.
      • updateModificationTime

        public void updateModificationTime​(Path relativePath,
                                           FileTime lastModified,
                                           I initiator)
        Updates the modification time for the item associated to the given Path.
        Parameters:
        relativePath - The path whose associated item must be updated.
        lastModified - The new modification time.
        initiator - The initiator of changes to the model.