Package org.zkoss.ganttz.data

Examples of org.zkoss.ganttz.data.Dependency


            }
        }
    }

    public void addDependency(TaskComponent source, TaskComponent destination) {
        context.addDependency(new Dependency(source.getTask(), destination
                .getTask(), DependencyType.END_START));
    }
View Full Code Here


    public DependencyType getType() {
        return type;
    }

    public Dependency toDependency(IDomainAndBeansMapper<T> mapper) {
        return new Dependency(mapper.findAssociatedBean(source), mapper
                .findAssociatedBean(destination), type);
    }
View Full Code Here

     * @param type
     *            the new type
     * @return true only if the new dependency can be added.
     */
    public boolean changeType(Dependency dependency, DependencyType type) {
        Dependency newDependency = dependency.createWithType(type);
        boolean canAddDependency = diagramGraph.canAddDependency(newDependency);
        if (canAddDependency) {
            removeDependency(dependency);
            addDependency(newDependency);
        }
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.data.Dependency

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.