public void setRecordsAmount(int amount) {
        int ipp = Integer.parseInt(itemsPerPageEditor.getValueAsString());
        pageTotal = amount % ipp == 0? amount / ipp : amount / ipp + 1;
        draw(0);
    }
public void setRecordsAmount ( int amount ) { int ipp = Integer . parseInt ( itemsPerPageEditor . getValueAsString ( ) ) ; pageTotal = amount % ipp == 0 ? amount / ipp : amount / ipp + 1 ; draw ( 0 ) ; }
Assigns total number of records.

@param amount