public class AncestorView<N> extends SimpleView<N>
objectInView
mTree
Constructor and Description |
---|
AncestorView(Tree<N> pTree,
N pRootView)
Creates a AncestorView that includes all
ancestor of the
rootItem . |
AncestorView(Tree<N> pTree,
N pRootView,
boolean pIncludeRoot)
Creates a AncestorView that includes all
ancestor of the
rootItem up to a given height . |
AncestorView(Tree<N> pTree,
N pRootView,
int pHeight)
Creates a AncestorView that includes all
ancestor of the
rootItem up to a given height . |
AncestorView(Tree<N> pTree,
N pRootView,
int pHeight,
boolean pIncludeRoot)
Creates a AncestorView that includes all
ancestor of the
rootItem up to a given height . |
Modifier and Type | Method and Description |
---|---|
boolean |
isItemInView(N pItem)
Returns
true if the specified item is in View |
Walker |
walker()
Return Walker to traverse the originating tree, traversing only the items in the view.
|
exclude, getTree, include, iterator, relationships
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public AncestorView(Tree<N> pTree, N pRootView)
rootItem
.public AncestorView(Tree<N> pTree, N pRootView, int pHeight)
rootItem
up to a given height
.public AncestorView(Tree<N> pTree, N pRootView, boolean pIncludeRoot)
rootItem
up to a given height
.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- 2021 Escenic AS