| 限定符和类型 | 类和说明 |
|---|---|
static class |
Comments.C |
static class |
Comments.Pr |
static class |
Comments.R |
| 限定符和类型 | 字段和说明 |
|---|---|
String |
author |
List<Comments.C> |
commentList
Comments Cache
|
protected static Comments.Pr |
DEFAULT_PR
默认字体设置,用于在没有明确指定字体时使用
|
protected static Comments.Pr |
DEFAULT_TITLE_PR
默认标题字体设置,用于在没有明确指定字体时使用
|
int |
id |
| 限定符和类型 | 方法和说明 |
|---|---|
Comments.C |
addComment(int row,
int col,
Comment comment)
在指定单元格添加批注
|
Comments.C |
addComment(int row,
int col,
String value)
在指定行列添加批注
|
Comments.C |
addComment(int row,
int col,
String title,
String value)
在指定单元格添加批注
|
Comments.C |
addComment(String ref,
Comment comment)
添加评论到指定的单元格位置
|
Comments.C |
addComment(String ref,
String title,
String value)
添加评论到指定的单元格位置
|
void |
close() |
protected Comments.R |
toR(String val,
boolean isTitle,
Font font) |
protected void |
vml(Path root) |
void |
writeTo(Path root)
写入指定路径,传入的参数可以是一个文件也可以是文件夹,需要在实现类具体处理
|
public List<Comments.C> commentList
public int id
public String author
protected static final Comments.Pr DEFAULT_PR
protected static final Comments.Pr DEFAULT_TITLE_PR
public Comments(int id)
public Comments(int id,
String author)
public Comments.C addComment(String ref, String title, String value)
ref - 单元格位置索引title - 评论的标题value - 评论的内容public Comments.C addComment(String ref, Comment comment)
ref - 单元格位置索引comment - 批注对象public Comments.C addComment(int row, int col, String value)
row - 行号,从1开始col - 列号,从1开始value - 批注内容public Comments.C addComment(int row, int col, String title, String value)
row - 行号,从1开始col - 列号,从1开始title - 批注标题value - 批注内容public Comments.C addComment(int row, int col, Comment comment)
row - 行号,从1开始col - 列号,从1开始comment - 批注对象protected Comments.R toR(String val, boolean isTitle, Font font)
public void close()
close 在接口中 Closeableclose 在接口中 AutoCloseablepublic void writeTo(Path root) throws IOException
StorablewriteTo 在接口中 Storableroot - 父级文件夹或文件绝对路径IOException - 写失败异常protected void vml(Path root) throws IOException
IOExceptionCopyright © 2024. All rights reserved.