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 TreeNode
TreeNode getChildAt(int childIndex)
getChildAt
in interface TreeNode
int getChildCount()
getChildCount
in interface TreeNode
int getIndex(TreeNode node)
TreeNode getParent()
boolean isLeaf()
void insert(MutableTreeNode child, int index)
insert
in interface MutableTreeNode
void remove(int index)
remove
in interface MutableTreeNode
void remove(MutableTreeNode node)
remove
in interface MutableTreeNode
void removeFromParent()
removeFromParent
in interface MutableTreeNode
void setParent(MutableTreeNode parent)
setParent
in interface MutableTreeNode
void setUserObject(Object object)
setUserObject
in interface MutableTreeNode
void setFolder(boolean isFolder)
void setProject(boolean isProject)
void setWorkspace(boolean isWorkspace)
boolean isFolder()
boolean isProject()
boolean isWorkspace()
void update()
IProjectTreeModel getModel()