Esempio n. 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;
 }
Esempio n. 2
0
 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;
 }