toggle menu
doodle
0.10.3
common
switch theme
search in API
controls
/
io.nacular.doodle.controls.tree
/
SimpleTreeModel
Simple
Tree
Model
open
class
SimpleTreeModel
<
T
,
N
:
TreeNode
<
T
>
>
(
val
root
:
N
)
:
TreeModel
<
T
>
(
source
)
Inheritors
SimpleMutableTreeModel
Members
Members & Extensions
Constructors
Simple
Tree
Model
Link copied to clipboard
constructor
(
root
:
N
)
Properties
root
Link copied to clipboard
protected
val
root
:
N
Functions
child
Link copied to clipboard
open
override
fun
child
(
of
:
Path
<
Int
>
,
path
:
Int
)
:
Result
<
T
>
children
Link copied to clipboard
open
override
fun
children
(
parent
:
Path
<
Int
>
)
:
Iterator
<
T
>
get
Link copied to clipboard
open
operator override
fun
get
(
path
:
Path
<
Int
>
)
:
Result
<
T
>
index
Of
Child
Link copied to clipboard
open
override
fun
indexOfChild
(
parent
:
Path
<
Int
>
,
child
:
T
)
:
Int
is
Empty
Link copied to clipboard
open
override
fun
isEmpty
(
)
:
Boolean
is
Leaf
Link copied to clipboard
open
override
fun
isLeaf
(
node
:
Path
<
Int
>
)
:
Boolean
num
Children
Link copied to clipboard
open
override
fun
numChildren
(
of
:
Path
<
Int
>
)
:
Int
Inherited functions
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
>