|
|
@ -411,7 +411,7 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* showPane,内容展示区,分为三个小区,tab区,label区,内容区 |
|
|
|
* showPane,内容展示区,分为三个小区,tab区,label区,内容区 |
|
|
|
* */ |
|
|
|
*/ |
|
|
|
private JPanel createShowPane() { |
|
|
|
private JPanel createShowPane() { |
|
|
|
JPanel showPane = new JPanel(new BorderLayout()); |
|
|
|
JPanel showPane = new JPanel(new BorderLayout()); |
|
|
|
|
|
|
|
|
|
|
@ -439,7 +439,7 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
// 一键已读
|
|
|
|
// 一键已读
|
|
|
|
readLabel = new UILabel(ONE_CLICK_READ); |
|
|
|
readLabel = new UILabel(ONE_CLICK_READ); |
|
|
|
readLabel.setHorizontalAlignment(SwingConstants.RIGHT); |
|
|
|
readLabel.setHorizontalAlignment(SwingConstants.RIGHT); |
|
|
|
readLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10));; |
|
|
|
readLabel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 10)); |
|
|
|
readLabel.setPreferredSize(new Dimension(100, 30)); |
|
|
|
readLabel.setPreferredSize(new Dimension(100, 30)); |
|
|
|
readLabel.setForeground(UIConstants.FLESH_BLUE); |
|
|
|
readLabel.setForeground(UIConstants.FLESH_BLUE); |
|
|
|
readLabel.addMouseListener(new MouseAdapter() { |
|
|
|
readLabel.addMouseListener(new MouseAdapter() { |
|
|
@ -624,7 +624,7 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 根据用户自定义的顺序排序 |
|
|
|
* 根据用户自定义的顺序排序 |
|
|
|
* */ |
|
|
|
*/ |
|
|
|
private void sortList(List<SelectedLabel> list) { |
|
|
|
private void sortList(List<SelectedLabel> list) { |
|
|
|
AlphaFineConfigManager alphaFineConfigManager = DesignerEnvManager.getEnvManager().getAlphaFineConfigManager(); |
|
|
|
AlphaFineConfigManager alphaFineConfigManager = DesignerEnvManager.getEnvManager().getAlphaFineConfigManager(); |
|
|
|
String[] tabOrder = alphaFineConfigManager.getTabOrder(); |
|
|
|
String[] tabOrder = alphaFineConfigManager.getTabOrder(); |
|
|
@ -751,7 +751,7 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
fireSearch(); |
|
|
|
fireSearch(); |
|
|
|
} else if (e.getKeyCode() == KeyEvent.VK_DOWN) { |
|
|
|
} else if (e.getKeyCode() == KeyEvent.VK_DOWN) { |
|
|
|
if (alphaFineToolTipList.getSelectedIndex() == alphaFineToolTipList.getModel().getSize() - 1) { |
|
|
|
if (alphaFineToolTipList.getSelectedIndex() == alphaFineToolTipList.getModel().getSize() - 1) { |
|
|
|
alphaFineToolTipList.setSelectedIndex(0); |
|
|
|
alphaFineToolTipList.setSelectedIndex(0); |
|
|
|
} |
|
|
|
} |
|
|
@ -786,7 +786,7 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* 控制搜索tip框弹出收起 |
|
|
|
* 控制搜索tip框弹出收起 |
|
|
|
* 不断地刷新tab页,并防止tab页显示错误 |
|
|
|
* 不断地刷新tab页,并防止tab页显示错误 |
|
|
|
* */ |
|
|
|
*/ |
|
|
|
private void startSearchTextFieldTimer() { |
|
|
|
private void startSearchTextFieldTimer() { |
|
|
|
Timer timer = new Timer(TIMER_DELAY, e -> { |
|
|
|
Timer timer = new Timer(TIMER_DELAY, e -> { |
|
|
|
// 坑 isShowing返回false 即使textField有内容 getText返回的也是空
|
|
|
|
// 坑 isShowing返回false 即使textField有内容 getText返回的也是空
|
|
|
@ -901,14 +901,13 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
return new SearchTextBean(getStoreText(searchText), new String[]{getStoreText(searchText)}); |
|
|
|
return new SearchTextBean(getStoreText(searchText), new String[]{getStoreText(searchText)}); |
|
|
|
} else if (searchText.startsWith(DS_MARK)) { |
|
|
|
} else if (searchText.startsWith(DS_MARK)) { |
|
|
|
return new SearchTextBean(getStoreText(searchText), new String[]{DS_NAME + getStoreText(searchText)}); |
|
|
|
return new SearchTextBean(getStoreText(searchText), new String[]{DS_NAME + getStoreText(searchText)}); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
return new SearchTextBean(searchText, segmentationResult == null ? new String[]{} : segmentationResult); |
|
|
|
return new SearchTextBean(searchText, segmentationResult == null ? new String[]{} : segmentationResult); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 仅搜索依赖网络的搜索项 |
|
|
|
* 仅搜索依赖网络的搜索项 |
|
|
|
* |
|
|
|
|
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private void reSearch() { |
|
|
|
private void reSearch() { |
|
|
|
String text = preProcessSearchText(this.searchTextField.getText().toLowerCase()); |
|
|
|
String text = preProcessSearchText(this.searchTextField.getText().toLowerCase()); |
|
|
@ -925,7 +924,7 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 所有tab页搜索通用的加载panel |
|
|
|
* 所有tab页搜索通用的加载panel |
|
|
|
* */ |
|
|
|
*/ |
|
|
|
private void initSearchLoadingPane() { |
|
|
|
private void initSearchLoadingPane() { |
|
|
|
if (searchLoadingPane == null) { |
|
|
|
if (searchLoadingPane == null) { |
|
|
|
searchLoadingPane = new SearchLoadingPane(); |
|
|
|
searchLoadingPane = new SearchLoadingPane(); |
|
|
@ -1008,6 +1007,8 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
QuestionWindow.getInstance().setVisible(!b); |
|
|
|
QuestionWindow.getInstance().setVisible(!b); |
|
|
|
if (!b) { |
|
|
|
if (!b) { |
|
|
|
AlphaFineHelper.resetAlphaFineDialog(); |
|
|
|
AlphaFineHelper.resetAlphaFineDialog(); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
searchTextField.requestFocus(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|