toggle menu
doodle
0.10.3
common
switch theme
search in API
controls
/
io.nacular.doodle.controls.tree
/
MutableTreeModel
Mutable
Tree
Model
interface
MutableTreeModel
<
T
>
:
DynamicTreeModel
<
T
>
(
source
)
Inheritors
SimpleMutableTreeModel
Members
Members & Extensions
Inherited properties
changed
Link copied to clipboard
abstract
val
changed
:
Pool
<
ModelObserver
<
T
>
>
Functions
add
Link copied to clipboard
abstract
fun
add
(
path
:
Path
<
Int
>
,
value
:
T
)
add
All
Link copied to clipboard
abstract
fun
addAll
(
path
:
Path
<
Int
>
,
values
:
Collection
<
T
>
)
clear
Link copied to clipboard
abstract
fun
clear
(
)
remove
All
At
Link copied to clipboard
abstract
fun
removeAllAt
(
paths
:
Collection
<
Path
<
Int
>
>
)
remove
At
Link copied to clipboard
abstract
fun
removeAt
(
path
:
Path
<
Int
>
)
:
Result
<
T
>
set
Link copied to clipboard
abstract
operator
fun
set
(
path
:
Path
<
Int
>
,
value
:
T
)
:
Result
<
T
>
Inherited functions
child
Link copied to clipboard
abstract
fun
child
(
of
:
Path
<
Int
>
,
path
:
Int
)
:
Result
<
T
>
children
Link copied to clipboard
abstract
fun
children
(
parent
:
Path
<
Int
>
)
:
Iterator
<
T
>
get
Link copied to clipboard
abstract
operator
fun
get
(
path
:
Path
<
Int
>
)
:
Result
<
T
>
index
Of
Child
Link copied to clipboard
abstract
fun
indexOfChild
(
parent
:
Path
<
Int
>
,
child
:
T
)
:
Int
is
Empty
Link copied to clipboard
abstract
fun
isEmpty
(
)
:
Boolean
is
Leaf
Link copied to clipboard
abstract
fun
isLeaf
(
node
:
Path
<
Int
>
)
:
Boolean
is
Not
Empty
Link copied to clipboard
open
fun
isNotEmpty
(
)
:
Boolean
map
Link copied to clipboard
fun
<
T
,
R
>
TreeModel
<
T
>
.
map
(
mapper
:
(
T
)
->
R
)
:
TreeModel
<
R
>
num
Children
Link copied to clipboard
abstract
fun
numChildren
(
of
:
Path
<
Int
>
)
:
Int