public class CommentableCell extends CellExtension
Constructor and Description |
---|
CommentableCell(Cell cell)
Creates a comentable cell extension for the given cell.
|
Modifier and Type | Method and Description |
---|---|
void |
addCommentableCellListener(CommentableCellListener listener)
Registers the given listener on the cell.
|
protected void |
fireCommentsChanged()
Notifies all registered listeners that the cell's comments changed.
|
String |
getUserComment()
Get the cell's user comment.
|
boolean |
hasComment()
Returns whether the cell has a comment.
|
void |
removeCommentableCellListener(CommentableCellListener listener)
Removes the given listener from the cell.
|
void |
setUserComment(String comment)
Sets the user-specified comment for the cell.
|
addCellListener, cellCleared, cellCopied, clear, compareTo, contentChanged, copyFrom, dependentsChanged, getAddress, getCellListeners, getContent, getDelegate, getDependents, getExtension, getFormula, getName, getPrecedents, getSpreadsheet, getValue, moveFrom, removeCellListener, setContent, toString, valueChanged
CommentableCell(Cell cell)
cell
- the cell to extendpublic String getUserComment()
null
if no user
supplied comment exists.public boolean hasComment()
public void setUserComment(String comment)
comment
- the user-specified commentpublic void addCommentableCellListener(CommentableCellListener listener)
listener
- the listener to be addedpublic void removeCommentableCellListener(CommentableCellListener listener)
listener
- the listener to be removedprotected void fireCommentsChanged()