public class DBTreeModel extends Object implements org.databene.commons.TreeModel<DBObject>
TreeModel adapter for the hierarchy formed by the Composite pattern of
DBObject and CompositeDBObject.| Constructor and Description |
|---|
DBTreeModel(CompositeDBObject<?> root) |
public DBTreeModel(CompositeDBObject<?> root)
public DBObject getRoot()
getRoot in interface org.databene.commons.TreeModel<DBObject>public DBObject getParent(DBObject child)
getParent in interface org.databene.commons.TreeModel<DBObject>public boolean isLeaf(DBObject node)
isLeaf in interface org.databene.commons.TreeModel<DBObject>public int getChildCount(DBObject parent)
getChildCount in interface org.databene.commons.TreeModel<DBObject>public DBObject getChild(DBObject parent, int index)
getChild in interface org.databene.commons.TreeModel<DBObject>Copyright © 2006–2014 Volker Bergmann. All rights reserved.