public class RecursiveView<N> extends SimpleView<N>
objectInView
mTree
Constructor and Description |
---|
RecursiveView(Tree<N> pTree,
N rootItem)
Creates a RecursiveView that includes all
decendants of the
rootItem . |
RecursiveView(Tree<N> pTree,
N rootItem,
boolean includeRoot)
Creates a RecursiveView that includes all
decendants of the
rootItem , but you can remove the
rootItem from the View . |
RecursiveView(Tree<N> pTree,
N rootItem,
int depth)
Creates a RecursiveView that includes the
rootItem ,
but only down to a set depth . |
RecursiveView(Tree<N> pTree,
N rootItem,
int depth,
boolean includeRoot)
Creates a RecursiveView with limitations in depth.
|
RecursiveView(Tree<N> pTree,
N rootItem,
int depth,
int children)
Creates a RecursiveView with limitations in: depth and children.
|
RecursiveView(Tree<N> pTree,
N rootItem,
int depth,
int children,
boolean includeRoot)
Creates a RecursiveView with limitations in: depth, children and
whether or not to include the rootItem.
|
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 RecursiveView(Tree<N> pTree, N rootItem)
rootItem
.public RecursiveView(Tree<N> pTree, N rootItem, boolean includeRoot)
rootItem
, but you can remove the
rootItem
from the View
.public RecursiveView(Tree<N> pTree, N rootItem, int depth)
rootItem
,
but only down to a set depth
. All siblings on a given
depth
is included in this View
.public RecursiveView(Tree<N> pTree, N rootItem, int depth, int children)
public RecursiveView(Tree<N> pTree, N rootItem, int depth, boolean includeRoot)
rootItem
from the View
.public RecursiveView(Tree<N> pTree, N rootItem, int depth, int children, boolean includeRoot)
pTree
- the Tree
to get the View
from.rootItem
- the item to use as the base for the View
.depth
- the number of levels to include in this view. Setting this to
1
gives you the direct siblings of the rootItemchildren
- the maximum number of children to include from each node.includeRoot
- set to true
to include the rootItempublic 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