foundation
1.0.0-SNAPSHOT
jvm
foundation
/
org.jetbrains.jewel.foundation.tree
/
ChildrenGeneratorScope
Children
Generator
Scope
class
ChildrenGeneratorScope
<
T
>
(
parentNode
:
Tree.Element.Node
<
T
>
)
Members
Constructors
Children
Generator
Scope
Link copied to clipboard
constructor
(
parentNode
:
Tree.Element.Node
<
T
>
)
Types
Parent
Info
Link copied to clipboard
data
class
ParentInfo
<
T
>
(
val
data
:
T
,
val
depth
:
Int
,
val
index
:
Int
)
Properties
parent
Link copied to clipboard
val
parent
:
ChildrenGeneratorScope.ParentInfo
<
T
>
Functions
add
Link copied to clipboard
fun
add
(
element
:
TreeBuilder.Element
<
T
>
)
add
Leaf
Link copied to clipboard
fun
addLeaf
(
data
:
T
,
id
:
Any
=
data.hashCode()
)
add
Node
Link copied to clipboard
fun
addNode
(
data
:
T
,
id
:
Any
=
data.hashCode()
,
isOpen
:
Boolean
=
false
,
childrenGenerator
:
ChildrenGeneratorScope
<
T
>
.
(
)
->
Unit
=
{ }
)