ItEr33S14CUCreacionUnidadesPlanificacion: Disabled editing end date in left pane
This commit is contained in:
parent
0c8bacef83
commit
28d159751b
1 changed files with 1 additions and 10 deletions
|
|
@ -107,11 +107,6 @@ public class LeftTasksTreeRow extends GenericForwardComposer {
|
|||
return endDateBox;
|
||||
}
|
||||
|
||||
public void setEndDateBox(Datebox endDateBox) {
|
||||
this.endDateBox = endDateBox;
|
||||
this.endDateBox.setFormat("dd/MM/yyyy");
|
||||
}
|
||||
|
||||
public Task getData() {
|
||||
return task;
|
||||
}
|
||||
|
|
@ -337,6 +332,7 @@ public class LeftTasksTreeRow extends GenericForwardComposer {
|
|||
|
||||
private void findComponentsForEndDateCell(Treecell treecell) {
|
||||
endDateBox = findDateBoxOfCell(treecell);
|
||||
endDateBox.setDisabled(true);
|
||||
endDateTextBox = findTextBoxOfCell(treecell);
|
||||
}
|
||||
|
||||
|
|
@ -352,13 +348,8 @@ public class LeftTasksTreeRow extends GenericForwardComposer {
|
|||
|
||||
public void updateBean() {
|
||||
Date begin = getStartDateBox().getValue();
|
||||
Date end = getEndDateBox().getValue();
|
||||
if (end.before(begin)) {
|
||||
end = new Date(begin.getTime() + task.getLengthMilliseconds());
|
||||
}
|
||||
task.setName(getNameBox().getValue());
|
||||
task.setBeginDate(begin);
|
||||
task.setEndDate(end);
|
||||
}
|
||||
|
||||
private void updateComponents() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue