本文整理了Java中org.apache.poi.hssf.usermodel.HSSFSheet.findCellComment()
方法的一些代码示例,展示了HSSFSheet.findCellComment()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。HSSFSheet.findCellComment()
方法的具体详情如下:
包路径:org.apache.poi.hssf.usermodel.HSSFSheet
类名称:HSSFSheet
方法名:findCellComment
[英]Finds all cell comments in this sheet and adds them to the specified locations map
[中]查找此工作表中的所有单元格注释,并将其添加到指定的位置映射中
代码示例来源:origin: org.apache.poi/poi
/**
* Returns cell comment for the specified row and column
*
* @return cell comment or <code>null</code> if not found
*/
@Override
public HSSFComment getCellComment(CellAddress ref) {
return findCellComment(ref.getRow(), ref.getColumn());
}
代码示例来源:origin: org.apache.poi/poi
/**
* Returns comment associated with this cell
*
* @return comment associated with this cell
*/
public HSSFComment getCellComment(){
if (_comment == null) {
_comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
}
return _comment;
}
代码示例来源:origin: org.apache.poi/poi
/**
* Removes the comment for this cell, if
* there is one.
* WARNING - some versions of excel will loose
* all comments after performing this action!
*/
public void removeCellComment() {
HSSFComment comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
_comment = null;
if (null == comment){
return;
}
_sheet.getDrawingPatriarch().removeShape(comment);
}
代码示例来源:origin: com.haulmont.thirdparty/poi
/**
* Returns cell comment for the specified row and column
*
* @return cell comment or <code>null</code> if not found
*/
public HSSFComment getCellComment(int row, int column) {
return findCellComment(row, column);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Returns cell comment for the specified row and column
*
* @return cell comment or <code>null</code> if not found
*/
@Override
public HSSFComment getCellComment(CellAddress ref) {
return findCellComment(ref.getRow(), ref.getColumn());
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Returns comment associated with this cell
*
* @return comment associated with this cell
*/
public HSSFComment getCellComment(){
if (_comment == null) {
_comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
}
return _comment;
}
代码示例来源:origin: com.haulmont.thirdparty/poi
/**
* Returns comment associated with this cell
*
* @return comment associated with this cell
*/
public HSSFComment getCellComment(){
if (_comment == null) {
_comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
}
return _comment;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi
/**
* Removes the comment for this cell, if
* there is one.
* WARNING - some versions of excel will loose
* all comments after performing this action!
*/
public void removeCellComment() {
HSSFComment comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
_comment = null;
if (null == comment){
return;
}
_sheet.getDrawingPatriarch().removeShape(comment);
}
代码示例来源:origin: com.haulmont.thirdparty/poi
/**
* Removes the comment for this cell, if
* there is one.
* WARNING - some versions of excel will loose
* all comments after performing this action!
*/
public void removeCellComment() {
HSSFComment comment = _sheet.findCellComment(_record.getRow(), _record.getColumn());
_comment = null;
if (null == comment){
return;
}
_sheet.getDrawingPatriarch().removeShape(comment);
}
内容来源于网络,如有侵权,请联系作者删除!