@ -39,6 +39,12 @@ public class SearchCellFormatAction implements SearchAction {
setCellInfos(cellInfos);
}
/**
* 单元格的内容是否是在查找范围内
*
* @param cellElement 单元格
* @return 在查找范围内返回true
*/
public boolean isFormatValid(CellElement cellElement) {
return cellElement.getStyle() != null
&& (cellElement.getValue() instanceof Formula
@ -60,6 +60,12 @@ public class SearchConnectionAction implements SearchAction {
setConnectionInfos(connectionInfos);
* 数据连接是否可用
* @param data 数据库
* @return 可用返回true
public boolean isNameDataBaseConnectionValid(TableData data) {
return data instanceof TableDataConnection && ((TableDataConnection) data).getDatabase() instanceof NameDatabaseConnection;