FileSystemDataModel

Description

sealed class Tinman.Engine.GUI.Components.FileSystemDataModel

Derived from

DataModelBase<Path> abstract

A IDataModel implementation that represents the hierarchy of a filesystem.

Public / Constructors

File​System​Data​Model

2 overloads


public constructor FileSystemDataModel1 → (1)

paths in : IVectorConst<Path>

[not-null]
The filesystem paths that will show up as root nodes in the data grid.

Creates a new instance of FileSystemDataModel.


public constructor FileSystemDataModel2 → (3)

parent in : Path

[not-null]
The parent filesystem path. The child directories and files will show up as root nodes in the data grid.

filePattern opt : string = null

Optional filter pattern to use for finding files in parent in (see IFileSystem.ListFiles).

directoryPattern opt : string = null

Optional filter pattern to use for finding directories in parent in (see IFileSystem.ListDirectories).

Creates a new instance of FileSystemDataModel.

Public / Methods

Path​At


public method PathAt → (1)

row in : int32

[0..IDataModel.Rows-1]
The model row.

returns → Path

The file path.

Returns the file path that is associated with the given model row.

Public / Attributes

Parent


public attribute Parent → (get)

value : Path

The parent path or null if none.

Returns the parent path.

Logging

Logger


public static readonly attribute Logger → (ILogger)

The logger object of this class.