private void updateTask(IContext<TaskElement> context,
TaskElement taskElement) {
taskElement.updateAdvancePercentageFromOrderElement();
Planner planner = (Planner) context.getRelativeTo();
org.zkoss.ganttz.data.Task task = context
.getMapper().findAssociatedBean(taskElement);
task.firePropertyChangeForTaskDates();
TaskComponent taskComponent = planner.getTaskComponentRelatedTo(task);
if (taskComponent != null) {
taskComponent.updateTooltipText();
taskComponent.updateProperties();
taskComponent.invalidate();
}