mirror of
https://gitee.com/jmix/cuba.git
synced 2024-12-05 04:38:10 +08:00
Generic filter component bugfix #PL-4488
This commit is contained in:
parent
7e9487ca6b
commit
9629ead3f3
@ -138,14 +138,18 @@ public class Param {
|
||||
}
|
||||
|
||||
public void setValue(Object value) {
|
||||
setValue(value, true);
|
||||
}
|
||||
|
||||
protected void setValue(Object value, boolean updateEditComponent) {
|
||||
if (!ObjectUtils.equals(value, this.value)) {
|
||||
Object prevValue = this.value;
|
||||
this.value = value;
|
||||
for (ValueListener listener : listeners) {
|
||||
listener.valueChanged(this, "value", prevValue, value);
|
||||
}
|
||||
if (this.editComponent instanceof Component.HasValue) {
|
||||
((Component.HasValue) editComponent).setValue(value == null ? null : formatValue(value));
|
||||
if ( updateEditComponent && this.editComponent instanceof Component.HasValue) {
|
||||
((Component.HasValue) editComponent).setValue(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -362,7 +366,7 @@ public class Param {
|
||||
private void _setValue(Object value, ValueProperty valueProperty) {
|
||||
switch (valueProperty) {
|
||||
case VALUE:
|
||||
setValue(value);
|
||||
setValue(value, false);
|
||||
break;
|
||||
case DEFAULT_VALUE:
|
||||
setDefaultValue(value);
|
||||
|
Loading…
Reference in New Issue
Block a user