public class AdvancedCategoryTreeModel
extends <any>
| Constructor and Description |
|---|
AdvancedCategoryTreeModel(CategoryTreeNode categoryTreeNode) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(<any> parent,
<any>[] newChildren)
Append
newChildren nodes to parent node |
protected boolean |
containsCategory(<any> parent,
Category category)
Returns true/false whether or not the
parent tree node contains the category
somewhere in its children (recursively). |
void |
insert(<any> parent,
int start,
int end,
<any>[] newChildren)
Insert
newChildren nodes to parent node with indexes between start and
end |
void |
remove(<any> node)
Remove child node from
parent |
void |
remove(<any> parent,
int start,
int end)
Remove child nodes from
parent with index between start and end |
protected <any> |
searchForCategoryInParent(<any> parent,
Category category)
Returns
DefaultTreeNode under the parent tree node containing the category
(recursively). |
protected <any> |
searchParentNode(<any> parent,
<any> child) |
public AdvancedCategoryTreeModel(CategoryTreeNode categoryTreeNode)
public void add(<any> parent,
<any>[] newChildren)
newChildren nodes to parent nodeparent - The parent node to which children nodes are appendednewChildren - New nodes which are appendedpublic void remove(<any> parent,
int start,
int end)
parent with index between start and endparent - The parent node from which children nodes are removedstart - The start index of the removed nodesend - The end of the index removed nodesjava.lang.IndexOutOfBoundsException - - start less than zero or end greater than the number of child nodespublic void remove(<any> node)
parentnode - the child node to be removedjava.lang.IndexOutOfBoundsExceptionpublic void insert(<any> parent,
int start,
int end,
<any>[] newChildren)
newChildren nodes to parent node with indexes between start and
endparent - The parent node to which children nodes are insertedstart - The start index of the inserted nodesend - The end of the index inserted nodesnewChildren - New nodes to be insertedjava.lang.IndexOutOfBoundsException - - start less than zero or end greater than the number of child nodesprotected <any> searchParentNode(<any> parent,
<any> child)
protected boolean containsCategory(<any> parent,
Category category)
parent tree node contains the category
somewhere in its children (recursively).parent - The parent node of the tree where the category is to be foundcategory - The category being searched forprotected <any> searchForCategoryInParent(<any> parent,
Category category)
DefaultTreeNode under the parent tree node containing the category
(recursively).parent - The parent node of the tree where the category is to be foundcategory - The category being searched forCopyright © 2018 SAP SE. All Rights Reserved.