T
- the type of data item to apply topublic interface TreeContribution<T>
ModularTreeView
. Tree
contributions may optionally extend interfaces such as
TreeTextContribution
, TreeCellContribution
, and
TreeChildContribution
to provide behavior and information for the
tree items which the contribution applies to.
Tree items may apply to all items in a tree of the appropriate
type
, and which also satisfy any condition specified
via implementation of appliesTo(TreeItemData)
.
Modifier and Type | Method and Description |
---|---|
default <U extends T> |
appliesTo(TreeItemData<U> data)
Determine whether the contribution should be applied to the given data item.
|
default TypeToken<T> |
getDataType()
Get the type of item which the contribution applies to.
|
default TypeToken<T> getDataType()
default <U extends T> boolean appliesTo(TreeItemData<U> data)
getDataType()
has
checked against the exact item type.U
- the specific type of the tree itemdata
- a data item in the tree