featureful
Toggle table of contents
jvm
Platform filter
jvm
Switch theme
Search in API
featureful
featureful
/
uk.co.nickthecoder.featureful.behaviour.tree
/
TreeItem
Tree
Item
open
class
TreeItem
(
text
:
String
,
val
contexts
:
List
<
Context
>
)
Inheritors
FileTreeItem
Members
Constructors
Tree
Item
Link copied to clipboard
constructor
(
text
:
String
,
vararg
contexts
:
Context
)
constructor
(
text
:
String
,
contexts
:
List
<
Context
>
)
Properties
colored
Icon
Link copied to clipboard
var
coloredIcon
:
Boolean
contexts
Link copied to clipboard
open
val
contexts
:
List
<
Context
>
description
Link copied to clipboard
var
description
:
String
?
Used as a tooltip.
null
for no tooltip.
expanded
Link copied to clipboard
var
expanded
:
Boolean
expanded
Property
Link copied to clipboard
val
expandedProperty
:
BoolProperty
icon
Name
Link copied to clipboard
var
iconName
:
String
?
leaf
Link copied to clipboard
var
leaf
:
Boolean
parent
Link copied to clipboard
var
parent
:
TreeItem
?
text
Link copied to clipboard
var
text
:
String
Functions
add
Link copied to clipboard
fun
add
(
child
:
TreeItem
)
fun
add
(
index
:
Int
,
child
:
TreeItem
)
children
Link copied to clipboard
fun
children
(
)
:
List
<
TreeItem
>
clear
Link copied to clipboard
fun
clear
(
)
description
Link copied to clipboard
fun
description
(
text
:
String
)
:
TreeItem
icon
Link copied to clipboard
fun
icon
(
name
:
String
)
:
TreeItem
fun
icon
(
name
:
String
,
colored
:
Boolean
)
:
TreeItem
is
Empty
Link copied to clipboard
fun
isEmpty
(
)
:
Boolean
remove
Link copied to clipboard
fun
remove
(
child
:
TreeItem
)
remove
At
Link copied to clipboard
fun
removeAt
(
index
:
Int
)
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String