scalaswingcontrib.tree

ExternalTreeModel

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
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

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

Type Members

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def breadthFirstIterator: Iterator[A]

    Definition Classes
    TreeModel
  8. def clone(): AnyRef

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

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

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

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

    Definition Classes
    ExternalTreeModelTreeModel
  13. def finalize(): Unit

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

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

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

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

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

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

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

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

    Definition Classes
    ExternalTreeModelTreeModel
  23. def isExternalModel: Boolean

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

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

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

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

  28. def map[B](f: (A) ⇒ B): InternalTreeModel[B]

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

    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

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

    Definition Classes
    ExternalTreeModelTreeModel
  33. 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
  34. def remove(pathToRemove: Path[A]): Boolean

    Definition Classes
    ExternalTreeModelTreeModel
  35. 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[scalaswingcontrib.tree]
  36. def roots: Seq[A]

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

    Attributes
    protected
    Definition Classes
    TreeModel
  38. def size: Int

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

    Definition Classes
    AnyRef
  40. def toInternalModel: InternalTreeModel[A]

    Definition Classes
    ExternalTreeModelTreeModel
  41. def toString(): String

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

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

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TreeModel[A]

Inherited from AnyRef

Inherited from Any

Ungrouped