Exemple #1
0
 private Cell<T> _insertCellAfter() {
   Cell<T> newCell = new Cell<T>(parent, this, nextCell);
   if (nextCell == null) {
     parent.lastCell = newCell;
   } else {
     nextCell.prevCell = newCell;
   }
   nextCell = newCell;
   return newCell;
 }
Exemple #2
0
 public Cell<T> insertCellAfter() {
   // Make sure last cell is empty
   if (parent.lastCell.isFilled()) {
     parent.parent.addLastColumn();
   }
   _insertCellAfter();
   // Trim end of row
   parent.lastCell.getPrevCell().nextCell = null;
   parent.lastCell = parent.lastCell.getPrevCell();
   return getNextCell();
 }