Package-level declarations

Types

Link copied to clipboard
open class DynamicTree<T, M : DynamicTreeModel<T>>(model: M, itemVisualizer: ItemVisualizer<T, ExpandableItem>? = null, selectionModel: SelectionModel<Path<Int>>? = null) : Tree<T, M>
Link copied to clipboard
interface DynamicTreeModel<T> : TreeModel<T>
Link copied to clipboard
typealias ExpansionObserver<T> = (source: Tree<T, *>, paths: Set<Path<Int>>) -> Unit

Created by Nicholas Eddy on 3/23/18.

Link copied to clipboard
Link copied to clipboard
typealias ItemsObserver<T> = (source: Tree<T, *>, removed: Map<Path<Int>, T>, added: Map<Path<Int>, T>, moved: Map<Path<Int>, Pair<Path<Int>, T>>) -> Unit

Created by Nicholas Eddy on 9/29/19.

Link copied to clipboard
typealias ModelObserver<T> = (source: DynamicTreeModel<T>, removed: Map<Path<Int>, T>, added: Map<Path<Int>, T>, moved: Map<Path<Int>, Pair<Path<Int>, T>>) -> Unit
Link copied to clipboard
class MutableNodeBuilder<T>(var value: T, val children: MutableList<MutableNodeBuilder<T>> = mutableListOf())
Link copied to clipboard
class MutableTree<T, M : MutableTreeModel<T>>(model: M, itemVisualizer: ItemVisualizer<T, ExpandableItem>? = null, selectionModel: SelectionModel<Path<Int>>? = null) : DynamicTree<T, M> , Editable
Link copied to clipboard
Link copied to clipboard
class MutableTreeNode<T>(var value: T, var children: MutableList<MutableTreeNode<T>> = mutableListOf()) : TreeNode<T>
Link copied to clipboard
class NodeBuilder<T>(var value: T, val children: MutableList<NodeBuilder<T>> = mutableListOf())

Created by Nicholas Eddy on 3/27/18.

Link copied to clipboard
open class SimpleTreeModel<T, N : TreeNode<T>>(val root: N) : TreeModel<T>
Link copied to clipboard
open class Tree<T, out M : TreeModel<T>>(val model: M, val itemVisualizer: ItemVisualizer<T, ExpandableItem>? = null, val selectionModel: SelectionModel<Path<Int>>? = null, scrollCache: Int = 0) : View, TreeLike
Link copied to clipboard
interface TreeEditor<T>

Created by Nicholas Eddy on 12/13/18.

Link copied to clipboard
interface TreeLike : Selectable<Path<Int>>
Link copied to clipboard
interface TreeModel<T>

Created by Nicholas Eddy on 3/23/18.

Link copied to clipboard
open class TreeNode<T>(val value: T, val children: List<TreeNode<T>> = emptyList())

Functions

Link copied to clipboard
fun <T> mutableRootNode(value: T, block: MutableNodeBuilder<T>.() -> Unit = {}): MutableTreeNode<T>
Link copied to clipboard
fun <T> rootNode(value: T, block: NodeBuilder<T>.() -> Unit = {}): TreeNode<T>