Module xaos.ui

Interface DirectoryModel.Reporter<I>

  • Type Parameters:
    I - Type of the initiator of changes to the model.
    Enclosing interface:
    DirectoryModel<I,​T>

    public static interface DirectoryModel.Reporter<I>
    API defining few reporting methods.
    • Method Detail

      • reportCreation

        void reportCreation​(Path baseDir,
                            Path relativePath,
                            I initiator)
        Report the creation of a file/directory element.
        Parameters:
        baseDir - Base directory of the update.
        relativePath - Path relative to baseDir of the created element.
        initiator - The initiator of changes to the model.
      • reportDeletion

        void reportDeletion​(Path baseDir,
                            Path relativePath,
                            I initiator)
        Report the removal of a file/directory element.
        Parameters:
        baseDir - Base directory of the update.
        relativePath - Path relative to baseDir of the deleted element.
        initiator - The initiator of changes to the model.
      • reportModification

        void reportModification​(Path baseDir,
                                Path relativePath,
                                I initiator)
        Report the modification of a file/directory element.
        Parameters:
        baseDir - Base directory of the update.
        relativePath - Path relative to baseDir of the modified element.
        initiator - The initiator of changes to the model.
      • reportError

        void reportError​(Throwable error)
        Report an error.
        Parameters:
        error - The thrown exception.