ItEr56S11CUEscaladoPantallaCargaRecursosEmpresaItEr55S15: Improved the implementation of ResoucesLoadPanel.setNameFilterDisabled.
Now the value of the filter is reset only when the disable value actually changes. Besides, it's reset to the value it had prevoiusly, not to the first value.
This commit is contained in:
parent
41102d19e8
commit
b9458dc93d
1 changed files with 6 additions and 2 deletions
|
|
@ -376,8 +376,12 @@ public class ResourcesLoadPanel extends HtmlMacroComponent {
|
|||
}
|
||||
|
||||
public void setNameFilterDisabled(boolean disabled) {
|
||||
filterByNamePosition = disabled? -1 : 0;
|
||||
((Combobox) getFellow("filterByNameCombo")).setDisabled(disabled);
|
||||
Combobox combo = ((Combobox) getFellow("filterByNameCombo"));
|
||||
if(combo.isDisabled() != disabled) {
|
||||
filterByNamePosition = disabled? -1 :
|
||||
((Integer)combo.getSelectedItemApi().getValue()).intValue();
|
||||
combo.setDisabled(disabled);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue