* Makes sure that the specified node is redrawed
* @param node The node which children have changed
*/
public void nodeChanged(DefaultMutableTreeNode node) {
if (node != null) {
TreeNode parentNode = node.getParent();
//TreeNode parentNode = (TreeNode)this.getTreeTableModel().getRoot();
if (parentNode != null) {
if (node instanceof TrPositionTreeNode) {
node.setUserObject(((TrPositionTreeNode) node).getPosition().getPosNumber());
}
if (logger.isDebugEnabled()) {
logger.debug("Redrawing node " + node.getUserObject() + " " + parentNode.getIndex(node));
}
//((TblMTrPositions)this.getTreeTableModel()).nodeStructureChanged(parentNode);
int[] indices = new int[1];
indices[0] = parentNode.getIndex(node);
((TblMTrPositions) this.getTreeTableModel()).nodesChanged(parentNode, indices);
this.checkRootVisible();
}
}
}