protected void clearFromCursor(){
  if (cursor <= 0) {
    selections.clear();
  }
 else {
    while (cursor < selections.size()) {
      selections.remove(selections.size() - 1);
    }
  }
}

protected void clearFromCursor ( ) { if ( cursor <= 0 ) { selections . clear ( ) ; } else { while ( cursor < selections . size ( ) ) { selections . remove ( selections . size ( ) - 1 ) ; } } }
clears all cached selections from the current position on .
