Class/Object

scalaswingcontrib.tree

ExternalTreeModel

Related Docs: object ExternalTreeModel | package tree

Permalink

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. All

Instance Constructors

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

    Permalink

Type Members

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

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def breadthFirstIterator: Iterator[A]

    Permalink
    Definition Classes
    TreeModel
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def depthFirstIterator: Iterator[A]

    Permalink
    Definition Classes
    TreeModel
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def filter(p: (A) ⇒ Boolean): ExternalTreeModel[A]

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def foreach[U](f: (A) ⇒ U): Unit

    Permalink
    Definition Classes
    TreeModel
  13. def getChildPathsOf(parentPath: Path[A]): Seq[Path[A]]

    Permalink
    Definition Classes
    TreeModel
  14. def getChildrenOf(parentPath: Path[A]): Seq[A]

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. def insertAfter(path: Path[A], newValue: A): Boolean

    Permalink
    Definition Classes
    TreeModel
  18. def insertBefore(path: Path[A], newValue: A): Boolean

    Permalink
    Definition Classes
    TreeModel
  19. val insertFunc: (Path[A], A, Int) ⇒ Boolean

    Permalink

    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[scalaswingcontrib.tree]
  20. def insertUnder(parentPath: Path[A], newValue: A, index: Int): Boolean

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  21. def isExternalModel: Boolean

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def makeInsertableWith(effectfulInsert: (Path[A], A, Int) ⇒ Boolean): ExternalTreeModel[A]

    Permalink
  24. def makeRemovableWith(effectfulRemove: (Path[A]) ⇒ Boolean): ExternalTreeModel[A]

    Permalink
  25. def makeUpdatableWith(effectfulUpdate: (Path[A], A) ⇒ A): ExternalTreeModel[A]

    Permalink

    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]

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  27. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  28. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. def pathToTreePath(path: Path[A]): TreePath

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  31. lazy val peer: ExternalTreeModelPeer

    Permalink

    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

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  33. val removeFunc: (Path[A]) ⇒ Boolean

    Permalink

    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[scalaswingcontrib.tree]
  34. def roots: Seq[A]

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  35. def siblingsUnder(parentPath: Path[A]): Seq[A]

    Permalink
    Attributes
    protected
    Definition Classes
    TreeModel
  36. def size: Int

    Permalink
    Definition Classes
    TreeModel
  37. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  38. def toInternalModel: InternalTreeModel[A]

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. def treePathToPath(tp: TreePath): Path[A]

    Permalink
    Definition Classes
    ExternalTreeModelTreeModel
  41. def unpackNode(node: Any): A

    Permalink
    Definition Classes
    TreeModel
  42. def update(path: Path[A], newValue: A): Unit

    Permalink

    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

    Permalink

    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[scalaswingcontrib.tree]
  44. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TreeModel[A]

Inherited from AnyRef

Inherited from Any

Ungrouped