ItEr43S18CUMarcarUnidadeTraballoExportableItEr42S25: Renamed methods showEditForm and used methods init (now that window visibility is managed from EditTaskController).

This commit is contained in:
Manuel Rego Casasnovas 2010-01-15 10:27:25 +01:00 committed by Javier Moran Rua
parent 9877ba1b3f
commit 1f07fb016c
5 changed files with 8 additions and 8 deletions

View file

@ -114,7 +114,7 @@ public class DataForPlanner {
public void doAction(
IContextWithPlannerTask<ITaskFundamentalProperties> context,
ITaskFundamentalProperties task) {
taskEditForm.showEditFormFor(context.getRelativeTo(),
taskEditForm.init(context.getRelativeTo(),
context.getTask());
}

View file

@ -50,7 +50,7 @@ public class TaskEditFormComposer extends GenericForwardComposer {
super.doAfterCompose(comp);
}
public void showEditFormFor(Component openRelativeTo, Task task) {
public void init(Component openRelativeTo, Task task) {
this.currentTask = task;
this.taskDTO = toDTO(task);
updateComponentValuesForTask(taskDTO);

View file

@ -61,7 +61,7 @@ public class SubcontractController extends GenericForwardComposer {
tabpanel = (Tabpanel) comp;
}
public void showWindow(Task task,
public void init(Task task,
IContextWithPlannerTask<TaskElement> context) {
this.context = context;
subcontractModel.init(task, context.getTask());

View file

@ -98,9 +98,9 @@ public class EditTaskController extends GenericForwardComposer {
this.taskElement = taskElement;
this.context = context;
taskPropertiesController.showEditFormFor(context, taskElement);
taskPropertiesController.init(context, taskElement);
if (taskElement.isSubcontracted()) {
subcontractController.showWindow((Task) taskElement, context);
subcontractController.init((Task) taskElement, context);
}
try {
@ -156,7 +156,7 @@ public class EditTaskController extends GenericForwardComposer {
if (subcontract) {
resourceAllocationTab.setVisible(false);
subcontractTab.setVisible(true);
subcontractController.showWindow((Task) taskElement, context);
subcontractController.init((Task) taskElement, context);
} else {
subcontractTab.setVisible(false);
resourceAllocationTab.setVisible(true);

View file

@ -162,11 +162,11 @@ public class TaskPropertiesController extends GenericForwardComposer {
private Checkbox subcontractCheckbox;
public void showEditFormFor(IContextWithPlannerTask<TaskElement> context,
public void init(IContextWithPlannerTask<TaskElement> context,
TaskElement taskElement) {
this.currentContext = context;
this.currentTaskElement = taskElement;
taskEditFormComposer.showEditFormFor(context.getRelativeTo(), context.getTask());
taskEditFormComposer.init(context.getRelativeTo(), context.getTask());
updateComponentValuesForTask();
}