javax.swing.tree

Interface TreeModel

public interface TreeModel

TreeModel public interface
Method Summary
voidaddTreeModelListener(TreeModelListener listener)
addTreeModelListener
ObjectgetChild(Object parent, int index)
getChild
intgetChildCount(Object parent)
getChildCount
intgetIndexOfChild(Object parent, Object child)
getIndexOfChild
ObjectgetRoot()
getRoot
booleanisLeaf(Object node)
isLeaf
voidremoveTreeModelListener(TreeModelListener listener)
removeTreeModelListener
voidvalueForPathChanged(TreePath path, Object newvalue)
valueForPathChanged

Method Detail

addTreeModelListener

public void addTreeModelListener(TreeModelListener listener)
addTreeModelListener

Parameters: listener TODO

getChild

public Object getChild(Object parent, int index)
getChild

Parameters: parent TODO index TODO

UNKNOWN: Object

getChildCount

public int getChildCount(Object parent)
getChildCount

Parameters: parent TODO

UNKNOWN: int

getIndexOfChild

public int getIndexOfChild(Object parent, Object child)
getIndexOfChild

Parameters: parent TODO child TODO

UNKNOWN: int

getRoot

public Object getRoot()
getRoot

UNKNOWN: Object

isLeaf

public boolean isLeaf(Object node)
isLeaf

Parameters: node TODO

UNKNOWN: boolean

removeTreeModelListener

public void removeTreeModelListener(TreeModelListener listener)
removeTreeModelListener

Parameters: listener TODO

valueForPathChanged

public void valueForPathChanged(TreePath path, Object newvalue)
valueForPathChanged

Parameters: path TODO newvalue TODO