Modifier and Type | Class and Description |
---|---|
static class |
RelationTreeModel.BrowseAction |
static class |
RelationTreeModel.NodeDescriptionTriple |
Constructor and Description |
---|
RelationTreeModel(PrologEngine engine,
String relationFunctor,
Object root) |
Modifier and Type | Method and Description |
---|---|
void |
addTreeModelListener(TreeModelListener l) |
static void |
browseRelation(PrologEngine engine,
String relationFunctor,
Object top) |
static ObjectExamplePair |
example() |
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) |
public RelationTreeModel(PrologEngine engine, String relationFunctor, Object root)
public static void browseRelation(PrologEngine engine, String relationFunctor, Object top)
public int getChildCount(Object parent)
getChildCount
in interface TreeModel
public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged
in interface TreeModel
public int getIndexOfChild(Object parent, Object child)
getIndexOfChild
in interface TreeModel
public void addTreeModelListener(TreeModelListener l)
addTreeModelListener
in interface TreeModel
public void removeTreeModelListener(TreeModelListener l)
removeTreeModelListener
in interface TreeModel
public static ObjectExamplePair example()