ItEr57S10CUEscaladoPantallaCargaRecursosEmpresaItEr56S11: Partial rewrite of the name filter on the resources load panel.
Now it works faster, and the bug that reset the filter right after having used it is solved.
This commit is contained in:
parent
343d547568
commit
da40d1d2ef
1 changed files with 22 additions and 1 deletions
|
|
@ -381,7 +381,28 @@ public class ResourcesLoadPanel extends HtmlMacroComponent {
|
|||
public void onSelectFilterByName(Integer filterByNamePosition) {
|
||||
this.filterByNamePosition = filterByNamePosition.intValue();
|
||||
this.feedBackMessage = _("filtering by name");
|
||||
invalidatingChangeHappenedWithFeedback();
|
||||
changeNameFilterWithFeedback();
|
||||
}
|
||||
|
||||
private void changeNameFilterWithFeedback() {
|
||||
LongOperationFeedback.execute(componentOnWhichGiveFeedback,
|
||||
new ILongOperation() {
|
||||
|
||||
@Override
|
||||
public void doAction() throws Exception {
|
||||
treeModel = createModelForTree();
|
||||
timeTrackerComponent = timeTrackerForResourcesLoadPanel(timeTracker);
|
||||
resourceLoadList = new ResourceLoadList(timeTracker, treeModel);
|
||||
leftPane = new ResourceLoadLeftPane(treeModel, resourceLoadList);
|
||||
registerNeededScripts();
|
||||
afterCompose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return getFeedBackMessage();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void setNameFilterDisabled(boolean disabled) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue