Code example for CursorWindow

Methods: getNumRows

0
        int oldPos = curRow;
        curRow += offset;
        if (curRow < -1) {
            curRow = -1;
            return false; 
        } else if (curRow > window.getNumRows() - 1) {
            curRow = window.getNumRows() - 1;
            return false; 
        } 
        return onMove(oldPos, curRow);
    } 
 
    @Override 
    public boolean moveToFirst() { 
        if (window.getNumRows() == 0) {
            return false; 
        } 
        int oldPos = curRow;
        curRow = 0;
        return onMove(oldPos, curRow);
    }