yu.ac.bg.etf.javaqx.qswing.tree
Interface MutableTreeNode

All Superinterfaces:
TreeNode
All Known Implementing Classes:
DefaultMutableTreeNode

public interface MutableTreeNode
extends TreeNode

Mutable Tree Node Interface.

Version:
0.2.0
Author:
Slobodan Vrkacevic (slobodan.vrkacevic@gmail.com)

Method Summary
 void insert(MutableTreeNode child, int index)
          Inserts specified child at specified index.
 void remove(int index)
          Removes child at the specified index.
 void remove(MutableTreeNode node)
          Removes specified node.
 void removeFromParent()
          Removes the node form its parent.
 void setParent(MutableTreeNode parent)
          Sets the parent of the node.
 void setUserObject(java.lang.Object object)
          Sets user object.
 
Methods inherited from interface yu.ac.bg.etf.javaqx.qswing.tree.TreeNode
children, getAllowsChildren, getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Method Detail

insert

public void insert(MutableTreeNode child,
                   int index)
Inserts specified child at specified index.

Parameters:
child - the child
index - the index

remove

public void remove(int index)
Removes child at the specified index.

Parameters:
index - the index

remove

public void remove(MutableTreeNode node)
Removes specified node.

Parameters:
node - the node

setParent

public void setParent(MutableTreeNode parent)
Sets the parent of the node.

Parameters:
parent - the new parent

removeFromParent

public void removeFromParent()
Removes the node form its parent.


setUserObject

public void setUserObject(java.lang.Object object)
Sets user object.

Parameters:
object - the object


Copyright © 2007 ETF and contributors. All Rights Reserved.