/** * Return the column of the cell that contains the comment * * @return the 0-based column of the cell that contains the comment */ @Override public int getColumn() { return _note.getColumn(); }
/** * check if any shapes contain wrong data * At now(13.08.2010) check if patriarch contains 2 or more comments with same coordinates */ protected void preSerialize(){ Map<Integer, NoteRecord> tailRecords = _boundAggregate.getTailRecords(); /* * contains coordinates of comments we iterate over */ Set<String> coordinates = new HashSet<>(tailRecords.size()); for(NoteRecord rec : tailRecords.values()){ String noteRef = new CellReference(rec.getRow(), rec.getColumn(), true, true).formatAsString(); // A1-style notation if(coordinates.contains(noteRef )){ throw new IllegalStateException("found multiple cell comments for cell " + noteRef ); } else { coordinates.add(noteRef); } } }
thisColumn = nrec.getColumn();
NoteRecord nrec = (NoteRecord) record; thisRow = nrec.getRow(); thisColumn = nrec.getColumn(); break; default:
/** * Return the column of the cell that contains the comment * * @return the 0-based column of the cell that contains the comment */ @Override public int getColumn() { return _note.getColumn(); }
/** * Return the column of the cell that contains the comment * * @return the 0-based column of the cell that contains the comment */ public int getColumn() { return _note.getColumn(); }
/** * check if any shapes contain wrong data * At now(13.08.2010) check if patriarch contains 2 or more comments with same coordinates */ protected void preSerialize(){ Map<Integer, NoteRecord> tailRecords = _boundAggregate.getTailRecords(); /** * contains coordinates of comments we iterate over */ Set<String> coordinates = new HashSet<String>(tailRecords.size()); for(NoteRecord rec : tailRecords.values()){ String noteRef = new CellReference(rec.getRow(), rec.getColumn()).formatAsString(); // A1-style notation if(coordinates.contains(noteRef )){ throw new IllegalStateException("found multiple cell comments for cell " + noteRef ); } else { coordinates.add(noteRef); } } }
/** * check if any shapes contain wrong data * At now(13.08.2010) check if patriarch contains 2 or more comments with same coordinates */ protected void preSerialize(){ Map<Integer, NoteRecord> tailRecords = _boundAggregate.getTailRecords(); /* * contains coordinates of comments we iterate over */ Set<String> coordinates = new HashSet<>(tailRecords.size()); for(NoteRecord rec : tailRecords.values()){ String noteRef = new CellReference(rec.getRow(), rec.getColumn(), true, true).formatAsString(); // A1-style notation if(coordinates.contains(noteRef )){ throw new IllegalStateException("found multiple cell comments for cell " + noteRef ); } else { coordinates.add(noteRef); } } }
if (rec instanceof NoteRecord) { NoteRecord note = (NoteRecord) rec; if (note.getRow() == row && note.getColumn() == column) { if(i < noteTxo.size()) { TextObjectRecord txo = noteTxo.get(note.getShapeId()); comment = new HSSFComment(note, txo); comment.setRow(note.getRow()); comment.setColumn(note.getColumn()); comment.setAuthor(note.getAuthor()); comment.setVisible(note.getFlags() == NoteRecord.NOTE_VISIBLE);
thisColumn = nrec.getColumn();
thisColumn = nrec.getColumn();
continue; HSSFComment comment = getCellComment(rowNum, nr.getColumn()); if (comment != null) { comment.setRow(rowNum + n);
NoteRecord nrec = (NoteRecord) record; thisRow = nrec.getRow(); thisColumn = nrec.getColumn(); break;
NoteRecord nrec = (NoteRecord) record; thisRow = nrec.getRow(); thisColumn = nrec.getColumn(); break;
NoteRecord nrec = (NoteRecord) record; thisRow = nrec.getRow(); thisColumn = nrec.getColumn(); break; default: