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 insertLetterInNonWord(TextBlock tb, char c, int cp) { WordBlock wb = new WordBlock(); wb.setText("" + c); tb.insert(wb, cp); caretBlock = wb; caretPos = 1; }