class ExternalTreeModel[A] extends TreeModel[A]
Represents tree data as a sequence of root nodes, and a function that can retrieve child nodes.
- Self Type
- ExternalTreeModel[A]
- Alphabetic
- By Inheritance
- ExternalTreeModel
- TreeModel
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ExternalTreeModel(rootItems: Seq[A], children: (A) => Seq[A])(implicit arg0: ClassTag[A])
Type Members
- class ExternalTreeModelPeer extends javax.swing.tree.TreeModel
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def breadthFirstIterator: Iterator[A]
- Definition Classes
- TreeModel
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def depthFirstIterator: Iterator[A]
- Definition Classes
- TreeModel
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def filter(p: (A) => Boolean): ExternalTreeModel[A]
- Definition Classes
- ExternalTreeModel → TreeModel
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def foreach[U](f: (A) => U): Unit
- Definition Classes
- TreeModel
- def getChildPathsOf(parentPath: Path[A]): Seq[Path[A]]
- Definition Classes
- TreeModel
- def getChildrenOf(parentPath: Path[A]): Seq[A]
- Definition Classes
- ExternalTreeModel → TreeModel
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def insertAfter(path: Path[A], newValue: A): Boolean
- Definition Classes
- TreeModel
- def insertBefore(path: Path[A], newValue: A): Boolean
- Definition Classes
- TreeModel
- val insertFunc: (Path[A], A, Int) => Boolean
A function to insert a value in the model at a given path, returning whether the operation succeeded.
A function to insert a value in the model at a given path, returning whether the operation succeeded. By default this will throw an exception; to allow insertion on a TreeModel, call insertableWith() to provide a new TreeModel with the specified insert method.
- Attributes
- protected[tree]
- def insertUnder(parentPath: Path[A], newValue: A, index: Int): Boolean
- Definition Classes
- ExternalTreeModel → TreeModel
- def isExternalModel: Boolean
- Definition Classes
- ExternalTreeModel → TreeModel
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def makeInsertableWith(effectfulInsert: (Path[A], A, Int) => Boolean): ExternalTreeModel[A]
- def makeRemovableWith(effectfulRemove: (Path[A]) => Boolean): ExternalTreeModel[A]
- def makeUpdatableWith(effectfulUpdate: (Path[A], A) => A): ExternalTreeModel[A]
Returns a new VirtualTreeModel that knows how to modify the underlying representation, using the given function to replace one value with another.
Returns a new VirtualTreeModel that knows how to modify the underlying representation, using the given function to replace one value with another.
Calling update() on a model returned from makeUpdatable() will perform the update.
- def map[B](f: (A) => B)(implicit arg0: ClassTag[B]): InternalTreeModel[B]
- Definition Classes
- ExternalTreeModel → TreeModel
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def pathToTreePath(path: Path[A]): TreePath
- Definition Classes
- ExternalTreeModel → TreeModel
- lazy val peer: ExternalTreeModelPeer
Underlying tree model that exposes the tree structure to Java Swing.
Underlying tree model that exposes the tree structure to Java Swing.
This implementation of javax.swing.tree.TreeModel takes advantage of its abstract nature, so that it respects the tree shape of the underlying structure provided by the user.
- Definition Classes
- ExternalTreeModel → TreeModel
- def remove(pathToRemove: Path[A]): Boolean
- Definition Classes
- ExternalTreeModel → TreeModel
- val removeFunc: (Path[A]) => Boolean
A function to remove a item in the model at a given path, returning whether the operation succeeded.
A function to remove a item in the model at a given path, returning whether the operation succeeded. By default this will throw an exception; to allow removal from a TreeModel, call removableWith() to provide a new TreeModel with the specified remove method.
- Attributes
- protected[tree]
- def roots: Seq[A]
- Definition Classes
- ExternalTreeModel → TreeModel
- def siblingsUnder(parentPath: Path[A]): Seq[A]
- Attributes
- protected
- Definition Classes
- TreeModel
- def size: Int
- Definition Classes
- TreeModel
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toInternalModel: InternalTreeModel[A]
- Definition Classes
- ExternalTreeModel → TreeModel
- def toString(): String
- Definition Classes
- AnyRef → Any
- def treePathToPath(tp: TreePath): Path[A]
- Definition Classes
- ExternalTreeModel → TreeModel
- def unpackNode(node: Any): A
- Definition Classes
- TreeModel
- def update(path: Path[A], newValue: A): Unit
Replaces one value with another, mutating the underlying structure.
Replaces one value with another, mutating the underlying structure. If a way to modify the external tree structure has not been provided with makeUpdatableWith(), then an exception will be thrown.
- Definition Classes
- ExternalTreeModel → TreeModel
- val updateFunc: (Path[A], A) => A
A function to update a value in the model, at a given path.
A function to update a value in the model, at a given path. By default this will throw an exception; to make a TreeModel updatable, call makeUpdatable() to provide a new TreeModel with the specified update method.
- Attributes
- protected[tree]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()