/** * Ensures that the cursor is in the grid. In case it's beyond the * form's right hand side, the cursor is moved to the leading column * of the next line. */ private void ensureCursorColumnInGrid() { if ( ( isLeftToRight() && (getColumn() > getColumnCount())) || (!isLeftToRight() && (getColumn() < 1))) { nextLine(); } }
/** * Ensures that the cursor is in the grid. In case it's beyond the form's * right hand side, the cursor is moved to the leading column of the next * line. */ private void ensureCursorColumnInGrid() { if ((isLeftToRight() && (getColumn() > getColumnCount())) || (!isLeftToRight() && (getColumn() < 1))) { nextLine(); } }
/** * Ensures that the cursor is in the grid. In case it's beyond the * form's right hand side, the cursor is moved to the leading column * of the next line. */ private void ensureCursorColumnInGrid() { if ( isLeftToRight() && getColumn() > getColumnCount() || !isLeftToRight() && getColumn() < 1) { nextLine(); } }