Browse Source

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

feature/x
Destiny.Lin 2 years ago
parent
commit
4b2237b70e
  1. 2
      designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/CellFormatType.java
  2. 3
      designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/CellGroupType.java
  3. 2
      designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/SettingContent.java
  4. 8
      designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceMainDialog.java
  5. 15
      designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceNorthPanel.java
  6. 5
      designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceSouthPanel.java

2
designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/CellFormatType.java

@ -16,6 +16,8 @@ import java.util.Arrays;
import java.util.List; import java.util.List;
/** /**
* 单元格-格式
*
* @author Destiny.Lin * @author Destiny.Lin
* @version 11.0 * @version 11.0
* created by Destiny.Lin on 2022-10-25 * created by Destiny.Lin on 2022-10-25

3
designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/CellGroupType.java

@ -207,10 +207,9 @@ public enum CellGroupType {
return new MinFunction(); return new MinFunction();
case COUNT_FUNCTION: case COUNT_FUNCTION:
return new CountFunction(); return new CountFunction();
case NONE_FUNCTION: default:
return new NoneFunction(); return new NoneFunction();
} }
return new NoneFunction();
} }
/** /**

2
designer-realize/src/main/java/com/fr/design/actions/replace/action/setting/SettingContent.java

@ -4,6 +4,8 @@ import com.fr.design.actions.replace.utils.ShowValueUtils;
import com.fr.design.i18n.Toolkit; import com.fr.design.i18n.Toolkit;
/** /**
* 设置项的一些常用常量
*
* @author Destiny.Lin * @author Destiny.Lin
* @version 11.0 * @version 11.0
* created by Destiny.Lin on 2022-10-24 * created by Destiny.Lin on 2022-10-24

8
designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceMainDialog.java

@ -527,6 +527,10 @@ public class ITReplaceMainDialog extends UIDialog {
public void checkValid() throws Exception { public void checkValid() throws Exception {
} }
/**
* 获取模板内容数据
* @return 存储数据的list
*/
public static List<? extends Info> getSearchContentResultList() { public static List<? extends Info> getSearchContentResultList() {
return searchContentResultList; return searchContentResultList;
} }
@ -535,6 +539,10 @@ public class ITReplaceMainDialog extends UIDialog {
this.searchContentResultList = searchContentResultList; this.searchContentResultList = searchContentResultList;
} }
/**
* 获取设置项数据
* @return 存储数据的list
*/
public static List<? extends Info> getSearchSettingResultList() { public static List<? extends Info> getSearchSettingResultList() {
return searchSettingResultList; return searchSettingResultList;
} }

15
designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceNorthPanel.java

@ -88,7 +88,7 @@ public class ITReplaceNorthPanel {
private static final int FIRST_X = 20, SECOND_X = 80; private static final int FIRST_X = 20, SECOND_X = 80;
private static final int LABEL_WIDTH = 60; private static final int LABEL_WIDTH = 60;
private static final Icon CHANGE_ICON = IconUtils.readIcon("/com/fr/design/images/replace/change_normal.svg"); private static final Icon CHANGE_ICON = IconUtils.readIcon("/com/fr/design/images/replace/change_normal.svg");
private static final String[] rangeItems = new String[]{Toolkit.i18nText("Fine-Design_Basic_Export_JS_Template_Current")}; private static final String[] RANGE_ITEMS = new String[]{Toolkit.i18nText("Fine-Design_Basic_Export_JS_Template_Current")};
public static final String CARD_CONTENT = "Content"; public static final String CARD_CONTENT = "Content";
public static final String CARD_SETTING = "setting"; public static final String CARD_SETTING = "setting";
@ -186,7 +186,7 @@ public class ITReplaceNorthPanel {
resultLabel = new UILabel(); resultLabel = new UILabel();
String[] replaceInputItems = new String[]{StringUtils.EMPTY}; String[] replaceInputItems = new String[]{StringUtils.EMPTY};
findCombobox = new UIComboBox(findItems.toArray()); findCombobox = new UIComboBox(findItems.toArray());
rangeCombobox = new UIComboBox(rangeItems); rangeCombobox = new UIComboBox(RANGE_ITEMS);
findInputCombobox = new UIComboBox(findInputItems.toArray()) { findInputCombobox = new UIComboBox(findInputItems.toArray()) {
@Override @Override
public void setEditor(ComboBoxEditor comboBoxEditor) { public void setEditor(ComboBoxEditor comboBoxEditor) {
@ -233,7 +233,7 @@ public class ITReplaceNorthPanel {
rangeSettingLabel = new UILabel(Toolkit.i18nText("Fine-Design_Replace_Search_Range")); rangeSettingLabel = new UILabel(Toolkit.i18nText("Fine-Design_Replace_Search_Range"));
settingResultLabel = new UILabel(); settingResultLabel = new UILabel();
findSettingComboBox = new UIComboBox(findSettingItems.toArray()); findSettingComboBox = new UIComboBox(findSettingItems.toArray());
rangeSettingComboBox = new UIComboBox(rangeItems); rangeSettingComboBox = new UIComboBox(RANGE_ITEMS);
findSettingInputComboBox = new UIComboBox(formatItems.toArray()) { findSettingInputComboBox = new UIComboBox(formatItems.toArray()) {
@Override @Override
public void setEditor(ComboBoxEditor anEditor) { public void setEditor(ComboBoxEditor anEditor) {
@ -703,10 +703,19 @@ public class ITReplaceNorthPanel {
this.searchButton = searchButton; this.searchButton = searchButton;
} }
/**
* 获取CardLayout
* @return CardLayout
*/
public static CardLayout getCardLayout() { public static CardLayout getCardLayout() {
return cardLayout; return cardLayout;
} }
/**
* 获取表格主界面
*
* @return cardPanel
*/
public static JPanel getCardPanel() { public static JPanel getCardPanel() {
return cardPanel; return cardPanel;
} }

5
designer-realize/src/main/java/com/fr/design/actions/replace/ui/ITReplaceSouthPanel.java

@ -47,6 +47,11 @@ public class ITReplaceSouthPanel {
this.tableEditorPane = tableEditorPane; this.tableEditorPane = tableEditorPane;
} }
/**
* 获取表格的editor
*
* @return 表格的editor
*/
public static ITTableEditor getItTableEditor() { public static ITTableEditor getItTableEditor() {
return itTableEditor; return itTableEditor;
} }

Loading…
Cancel
Save