Browse Source

Merge pull request #3116 in DESIGN/design from final/10.0 to release/10.0

* commit 'e721b210ab6fe3e14b5eeee6fe5aa1b89dbd7305':
  CHART-17231 默认不选中任何项
feature/big-screen
superman 4 years ago
parent
commit
aa585ca13d
  1. 6
      designer-chart/src/main/java/com/fr/extended/chart/UIComboBoxWithNone.java

6
designer-chart/src/main/java/com/fr/extended/chart/UIComboBoxWithNone.java

@ -23,7 +23,11 @@ public class UIComboBoxWithNone extends UIComboBox {
}
protected void setDefaultSelectedItem() {
setSelectedItem(StringUtils.EMPTY);
// JComboBox.setSelectedItem(o)
// if(o!=null)寻找o对应的下拉选项 如果找不到 还是选中之前选中的
// 所以空字符串 不是选中空 是选中上次选中的
// 所以这边 可以写setSelectedItem(null) or setSelectedIndex(-1)
setSelectedIndex(-1);
}
@Override

Loading…
Cancel
Save