TreeTableView

trait TreeTableView[T <: Txn[T], Node, Branch, Data] extends Disposable[T] with Model[Update]

A view for tree like data that is presented as a tree table.

A view for tree like data that is presented as a tree table.

Type Params
Data

the opaque data type which is a non-transactional view structure used for rendering the nodes.

Node

the opaque node type of the tree, encompassing both branches and leaves

Companion
object
trait Model[Update]
trait Disposable[T]
class Object
trait Matchable
class Any

Type members

Types

type NodeView <: NodeView[T, Node, Branch, Data]

Opaque view type corresponding with a node in the model.

Opaque view type corresponding with a node in the model.

Value members

Abstract methods

def component: Component
def dropLocation: Option[DropLocation[NodeView]]

The drop location in a drag-and-drop operation. This returns None if no drop action is currently being performed. Please note that the root element is removed. It is thus possible that the path is empty!

The drop location in a drag-and-drop operation. This returns None if no drop action is currently being performed. Please note that the root element is removed. It is thus possible that the path is empty!

def insertionPoint(tx: T): (Branch, Int)
def markInsertion(tx: T): Unit
def nodeView(node: Node)(tx: T): Option[NodeView]
def root: Source[T, Branch]
def selection: List[NodeView]
def treeTable: TreeTable[_, _]

Inherited methods

def addListener(pf: Listener[Update]): pf

Registers a listener for updates from the model. A listener is simply a partial function which receives instances of U. Therefore the listener can decide with pattern match cases which updates it wants to handle.

Registers a listener for updates from the model. A listener is simply a partial function which receives instances of U. Therefore the listener can decide with pattern match cases which updates it wants to handle.

Example:

 m.addListener {
   case NcviewSync.Open(path) => ...
 }

Note: If the listener should be removed at some point, it is important to store it somewhere:

 val l: NcviewSync.Listener = { case NcviewSync.Open(path) => ... }
 m.addListener(l)
 ...
 m.removeListener(l)
Inherited from
Model
def dispose(tx: T): Unit
Inherited from
Disposable
def removeListener(pf: Listener[Update]): Unit

Un-registers a listener for updates from the model.

Un-registers a listener for updates from the model.

Inherited from
Model