Package org.zkoss.ganttz.data

Examples of org.zkoss.ganttz.data.Task$IReloadResourcesTextRequested


        planner.setConfiguration(configuration);
    }

    @Override
    public Position remove(T domainObject) {
        Task task = mapper.findAssociatedBean(domainObject);
        Position position = mapper.findPositionFor(task);
        adapter.doRemovalOf(mapper.findAssociatedDomainObject(task));
        mapper.remove(domainObject);
        diagramGraph.remove(task);
        task.removed();
        planner.removeTask(task);
        return position;
    }
View Full Code Here


        return timeTracker;
    }

    @Override
    public void recalculatePosition(T domainObject) {
        Task associatedTask = mapper.findAssociatedBean(domainObject);
        diagramGraph.enforceRestrictions(associatedTask);
    }
View Full Code Here

                fromTaskToParent.put(task, position.getParent());
            }
        }

        void remove(T domainObject) {
            Task toBeRemoved = findAssociatedBean(domainObject);
            fromDomainToTask.remove(domainObject);
            fromTaskToDomain.remove(toBeRemoved);
            TaskContainer parent = fromTaskToParent.get(toBeRemoved);
            if (parent != null) {
                parent.remove(toBeRemoved);
View Full Code Here

            @Override
            public void doAction() {
                int i = 1;
                final int total = reassignations.size();
                for (final WithAssociatedEntity each : reassignations) {
                    Task ganttTask = each.ganntTask;
                    GanttDate previousStart = ganttTask.getBeginDate();
                    GanttDate previousEnd = ganttTask.getEndDate();

                    transactionService
                            .runOnReadOnlyTransaction(reassignmentTransaction(each));
                    diagramGraph.enforceRestrictions(each.ganntTask);
                    ganttTask.enforceDependenciesDueToPositionPotentiallyModified();
                    ganttTask.updateSizeDueToDateChanges(previousStart, previousEnd);

                    updater.doUpdate(showCompleted(i, total));
                    i++;
                }
            }
View Full Code Here

    public void showResorceAllocationIfIsNeeded() {
        if ((task != null) && (planner != null)) {

            planner.expandAllAlways();

            Task foundTask = null;
            TaskElement foundTaskElement = null;
            IContext<TaskElement> context = (IContext<TaskElement>) planner
                    .getContext();
            Map<TaskElement, Task> map = context.getMapper()
                    .getMapDomainToTask();
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.data.Task$IReloadResourcesTextRequested

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.