Browse Source

REPORT-80695 【模板全局级别查找替换二期】补充注释

feature/x
Destiny.Lin 2 years ago
parent
commit
0cd4b40053
  1. 6
      designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/action/SearchCellFormatAction.java
  2. 6
      designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/action/SearchConnectionAction.java

6
designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/action/SearchCellFormatAction.java

@ -39,6 +39,12 @@ public class SearchCellFormatAction implements SearchAction {
setCellInfos(cellInfos); setCellInfos(cellInfos);
} }
/**
* 单元格的内容是否是在查找范围内
*
* @param cellElement 单元格
* @return 在查找范围内返回true
*/
public boolean isFormatValid(CellElement cellElement) { public boolean isFormatValid(CellElement cellElement) {
return cellElement.getStyle() != null return cellElement.getStyle() != null
&& (cellElement.getValue() instanceof Formula && (cellElement.getValue() instanceof Formula

6
designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/action/SearchConnectionAction.java

@ -60,6 +60,12 @@ public class SearchConnectionAction implements SearchAction {
setConnectionInfos(connectionInfos); setConnectionInfos(connectionInfos);
} }
/**
* 数据连接是否可用
*
* @param data 数据库
* @return 可用返回true
*/
public boolean isNameDataBaseConnectionValid(TableData data) { public boolean isNameDataBaseConnectionValid(TableData data) {
return data instanceof TableDataConnection && ((TableDataConnection) data).getDatabase() instanceof NameDatabaseConnection; return data instanceof TableDataConnection && ((TableDataConnection) data).getDatabase() instanceof NameDatabaseConnection;
} }

Loading…
Cancel
Save