class SwingTree extends AbstractSwingContainer implements XulTree {

  public void removeTreeRows( int[] rows ) {

    // sort the rows high to low
    ArrayList<Integer> rowArray = new ArrayList<Integer>();
    for ( int i = 0; i < rows.length; i++ ) {
      rowArray.add( rows[i] );
    }
    Collections.sort( rowArray, Collections.reverseOrder() );

    // remove the items in that order
    for ( int i = 0; i < rowArray.size(); i++ ) {
      int item = rowArray.get( i );
      if ( item >= 0 && item < getRootChildren().getItemCount() ) {
        getRootChildren().removeItem( item );
      }
    }

    table.updateUI();
    // treat as selection change.
    changeSupport.firePropertyChange( "selectedRows", null, getSelectedRows() ); //$NON-NLS-1$
    changeSupport.firePropertyChange( "absoluteSelectedRows", null, getAbsoluteSelectedRows() ); //$NON-NLS-1$
  }

  public  SwingTree( Element self, XulComponent parent, XulDomContainer domContainer, String tagName );

}