public class CommentCollection
Example:
Workbook workbook = new Workbook(); CommentCollection comments = workbook.getWorksheets().get(0).getComments();
Property Getters/Setters Summary | ||
---|---|---|
int | getCount() | |
Comment | get(int index) | |
Gets the |
||
Comment | get(int row, int column) | |
Gets the |
||
Comment | get(java.lang.String cellName) | |
Gets the |
Method Summary | ||
---|---|---|
int | add(int row, int column) | |
Adds a comment to the collection.
|
||
int | add(java.lang.Object value) | |
Reserved for internal use. |
||
int | add(java.lang.String cellName) | |
Adds a comment to the collection.
|
||
int | addThreadedComment(int row, int column, java.lang.String text, ThreadedCommentAuthor author) | |
Adds a threaded comment.
|
||
int | addThreadedComment(java.lang.String cellName, java.lang.String text, ThreadedCommentAuthor author) | |
Adds a threaded comment.
|
||
void | clear() | |
Removes all comments;
|
||
boolean | contains(java.lang.Object value) | |
Reserved for internal use. |
||
ThreadedCommentCollection | getThreadedComments(int row, int column) | |
Gets the threaded comments by row and column index.
|
||
ThreadedCommentCollection | getThreadedComments(java.lang.String cellName) | |
Gets the threaded comments by cell name.
|
||
int | indexOf(java.lang.Object value) | |
Reserved for internal use. |
||
java.util.Iterator | iterator() | |
void | removeAt(int index) | |
void | removeAt(int row, int column) | |
Removes the comment of the specific cell.
|
||
void | removeAt(java.lang.String cellName) | |
Removes the comment of the specific cell.
|
public int getCount()
public Comment get(int index)
index
- The zero based index of the element.public Comment get(java.lang.String cellName)
cellName
- Cell name.public Comment get(int row, int column)
row
- Row index.column
- Column index.public int addThreadedComment(int row, int column, java.lang.String text, ThreadedCommentAuthor author)
row
- Cell row index.column
- Cell column index.text
- The text of the commentauthor
- The user of this threaded comment.public int addThreadedComment(java.lang.String cellName, java.lang.String text, ThreadedCommentAuthor author)
cellName
- The name of the cell.text
- The text of the commentauthor
- The user of this threaded comment.public ThreadedCommentCollection getThreadedComments(int row, int column)
row
- The row index.column
- The column index.public ThreadedCommentCollection getThreadedComments(java.lang.String cellName)
cellName
- The name of the cell.public int add(int row, int column)
row
- Cell row index.column
- Cell column index.public int add(java.lang.String cellName)
public void removeAt(java.lang.String cellName)
cellName
- The name of cell which contains a comment.public void removeAt(int row, int column)
row
- The row index.column
- the column index.public void clear()
public void removeAt(int index)
public java.util.Iterator iterator()
public boolean contains(java.lang.Object value)
public int add(java.lang.Object value)
public int indexOf(java.lang.Object value)