public boolean gotoFirst(){
  if (!searchInCollapsed) {
    final List<Integer> list=mainViewer.computeDisplayedIdsInSearchOrder();
    currentTaxonIterator=list.iterator();
    numberOfObjects=list.size();
  }
 else {
    final List<Integer> list=mainViewer.computeAllIdsInSearchOrder();
    currentTaxonIterator=list.iterator();
    numberOfObjects=list.size();
  }
  currentTaxonId=(currentTaxonIterator.hasNext() ? currentTaxonIterator.next() : null);
  return isCurrentSet();
}

public boolean gotoFirst ( ) { if ( ! searchInCollapsed ) { final List < Integer > list = mainViewer . computeDisplayedIdsInSearchOrder ( ) ; currentTaxonIterator = list . iterator ( ) ; numberOfObjects = list . size ( ) ; } else { final List < Integer > list = mainViewer . computeAllIdsInSearchOrder ( ) ; currentTaxonIterator = list . iterator ( ) ; numberOfObjects = list . size ( ) ; } currentTaxonId = ( currentTaxonIterator . hasNext ( ) ? currentTaxonIterator . next ( ) : null ) ; return isCurrentSet ( ) ; }
goto the first object
