|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface HierarchicalItem
HierarchicalItem.java
Classes wishing to be treated as part of a hierarchical data structure need to implement this interface
| Method Summary | |
|---|---|
Object |
getData()
get the data of this item |
Object |
getId()
get the id of this item |
Object |
getParentId()
get the id of the parent of this item |
boolean |
isRoot()
determine if this item is a root item, i.e. has no parent items |
void |
setData(Object data)
set the data of this item |
void |
setId(Object id)
set the id of this item |
void |
setParentId(Object parentId)
set the id of the parent of this item |
| Method Detail |
|---|
void setData(Object data)
data - the item's dataObject getData()
void setId(Object id)
id - the id of this itemObject getId()
Object getParentId()
void setParentId(Object parentId)
parentId - the parent id of this itemboolean isRoot()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||