Package org.zkoss.ganttz.data.resourceload

Examples of org.zkoss.ganttz.data.resourceload.LoadTimeLine


                if (byOrder.get(order) == null) {
                    // no allocations found for order
                    continue;
                }
                TimeLineRole<BaseEntity> role = getCurrentTimeLineRole(order);
                result.add(new LoadTimeLine(buildTimeLine(criterion,
                        order.getName(), "global-generic", byOrder.get(order),
                        role), buildTimeLinesForOrder(order, criterion,
                        byOrder.get(order))));
            }
            return result;
View Full Code Here


        LoadTimeLine buildTimeLine(Criterion criterion, String name,
                String type, List<ResourceAllocation<?>> allocations,
                TimeLineRole<BaseEntity> role) {
            List<GenericResourceAllocation> generics = onlyGeneric(allocations);
            return new LoadTimeLine(name, createPeriods(criterion, generics),
                    type, role);
        }
View Full Code Here

                    /**
                     * Each resource line has the same role than its allocated
                     * task, so that link with the resource allocation screen
                     */
                    LoadTimeLine timeLine = new LoadTimeLine(buildTimeLine(
                            criterions, task, criterion, "global-generic",
                            resourceAllocations, role),
                            buildTimeLinesForEachResource(criterion,
                                    genericAllocations, role));
                    if (!timeLine.isEmpty()) {
                        secondLevel.add(timeLine);
                    }
                }
            }
            return secondLevel;
View Full Code Here

                Resource resource = entry.getKey();
                List<ResourceAllocation<?>> resourceAllocations = entry
                        .getValue();
                String descriptionTimeLine = resource.getShortDescription();

                LoadTimeLine timeLine = buildTimeLine(resource,
                        descriptionTimeLine, resourceAllocations, "generic",
                        role);
                if (!timeLine.isEmpty()) {
                    secondLevel.add(timeLine);
                }

            }
            return secondLevel;
View Full Code Here

TOP

Related Classes of org.zkoss.ganttz.data.resourceload.LoadTimeLine

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.