org.databene.commons
Interface TreeModel<E>

All Known Implementing Classes:
ChildTreeModel, DefaultTreeModel, FileTreeModel

public interface TreeModel<E>

Models a typed tree logic.

Created: 08.05.2007 18:30:55


Method Summary
 E getChild(E parent, int index)
           
 int getChildCount(E parent)
           
 int getIndexOfChild(E parent, E child)
           
 E getParent(E child)
           
 E getRoot()
           
 boolean isLeaf(E node)
           
 

Method Detail

getRoot

E getRoot()

getParent

E getParent(E child)

getChild

E getChild(E parent,
           int index)

getChildCount

int getChildCount(E parent)

isLeaf

boolean isLeaf(E node)

getIndexOfChild

int getIndexOfChild(E parent,
                    E child)


Copyright © 2010. All Rights Reserved.