Methods Summary |
---|
public java.lang.String | getAuthor()Name of the original comment author
return author;
|
public short | getColumn()Return the column of the cell that contains the comment
return col;
|
public int | getRow()Return the row of the cell that contains the comment
return row;
|
public boolean | isVisible()Sets whether this comment is visible.
return this.visible;
|
public void | setAuthor(java.lang.String author)Name of the original comment author
if(note != null) note.setAuthor(author);
this.author = author;
|
public void | setColumn(short col)Set the column of the cell that contains the comment
if(note != null) note.setColumn(col);
this.col = col;
|
public void | setRow(int row)Set the row of the cell that contains the comment
if(note != null) note.setRow((short)row);
this.row = (short)row;
|
public void | setString(org.apache.poi.hssf.usermodel.HSSFRichTextString string)Sets the rich text string used by this comment.
//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);
|
public void | setVisible(boolean visible)Returns whether this comment is visible.
if(note != null) note.setFlags(visible ? NoteRecord.NOTE_VISIBLE : NoteRecord.NOTE_HIDDEN);
this.visible = visible;
|