예제 #1
0
 public void copyIntervalToBuffer(Intervalo i, boolean delete) {
   int l = -1, c = -1;
   Cell aux;
   _cutBuffer.clear();
   for (Cell cel : i.getList()) {
     if (l == -1 || c == -1) {
       l = cel.getLinha() - 1;
       c = cel.getColuna() - 1;
     }
     aux = new Cell(cel.getLinha() - l, cel.getColuna() - c);
     aux.setConteudo(cel.getConteudo());
     _cutBuffer.add(aux);
     if (delete) removeCell(cel.getLinha(), cel.getColuna());
   }
 }
예제 #2
0
 public void copyCellToBuffer(Cell c) {
   Cell celula = new Cell(1, 1);
   celula.setConteudo(c.getConteudo());
   _cutBuffer.clear();
   _cutBuffer.add(celula);
 }
예제 #3
0
 public void pasteCell(Cell c, int index) {
   c.setConteudo(_cutBuffer.get(index).getConteudo());
 }