Exemple #1
0
 private void insertPuncInNonPunc(TextBlock tb, char c, int cp) {
   PunctuationBlock wb = new PunctuationBlock();
   wb.setText("" + c);
   tb.insert(wb, cp);
   caretBlock = wb;
   caretPos = 1;
 }
Exemple #2
0
 private void insertLetterInNonWord(TextBlock tb, char c, int cp) {
   WordBlock wb = new WordBlock();
   wb.setText("" + c);
   tb.insert(wb, cp);
   caretBlock = wb;
   caretPos = 1;
 }