Represents a cell comment - a sticky note associated with a cell.
| Method from org.apache.poi.hssf.usermodel.HSSFComment Detail: |
public String getAuthor() {
return author;
}
Name of the original comment author |
public short getColumn() {
return col;
}
Return the column of the cell that contains the comment |
public int getRow() {
return row;
}
Return the row of the cell that contains the comment |
public boolean isVisible() {
return this.visible;
}
Sets whether this comment is visible. |
public void setAuthor(String author) {
if(note != null) note.setAuthor(author);
this.author = author;
}
Name of the original comment author |
public void setColumn(short col) {
if(note != null) note.setColumn(col);
this.col = col;
}
Set the column of the cell that contains the comment |
public void setRow(int row) {
if(note != null) note.setRow((short)row);
this.row = (short)row;
}
Set the row of the cell that contains the comment |
public void setString(HSSFRichTextString string) {
//if font is not set we must set the default one
if (string.numFormattingRuns() == 0) string.applyFont((short)0);
if (txo != null) {
int frLength = ( string.numFormattingRuns() + 1 ) * 8;
txo.setFormattingRunLength( (short) frLength );
txo.setTextLength( (short) string.length() );
txo.setStr( string );
}
super.setString(string);
}
Sets the rich text string used by this comment. |
public void setVisible(boolean visible) {
if(note != null) note.setFlags(visible ? NoteRecord.NOTE_VISIBLE : NoteRecord.NOTE_HIDDEN);
this.visible = visible;
}
Returns whether this comment is visible. |