Browse Source

Pull request #4245: REPORT-52087 单元格元素数据列中首次修改字符不会生效

Merge in DESIGN/design from ~TOMMY/design:bugfix/10.0 to bugfix/10.0

* commit 'b9dea208341a3eadf8078a5e98c06956cd3779fe':
  REPORT-52087 单元格元素数据列中首次修改字符不会生效
  REPORT-52087 单元格元素数据列中首次修改字符不会生效
  REPORT-52087 单元格元素数据列中首次修改字符不会生效
bugfix/10.0
Tommy 4 years ago
parent
commit
833136c32a
  1. 8
      designer-base/src/main/java/com/fr/design/gui/icombobox/LazyComboBox.java

8
designer-base/src/main/java/com/fr/design/gui/icombobox/LazyComboBox.java

@ -62,6 +62,12 @@ public abstract class LazyComboBox extends UIComboBox implements PopupMenuListen
this.setModel(new DefaultComboBoxModel<>(new Object[]{anObject})); this.setModel(new DefaultComboBoxModel<>(new Object[]{anObject}));
super.setSelectedItem(anObject); super.setSelectedItem(anObject);
} }
}
private void setSelectedItemWithDocumentChange(Object anObject) {
initialSelected = anObject;
super.setSelectedItem(anObject);
} }
@Override @Override
@ -183,7 +189,7 @@ public abstract class LazyComboBox extends UIComboBox implements PopupMenuListen
} }
filtering = true; filtering = true;
String xx = textField.getText(); String xx = textField.getText();
LazyComboBox.this.setSelectedItem(xx); LazyComboBox.this.setSelectedItemWithDocumentChange(xx);
this.item = textField.getText(); this.item = textField.getText();
setPopupVisible(true); setPopupVisible(true);

Loading…
Cancel
Save