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.
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.
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.
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.
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.
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.
Represents tree data as a sequence of root nodes, and a function that can retrieve child nodes.