viewtify.ui
UITreeItem
<T
>
T
>T
value
()
T
T |
Get the associated value.
createItem
(R
value
)
UITreeItemR
R
value
)R
R |
|
R value |
A child item value. |
UITreeItem |
A created item. |
Create a child item at last with value.
createItemIfAbsent
(R
value
)
UITreeItemR
R
value
)R
R |
|
R value |
A child item value. |
UITreeItem |
A created item. |
Create a child item at last with value if the specified value is not associated.
expand
(boolean
value
)
UITreeItemT
boolean
value
)T
boolean value |
If this TreeItem has children, calling setExpanded with |
UITreeItem |
Sets the expanded state of this TreeItem. This has no effect on a TreeItem with no children. On a TreeItem with children however, the result of toggling this property is that visually the children will either become visible or hidden, based on whether expanded is set to true or false.
removeWhen
(kiss.Signal
timing
)
UITreeItemT
kiss.Signal
timing
)T
kiss.Signal timing |
|
UITreeItem |
Remove this item from parent when the specified Signal emits first signal.
removeWhen
(FunctionT
, kiss.Signal
timing
)
UITreeItemT
FunctionT
, kiss.Signal
timing
)T
Function timing |
|
UITreeItem |
Remove this item from parent when the specified Signal emits first signal.
removeWhenEmpty
()
UITreeItemT
T
UITreeItem |
Remove this item from parent when this item has no child.