Module xaos.ui

Interface DirectoryModel<I,​T>

  • Type Parameters:
    I - Type of the initiator of changes to the model.
    T - Type of the object returned by TreeItem.getValue().
    All Superinterfaces:
    io.reactivex.disposables.Disposable
    All Known Implementing Classes:
    TreeDirectoryModel

    public interface DirectoryModel<I,​T>
    extends io.reactivex.disposables.Disposable
    Observable model of multiple directory trees.
    Author:
    claudio.rosati@esss.se
    See Also:
    LiveDirsFX:org.fxmisc.livedirs.DirectoryModel
    • Method Detail

      • contains

        boolean contains​(Path path)
        Indicates whether this directory model contains the given path.
        Parameters:
        path - The Path to be verified.
        Returns:
        true if the given path is contained in this model.
      • creations

        io.reactivex.Observable<DirectoryModel.Update<I>> creations()
        Returns:
        An observable stream of additions to the model.
      • deletions

        io.reactivex.Observable<DirectoryModel.Update<I>> deletions()
        Returns:
        An observable stream of removals from the model.
      • errors

        io.reactivex.Observable<Throwable> errors()
        Returns:
        An observable stream of errors.
      • modifications

        io.reactivex.Observable<DirectoryModel.Update<I>> modifications()
        Returns:
        An observable stream of file modifications in the model.