private void moveVertical ( int offset ) { if ( offset < 0 ) { moveUp ( Math . abs ( offset ) ) ; } else if ( offset > 0 ) { moveDown ( offset ) ; } }
Moves the cursor vertically and scroll if needed .