ItEr47S11CUVisualizacionResponsabilidadesTRaballoNaPlanificacionItEr46S12: Showing leftpane's textboxes disabled when the dateboxes are disabled.

This commit is contained in:
Óscar González Fernández 2010-02-15 01:29:52 +01:00
parent 010c6f1a0c
commit 73a076379b

View file

@ -126,10 +126,14 @@ public class LeftTasksTreeRow extends GenericForwardComposer {
*/
public void userWantsDateBox(Component component) {
if (component == startDateTextBox) {
showDateBox(startDateBox, startDateTextBox);
if (canChangeStartDate()) {
showDateBox(startDateBox, startDateTextBox);
}
}
if (component == endDateTextBox) {
showDateBox(endDateBox, endDateTextBox);
if (canChangeEndDate()) {
showDateBox(endDateBox, endDateTextBox);
}
}
}
@ -362,10 +366,15 @@ public class LeftTasksTreeRow extends GenericForwardComposer {
private void updateComponents() {
getNameBox().setValue(task.getName());
getNameBox().setTooltiptext(task.getName());
getStartDateBox().setValue(task.getBeginDate());
getStartDateBox().setDisabled(!canChangeStartDate());
getStartDateTextBox().setDisabled(!canChangeStartDate());
getEndDateBox().setValue(task.getEndDate());
getEndDateBox().setDisabled(!canChangeEndDate());
getEndDateTextBox().setDisabled(!canChangeEndDate());
getStartDateTextBox().setValue(asString(task.getBeginDate()));
getEndDateTextBox().setValue(asString(task.getEndDate()));
}