T
- the type of the datapublic interface TreeItemData<T>
TreeItem
for a
ModularTreeView
. It provides access to the actual typed data of each
node, as well as to the contributions which apply to that node, and the
item data
of the parent.Modifier and Type | Method and Description |
---|---|
java.util.stream.Stream<TreeContribution<? super T>> |
contributions()
Get all the contributions which should be applied to a tree item, in order
from most to least specific.
|
<U extends TreeContribution<? super T>> |
contributions(TypeToken<U> type)
Get all contributions which should be applied to a tree item and which
match a given type, in order from most to least specific.
|
default T |
data() |
java.util.Optional<TreeItemData<?>> |
parent() |
void |
refresh(boolean recursive)
Refresh the tree cell associated with this tree item.
|
ModularTreeView |
treeView() |
default TypeToken<?> |
type() |
TypedObject<T> |
typedData() |
TypedObject<T> typedData()
default T data()
default TypeToken<?> type()
java.util.Optional<TreeItemData<?>> parent()
TreeItemData
interface over the parent nodeModularTreeView treeView()
java.util.stream.Stream<TreeContribution<? super T>> contributions()
<U extends TreeContribution<? super T>> java.util.stream.Stream<U> contributions(TypeToken<U> type)
U
- the type of contributiontype
- the type of contributionvoid refresh(boolean recursive)
recursive
- true if the item's children should also be refreshed recursively,
false otherwise