private int indexToModel(int index){
  if (index == -1) {
    return -1;
  }
  return table.convertRowIndexToModel(index);
}

private int indexToModel ( int index ) { if ( index == - 1 ) { return - 1 ; } return table . convertRowIndexToModel ( index ) ; }
convert a view index to model index .
