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:
Jacobo Aragunde Pérez 2010-05-06 15:02:58 +02:00 committed by Javier Moran Rua
parent 343d547568
commit da40d1d2ef

View file

@ -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) {