Browse Source

bug fix

PMD
master
XiaXiang 8 years ago
parent
commit
886bc4ef7a
  1. 13
      designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

13
designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

@ -835,10 +835,6 @@ public class AlphaFineDialog extends UIDialog {
} }
private void initListListener() { private void initListListener() {
/**
* 为list添加键盘监听器
*/
addKeyListener(new KeyAdapter() { addKeyListener(new KeyAdapter() {
@Override @Override
public void keyPressed(KeyEvent e) { public void keyPressed(KeyEvent e) {
@ -853,9 +849,6 @@ public class AlphaFineDialog extends UIDialog {
} }
}); });
/**
* 为list添加鼠标监听器
*/
addMouseListener(new MouseAdapter() { addMouseListener(new MouseAdapter() {
@Override @Override
public void mouseClicked(MouseEvent e) { public void mouseClicked(MouseEvent e) {
@ -872,15 +865,11 @@ public class AlphaFineDialog extends UIDialog {
} }
}); });
/**
*单击时触发右侧面板展示搜索结果
*/
addListSelectionListener(new ListSelectionListener() { addListSelectionListener(new ListSelectionListener() {
@Override @Override
public void valueChanged(ListSelectionEvent e) { public void valueChanged(ListSelectionEvent e) {
if (!e.getValueIsAdjusting() && getSelectedValue() != null) { if (!e.getValueIsAdjusting() && getSelectedValue() != null) {
showResult(getSelectedValue()); showResult(getSelectedValue());
} }
} }
}); });
@ -892,8 +881,6 @@ public class AlphaFineDialog extends UIDialog {
} }
}); });
} }
} }
/** /**

Loading…
Cancel
Save