Package org.apache.uima.tools.cvd
Class FSTreeModel
java.lang.Object
org.apache.uima.tools.cvd.FSTreeModel
- All Implemented Interfaces:
- TreeModel
Swing Tree Model for Feature Structures.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidAdds the tree model listener.Gets the child.intgetChildCount(Object parent) Gets the child count.getFSs()Gets the f ss.intgetIndexOfChild(Object parent, Object child) Gets the index of child.getRoot()Gets the root.booleanChecks if is leaf.pathToNode(int fsNum) Path to node.voidRemoves the tree model listener.voidreset()Reset.voidUpdate.voidvalueForPathChanged(TreePath path, Object newValue) Value for path changed.
- 
Constructor Details- 
FSTreeModelpublic FSTreeModel()Constructor for FSTreeModel.
 
- 
- 
Method Details- 
updateUpdate.- Parameters:
- indexName- the index name
- index- the index
- cas1- the cas 1
 
- 
resetpublic void reset()Reset.
- 
getFSsGets the f ss.- Returns:
- the f ss
 
- 
getRootGets the root.
- 
getChildGets the child.
- 
getChildCountGets the child count.- Specified by:
- getChildCountin interface- TreeModel
- Parameters:
- parent- the parent
- Returns:
- the child count
- See Also:
 
- 
isLeafChecks if is leaf.
- 
valueForPathChangedValue for path changed.- Specified by:
- valueForPathChangedin interface- TreeModel
- Parameters:
- path- the path
- newValue- the new value
- See Also:
 
- 
getIndexOfChildGets the index of child.- Specified by:
- getIndexOfChildin interface- TreeModel
- Parameters:
- parent- the parent
- child- the child
- Returns:
- the index of child
- See Also:
 
- 
addTreeModelListenerAdds the tree model listener.- Specified by:
- addTreeModelListenerin interface- TreeModel
- Parameters:
- arg0- the arg 0
- See Also:
 
- 
removeTreeModelListenerRemoves the tree model listener.- Specified by:
- removeTreeModelListenerin interface- TreeModel
- Parameters:
- arg0- the arg 0
- See Also:
 
- 
pathToNodePath to node.- Parameters:
- fsNum- the fs num
- Returns:
- the tree path
 
 
-