MutableListModel

public protocol MutableListModel: ListModel

Represents the mutable file list model.

Note that this API is not thread-safe. Call all methods and properties only from the UI thread.

  • True if the hidden files are shown.

    Declaration

    Swift

    var showHiddenFiles: Bool
  • The text filter for the Quick Select.

    Declaration

    Swift

    var quickSelect: String
  • The file filter.

    Declaration

    Swift

    var filter: (VirtualFile) -> Bool
  • The global file filter.

    Declaration

    Swift

    var globalFilter: (VirtualFile) -> Bool
  • The ordering strategy.

    Declaration

    Swift

    var ordering: ListOrdering
  • The index of the current item (item on a cursor).

    Returns the index of the current item, or a negative number if the list does not have a current item.

    Declaration

    Swift

    var currentIndex: Int
  • Returns the next selectable item with the given direction, or -1 if the item was not found.

    Declaration

    Swift

    func getNextIndex(index: Int, nextItemFactory: (Int) -> Int) -> Int
  • moveCursorToTop() Extension method

    Make the first item current.

    Declaration

    Swift

    public func moveCursorToTop()
  • moveCursorToBottom() Extension method

    Make the last item current.

    Declaration

    Swift

    public func moveCursorToBottom()
  • invertSelection() Extension method

    Invert the selection.

    Declaration

    Swift

    public func invertSelection()
  • selectCurrent() Extension method

    Select the current item.

    Declaration

    Swift

    public func selectCurrent()
  • invertSelection(index:) Extension method

    Toggle selection of the item on index.

    Declaration

    Swift

    public func invertSelection(index: Int)