Module xaos.ui

Interface TreeDirectoryModel.GraphicFactory

    • Method Detail

      • createGraphic

        Node createGraphic​(Path path,
                           boolean isDirectory,
                           boolean isExpanded)
        Creates a graphics Node for the given Path.
        Parameters:
        path - The Path needing a graphical representation.
        isDirectory - The returned graphics must represent a node.
        isExpanded - If isDirectory is true, then this parameter tells if the directory must be represented as expanded or collapsed.
        Returns:
        The graphical representation for the given Path.
      • apply

        default Node apply​(Path path,
                           Boolean isDirectory,
                           Boolean isExpanded)
        Description copied from interface: TriFunction
        Applies this function to the given arguments.
        Specified by:
        apply in interface TriFunction<Path,​Boolean,​Boolean,​Node>
        Parameters:
        path - The first function argument.
        isDirectory - The second function argument.
        isExpanded - The third function argument.
        Returns:
        the function result