U - the type of the tree item datapublic class TreeItemImpl.TreeItemDataImpl<U> extends java.lang.Object implements TreeItemData<U>
TreeItemData for TreeItemImpl.| Constructor and Description |
|---|
TreeItemDataImpl(TypedObject<U> data) |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<TreeContribution<? super U>> |
contributions()
Get all the contributions which should be applied to a tree item, in order
from most to least specific.
|
<V extends TreeContribution<? super U>> |
contributions(TypeToken<V> 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.
|
java.util.Optional<TreeItemData<?>> |
parent() |
void |
refresh(boolean recursive)
Refresh the tree cell associated with this tree item.
|
protected void |
refreshContributions() |
ModularTreeView |
treeView() |
TypedObject<U> |
typedData() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdata, typepublic TreeItemDataImpl(TypedObject<U> data)
data - the typed data for this tree item data objectpublic ModularTreeView treeView()
treeView in interface TreeItemData<U>public TypedObject<U> typedData()
typedData in interface TreeItemData<U>public java.util.Optional<TreeItemData<?>> parent()
parent in interface TreeItemData<U>TreeItemData interface over the parent nodeprotected void refreshContributions()
public java.util.stream.Stream<TreeContribution<? super U>> contributions()
TreeItemDatacontributions in interface TreeItemData<U>public <V extends TreeContribution<? super U>> java.util.stream.Stream<V> contributions(TypeToken<V> type)
TreeItemDatacontributions in interface TreeItemData<U>V - the type of contributiontype - the type of contributionpublic void refresh(boolean recursive)
TreeItemDatarefresh in interface TreeItemData<U>recursive - true if the item's children should also be refreshed recursively,
false otherwise