public class SiblingView<N> extends SimpleView<N>
View
that only contains siblings of a given node.
It's possible to influence the number of siblings of the node
to include.
Use the different constructors to create a SibilingView that suits your needs.
objectInView
mTree
Constructor and Description |
---|
SiblingView(Tree<N> pTree,
N pRootNode)
Creates a
View that gives you all the siblings of a given
item. |
SiblingView(Tree<N> pTree,
N pRootItem,
int pWidth)
Creates a
View that gives you a subset of the siblings of a given
item. |
Modifier and Type | Method and Description |
---|---|
boolean |
isItemInView(N pItem)
Returns
true if the specified item is in View |
exclude, getTree, include, iterator, relationships, walker
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public SiblingView(Tree<N> pTree, N pRootNode)
View
that gives you all the siblings of a given
item.public boolean isItemInView(N pItem)
View
true
if the specified item is in View
isItemInView
in interface View<N>
isItemInView
in class SimpleView<N>
pItem
- the item you want to check to see if it's in the
Viewtrue
if pItem is in View
,
false
otherwise.© 1998- 2018 Stibo DX