|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NAryTreeNodeModel
Field Summary | |
---|---|
static java.lang.String |
id
|
static java.lang.String |
type
|
Method Summary | |
---|---|
void |
addChild(NAryTreeNode child)
Adds a child node to this node's list of children. |
java.lang.String |
getID()
Returns the id for this node. |
int |
getLevel()
Returns the level of this node. |
java.lang.String |
getType()
Returns a type-string for this node. |
void |
removeChild(NAryTreeNode child)
Removed the child from this node's list of children. |
void |
setID(java.lang.String id)
Sets an id or name for this node. |
void |
setType(java.lang.String type)
Sets a type for this node (could be used for coloring) |
Methods inherited from interface javax.swing.tree.TreeNode |
---|
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf |
Field Detail |
---|
static final java.lang.String id
static final java.lang.String type
Method Detail |
---|
void addChild(NAryTreeNode child)
child
- the child to be addedvoid removeChild(NAryTreeNode child)
child
- the child to be removed.void setID(java.lang.String id)
id
- identifier for this node.java.lang.String getID()
java.lang.String getType()
void setType(java.lang.String type)
type
- a String representing the type of this node.int getLevel()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |