Package com.cosylab.vdct.rdb
Class RdbDataTreeModel
- java.lang.Object
-
- com.cosylab.vdct.rdb.RdbDataTreeModel
-
- All Implemented Interfaces:
TreeModel
public class RdbDataTreeModel extends Object implements TreeModel
Implements TreeModel in order to support late evaluation: "Children" are only fetched when asked for. If this had been based on the DefaultTreeModel, the whole group database would have to be read into the model from the very beginning, which could be a huge amount of data. Root is just a Vector (of IOCNodes). Currently only difference to Vector: toString representation Default was toString of all the elements
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
debug
-
Constructor Summary
Constructors Constructor Description RdbDataTreeModel(RdbDataMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addTreeModelListener(TreeModelListener l)
Object
getChild(Object parent, int index)
int
getChildCount(Object parent)
int
getIndexOfChild(Object parent, Object child)
Object
getRoot()
boolean
isLeaf(Object node)
void
removeTreeModelListener(TreeModelListener l)
void
valueForPathChanged(TreePath path, Object newValue)
-
-
-
Field Detail
-
debug
public static final boolean debug
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RdbDataTreeModel
public RdbDataTreeModel(RdbDataMapper mapper)
- Parameters:
mapper
- mapper
-
-
Method Detail
-
getChildCount
public int getChildCount(Object parent)
- Specified by:
getChildCount
in interfaceTreeModel
-
getIndexOfChild
public int getIndexOfChild(Object parent, Object child)
- Specified by:
getIndexOfChild
in interfaceTreeModel
-
valueForPathChanged
public void valueForPathChanged(TreePath path, Object newValue)
- Specified by:
valueForPathChanged
in interfaceTreeModel
-
addTreeModelListener
public void addTreeModelListener(TreeModelListener l)
- Specified by:
addTreeModelListener
in interfaceTreeModel
-
removeTreeModelListener
public void removeTreeModelListener(TreeModelListener l)
- Specified by:
removeTreeModelListener
in interfaceTreeModel
-
-