Packages

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]
Linear Supertypes
TreeModel[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExternalTreeModel
  2. TreeModel
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ExternalTreeModel(rootItems: Seq[A], children: (A) => Seq[A])(implicit arg0: ClassTag[A])

Type Members

  1. class ExternalTreeModelPeer extends javax.swing.tree.TreeModel

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def breadthFirstIterator: Iterator[A]
    Definition Classes
    TreeModel
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. def depthFirstIterator: Iterator[A]
    Definition Classes
    TreeModel
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. def filter(p: (A) => Boolean): ExternalTreeModel[A]
    Definition Classes
    ExternalTreeModelTreeModel
  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  12. def foreach[U](f: (A) => U): Unit
    Definition Classes
    TreeModel
  13. def getChildPathsOf(parentPath: Path[A]): Seq[Path[A]]
    Definition Classes
    TreeModel
  14. def getChildrenOf(parentPath: Path[A]): Seq[A]
    Definition Classes
    ExternalTreeModelTreeModel
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def insertAfter(path: Path[A], newValue: A): Boolean
    Definition Classes
    TreeModel
  18. def insertBefore(path: Path[A], newValue: A): Boolean
    Definition Classes
    TreeModel
  19. 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]
  20. def insertUnder(parentPath: Path[A], newValue: A, index: Int): Boolean
    Definition Classes
    ExternalTreeModelTreeModel
  21. def isExternalModel: Boolean
    Definition Classes
    ExternalTreeModelTreeModel
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def makeInsertableWith(effectfulInsert: (Path[A], A, Int) => Boolean): ExternalTreeModel[A]
  24. def makeRemovableWith(effectfulRemove: (Path[A]) => Boolean): ExternalTreeModel[A]
  25. 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.

  26. def map[B](f: (A) => B)(implicit arg0: ClassTag[B]): InternalTreeModel[B]
    Definition Classes
    ExternalTreeModelTreeModel
  27. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. def pathToTreePath(path: Path[A]): TreePath
    Definition Classes
    ExternalTreeModelTreeModel
  31. 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
    ExternalTreeModelTreeModel
  32. def remove(pathToRemove: Path[A]): Boolean
    Definition Classes
    ExternalTreeModelTreeModel
  33. 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]
  34. def roots: Seq[A]
    Definition Classes
    ExternalTreeModelTreeModel
  35. def siblingsUnder(parentPath: Path[A]): Seq[A]
    Attributes
    protected
    Definition Classes
    TreeModel
  36. def size: Int
    Definition Classes
    TreeModel
  37. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  38. def toInternalModel: InternalTreeModel[A]
    Definition Classes
    ExternalTreeModelTreeModel
  39. def toString(): String
    Definition Classes
    AnyRef → Any
  40. def treePathToPath(tp: TreePath): Path[A]
    Definition Classes
    ExternalTreeModelTreeModel
  41. def unpackNode(node: Any): A
    Definition Classes
    TreeModel
  42. 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
    ExternalTreeModelTreeModel
  43. 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]
  44. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  45. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from TreeModel[A]

Inherited from AnyRef

Inherited from Any

Ungrouped