public int getRow ( ) { if ( _currentRow != null ) { int row = _currentRow . intValue ( ) ; /* if the row is out of range, simply adjust to the last row */ if ( _dataSetSize != null && ( row > _dataSetSize . intValue ( ) ) ) row = _dataSetSize . intValue ( ) ; if ( row % getPageSize ( ) != 0 ) { int adjustedPage = row - ( row % getPageSize ( ) ) ; return adjustedPage ; } else return row ; } else return DEFAULT_ROW ; }
Get the current row . If no row has been specified the default row is returned .