Package org.zkoss.ganttz

Examples of org.zkoss.ganttz.TaskComponent


    }

    private void updateTaskComponents() {
        if (context.getRelativeTo() instanceof TaskComponent) {
            // update the current taskComponent
            TaskComponent taskComponent = (TaskComponent) context
                    .getRelativeTo();
            updateTaskComponent(taskComponent);

            // update the current taskComponent's parents
            List<Task> parents = new ArrayList<Task>(context.getMapper()
                    .getParents(taskComponent.getTask()));
            TaskList taskList = taskComponent.getTaskList();
            for (Task task : parents) {
                TaskComponent parentComponent = taskList.find(task);
                if (parentComponent != null) {
                    updateTaskComponent(parentComponent);
                }
            }
        }
View Full Code Here


        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();
        }

        context.recalculatePosition(taskElement);
    }
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.TaskComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.