public interface IProjectTreeNode extends MutableTreeNode, TreeNode
| Modifier and Type | Method and Description |
|---|---|
Enumeration |
children()
This methode returns an Enumeration over all childnodes of this node, or null
it the node has no childs.
|
boolean |
getAllowsChildren()
Returns true if the node is a folder, else false.
|
TreeNode |
getChildAt(int childIndex)
Returns the child at position childIndex.
|
int |
getChildCount()
Returns the number of childs of this node.
|
int |
getIndex(TreeNode node)
Returns the index-number of the given node.
|
IProjectTreeModel |
getModel() |
TreeNode |
getParent()
Returns the parent of this node.
|
void |
insert(MutableTreeNode child,
int index)
Inserts the node child as child of this node.
|
boolean |
isFolder() |
boolean |
isLeaf()
Returns true if this node has no childs.
|
boolean |
isProject() |
boolean |
isWorkspace() |
void |
remove(int index)
Removes the child at position index.
|
void |
remove(MutableTreeNode node)
Removes the child node.
|
void |
removeFromParent()
Removes this node from its parent.
|
void |
setFolder(boolean isFolder)
Sets or removes the flag that this node represents a project.
|
void |
setParent(MutableTreeNode parent)
Adds this node to a new parent.
|
void |
setProject(boolean isProject)
Sets or removes the flag that this node represents a project.
|
void |
setUserObject(Object object)
Set a userobject.
|
void |
setWorkspace(boolean isWorkspace)
Sets or removes the flag that this node represents a workspace.
|
void |
update() |
Enumeration children()
boolean getAllowsChildren()
getAllowsChildren in interface TreeNodeTreeNode getChildAt(int childIndex)
getChildAt in interface TreeNodeint getChildCount()
getChildCount in interface TreeNodeint getIndex(TreeNode node)
TreeNode getParent()
boolean isLeaf()
void insert(MutableTreeNode child, int index)
insert in interface MutableTreeNodevoid remove(int index)
remove in interface MutableTreeNodevoid remove(MutableTreeNode node)
remove in interface MutableTreeNodevoid removeFromParent()
removeFromParent in interface MutableTreeNodevoid setParent(MutableTreeNode parent)
setParent in interface MutableTreeNodevoid setUserObject(Object object)
setUserObject in interface MutableTreeNodevoid setFolder(boolean isFolder)
void setProject(boolean isProject)
void setWorkspace(boolean isWorkspace)
boolean isFolder()
boolean isProject()
boolean isWorkspace()
void update()
IProjectTreeModel getModel()