|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.ccd.ui.portlets.catalog.CatalogTree
public class CatalogTree
This class Constructs a logical tree structure which represents Catalog, Categories and Items. The item is the leaf in this catalog tree
Field Summary | |
---|---|
static int |
CATALOG
|
static int |
CATEGORY
|
static int |
HIERARCHY
|
static int |
ITEM
|
static int |
ROOT
|
static int |
UNASSIGNED
|
Constructor Summary | |
---|---|
CatalogTree()
Creates a Catalog Tree with root node |
Method Summary | |
---|---|
void |
add(ItemNodeCatalog child)
|
void |
addChild(ItemNodeCatalog parent,
ItemNodeCatalog child)
Add child node to this parent node |
ItemNodeCatalog |
getRoot()
Return the root node of the tree |
void |
removeChild(ItemNodeCatalog child)
Removes this node from its Parent Node |
ItemNodeCatalog |
searchNode(ItemNodeCatalog start,
ItemNodeCatalog search)
|
ItemNodeCatalog |
searchNode(ItemNodeCatalog start,
java.lang.String id)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ROOT
public static final int CATALOG
public static final int CATEGORY
public static final int ITEM
public static final int HIERARCHY
public static final int UNASSIGNED
Constructor Detail |
---|
public CatalogTree()
Method Detail |
---|
public ItemNodeCatalog searchNode(ItemNodeCatalog start, java.lang.String id)
start
- search for the item from this nodeid
- search by item id
public ItemNodeCatalog searchNode(ItemNodeCatalog start, ItemNodeCatalog search)
public ItemNodeCatalog getRoot()
public void add(ItemNodeCatalog child)
public void addChild(ItemNodeCatalog parent, ItemNodeCatalog child)
parent
- child
- public void removeChild(ItemNodeCatalog child)
child
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |