Esempio n. 1
0
  @Override
  public int getMaxSelectionIndex() {
    int min = delegate.getMinSelectionIndex();

    if (min >= 0) {
      int max = delegate.getMaxSelectionIndex();
      int viewMaxIndex = 0;

      for (int i = min; i <= max; i++) {
        int viewIndex = sortedModel.convertRowIndexToView(i);

        if (viewIndex > viewMaxIndex) {
          viewMaxIndex = viewIndex;
        }
      }

      return viewMaxIndex;
    }

    return -1;
  }
Esempio n. 2
0
 @Override
 public int getLeadSelectionIndex() {
   return sortedModel.convertRowIndexToView(delegate.getLeadSelectionIndex());
 }