|
|
@ -282,6 +282,7 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
public void mousePressed(MouseEvent e) { |
|
|
|
searchTextField.setText(StringUtils.EMPTY); |
|
|
|
searchTextField.setText(StringUtils.EMPTY); |
|
|
|
|
|
|
|
beforeSearchStr = StringUtils.EMPTY; |
|
|
|
clearLabel.setVisible(false); |
|
|
|
clearLabel.setVisible(false); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -543,6 +544,8 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
if (StringUtils.isNotEmpty(searchTextField.getText())) { |
|
|
|
if (StringUtils.isNotEmpty(searchTextField.getText())) { |
|
|
|
clearLabel.setVisible(true); |
|
|
|
clearLabel.setVisible(true); |
|
|
|
SearchTooltipPopup.getInstance().show(searchTextFieldWrapperPane); |
|
|
|
SearchTooltipPopup.getInstance().show(searchTextFieldWrapperPane); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
beforeSearchStr = StringUtils.EMPTY; |
|
|
|
} |
|
|
|
} |
|
|
|
AlphaFineToolTipList alphaFineToolTipList = SearchTooltipPopup.getInstance().getAlphaFineToolTipList(); |
|
|
|
AlphaFineToolTipList alphaFineToolTipList = SearchTooltipPopup.getInstance().getAlphaFineToolTipList(); |
|
|
|
if (e.getKeyCode() == KeyEvent.VK_ENTER) { |
|
|
|
if (e.getKeyCode() == KeyEvent.VK_ENTER) { |
|
|
@ -590,6 +593,7 @@ public class AlphaFineFrame extends JFrame { |
|
|
|
SearchTooltipPopup.getInstance().hide(); |
|
|
|
SearchTooltipPopup.getInstance().hide(); |
|
|
|
clearLabel.setVisible(false); |
|
|
|
clearLabel.setVisible(false); |
|
|
|
switchType(selectedType); |
|
|
|
switchType(selectedType); |
|
|
|
|
|
|
|
beforeSearchStr = StringUtils.EMPTY; |
|
|
|
} else if (searchTextField.hasFocus()) { |
|
|
|
} else if (searchTextField.hasFocus()) { |
|
|
|
clearLabel.setVisible(true); |
|
|
|
clearLabel.setVisible(true); |
|
|
|
SearchTooltipPopup.getInstance().show(searchTextFieldWrapperPane); |
|
|
|
SearchTooltipPopup.getInstance().show(searchTextFieldWrapperPane); |
|
|
|