Browse Source

代码质量

master
XiaXiang 8 years ago
parent
commit
785b0749f3
  1. 1
      designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java
  2. 5
      designer/src/com/fr/design/mainframe/alphafine/search/manager/DocumentSearchManager.java
  3. 1
      designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java
  4. 8
      designer_base/src/com/fr/design/actions/help/alphafine/AlphaFineContext.java
  5. 9
      designer_base/src/com/fr/design/actions/help/alphafine/AlphaFineListener.java
  6. 1
      designer_base/src/com/fr/design/actions/help/alphafine/RemindDialog.java

1
designer/src/com/fr/design/mainframe/alphafine/search/manager/ActionSearchManager.java

@ -12,7 +12,6 @@ import com.fr.design.mainframe.toolbar.UpdateActionModel;
import com.fr.general.ComparatorUtils;
import com.fr.general.Inter;
import com.fr.stable.StringUtils;
import com.fr.third.com.lowagie.text.pdf.PRAcroForm;
import java.util.List;

5
designer/src/com/fr/design/mainframe/alphafine/search/manager/DocumentSearchManager.java

@ -81,7 +81,10 @@ public class DocumentSearchManager implements AlphaFineSearchProcessor {
return lessModelList;
}
/**
* 无连接
* @return
*/
private SearchResult getNoConnectList() {
SearchResult result = new SearchResult();
result.add(0, TITLE_MODEL);

1
designer/src/com/fr/design/mainframe/alphafine/search/manager/RecentSearchManager.java

@ -4,7 +4,6 @@ import com.fr.base.FRContext;
import com.fr.base.Utils;
import com.fr.design.mainframe.alphafine.AlphaFineConstants;
import com.fr.design.mainframe.alphafine.AlphaFineHelper;
import com.fr.design.mainframe.alphafine.CellType;
import com.fr.design.mainframe.alphafine.cell.CellModelHelper;
import com.fr.design.mainframe.alphafine.cell.model.AlphaCellModel;
import com.fr.design.mainframe.alphafine.cell.model.MoreModel;

8
designer_base/src/com/fr/design/actions/help/alphafine/AlphaFineContext.java

@ -18,6 +18,10 @@ public class AlphaFineContext {
}
}
/**
* 触发开启或关闭AlphaFine功能
* @param isEnable
*/
public static void fireAlphaFineEnable(boolean isEnable) {
for (AlphaFineListener l : fireAlphaFineListener) {
l.setEnable(isEnable);
@ -25,9 +29,9 @@ public class AlphaFineContext {
}
/**
* 添加一个弹出AlphaFine的监听事件
* 添加一个AlphaFine的监听事件
*
* @param l AlphaFine框弹出监听事件
* @param l AlphaFine监听事件
*/
public static void addAlphaFineListener(AlphaFineListener l) {
fireAlphaFineListener.add(l);

9
designer_base/src/com/fr/design/actions/help/alphafine/AlphaFineListener.java

@ -2,8 +2,17 @@ package com.fr.design.actions.help.alphafine;
/**
* Created by XiaXiang on 2017/5/27.
* AlphaFine监听器
*/
public interface AlphaFineListener {
/**
* 显示dialog
*/
void showDialog();
/**
* 设置可用性
* @param isEnable
*/
void setEnable(boolean isEnable);
}

1
designer_base/src/com/fr/design/actions/help/alphafine/RemindDialog.java

@ -8,6 +8,7 @@ import java.awt.*;
/**
* Created by XiaXiang on 2017/5/26.
* 提示弹窗
*/
public class RemindDialog extends UIDialog {
private RemindPane remindPane;

Loading…
Cancel
Save