ItEr27S06CUAsignacionGrupoRecursosAPlanificacionItEr26S07: When deleting an allocation the apply button is enabled

This commit is contained in:
Óscar González Fernández 2009-09-23 01:18:44 +02:00
parent 112e9f0e8b
commit 79d01b14fe
2 changed files with 14 additions and 1 deletions

View file

@ -157,4 +157,15 @@ class FormBinder {
return assignedHoursComponent.getValue();
}
public void setDeleteButtonFor(SpecificAllocationDTO data,
Button deleteButton) {
deleteButton.addEventListener(Events.ON_CLICK, new EventListener() {
@Override
public void onEvent(Event event) throws Exception {
applyButton.setDisabled(false);
}
});
}
}

View file

@ -303,7 +303,9 @@ public class ResourceAllocationController extends GenericForwardComposer {
bindResourcesPerDay(appendDecimalbox(item), data);
// On click delete button
appendButton(item, _("Delete")).addEventListener("onClick",
Button deleteButton = appendButton(item, _("Delete"));
formBinder.setDeleteButtonFor(data, deleteButton);
deleteButton.addEventListener("onClick",
new EventListener() {
@Override