| Constructor and Description |
|---|
FSTreeModel()
Constructor for FSTreeModel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTreeModelListener(TreeModelListener arg0)
Adds the tree model listener.
|
Object |
getChild(Object parent,
int index)
Gets the child.
|
int |
getChildCount(Object parent)
Gets the child count.
|
List<FSNode> |
getFSs()
Gets the f ss.
|
int |
getIndexOfChild(Object parent,
Object child)
Gets the index of child.
|
Object |
getRoot()
Gets the root.
|
boolean |
isLeaf(Object node)
Checks if is leaf.
|
TreePath |
pathToNode(int fsNum)
Path to node.
|
void |
removeTreeModelListener(TreeModelListener arg0)
Removes the tree model listener.
|
void |
reset()
Reset.
|
void |
update(String indexName,
org.apache.uima.cas.FSIndex index,
org.apache.uima.cas.CAS cas1)
Update.
|
void |
valueForPathChanged(TreePath path,
Object newValue)
Value for path changed.
|
public void update(String indexName, org.apache.uima.cas.FSIndex index, org.apache.uima.cas.CAS cas1)
indexName - the index nameindex - the indexcas1 - the cas 1public void reset()
public Object getRoot()
getRoot in interface TreeModelTreeModel.getRoot()public Object getChild(Object parent, int index)
getChild in interface TreeModelparent - the parentindex - the indexTreeModel.getChild(java.lang.Object, int)public int getChildCount(Object parent)
getChildCount in interface TreeModelparent - the parentTreeModel.getChildCount(java.lang.Object)public boolean isLeaf(Object node)
isLeaf in interface TreeModelnode - the nodeTreeModel.isLeaf(java.lang.Object)public void valueForPathChanged(TreePath path, Object newValue)
valueForPathChanged in interface TreeModelpath - the pathnewValue - the new valueTreeModel.valueForPathChanged(javax.swing.tree.TreePath,
java.lang.Object)public int getIndexOfChild(Object parent, Object child)
getIndexOfChild in interface TreeModelparent - the parentchild - the childTreeModel.getIndexOfChild(java.lang.Object, java.lang.Object)public void addTreeModelListener(TreeModelListener arg0)
addTreeModelListener in interface TreeModelarg0 - the arg 0TreeModel.addTreeModelListener(javax.swing.event.TreeModelListener)public void removeTreeModelListener(TreeModelListener arg0)
removeTreeModelListener in interface TreeModelarg0 - the arg 0TreeModel.removeTreeModelListener(javax.swing.event.TreeModelListener)public TreePath pathToNode(int fsNum)
fsNum - the fs numCopyright © 2006–2017 The Apache Software Foundation. All rights reserved.