private void insertPuncInNonPunc(TextBlock tb, char c, int cp) { PunctuationBlock wb = new PunctuationBlock(); wb.setText("" + c); tb.insert(wb, cp); caretBlock = wb; caretPos = 1; }
private void addNewPuncBlockAfter(TextBlock bpr, char c) { PunctuationBlock wb = new PunctuationBlock(); wb.setText("" + c); Block bnx = bpr.next(); bpr.setNext(wb); wb.setNext(bnx); caretBlock = wb; caretPos = 1; }