Exemple #1
0
  public void removeCategory(UDOCategory cat) {
    UDOCategory parent = findParent(rootUDOCategory, cat);
    int index = getIndexOfChild(parent, cat);

    int[] childIndices = new int[1];
    childIndices[0] = index;

    Object[] children = new Object[1];
    children[0] = cat;

    TreeModelEvent e = new TreeModelEvent(this, getPathForObject(cat), childIndices, children);

    rootUDOCategory.removeUDOCategory(cat);

    fireNodesRemoved(e);
  }