Package net.sourceforge.processdash.ev

Examples of net.sourceforge.processdash.ev.EVTaskListRollup


    private static void getUniqueSchedules(Collection<EVTaskList> taskLists,
            Map<String, EVSchedule> results) {
        for (EVTaskList taskList : taskLists) {

            if (taskList instanceof EVTaskListRollup) {
                EVTaskListRollup rollup = (EVTaskListRollup) taskList;
                Collection<EVTaskList> subTaskLists = rollup.getSubSchedules();
                getUniqueSchedules(subTaskLists, results);

            } else {
                String key = taskList.getID();
                if (!StringUtils.hasValue(key))
View Full Code Here


            Map<String, EVTaskList> results) {
        for (int i = 0; i < taskLists.length; i++) {
            EVTaskList taskList = (EVTaskList) taskLists[i];

            if (taskList instanceof EVTaskListRollup) {
                EVTaskListRollup rollup = (EVTaskListRollup) taskList;
                List subTaskLists = rollup.getSubSchedules();
                getUniqueTaskLists(subTaskLists.toArray(), results);

            } else {
                String key = taskList.getID();
                if (!StringUtils.hasValue(key))
View Full Code Here

        collectScheduleRows(rollupTaskList);
    }

    private void collectScheduleRows(EVTaskList tl) {
        if (tl instanceof EVTaskListRollup) {
            EVTaskListRollup rollup = (EVTaskListRollup) tl;
            for (int i = 0; i < rollup.getSubScheduleCount(); i++)
                collectScheduleRows(rollup.getSubSchedule(i));

        } else {
            ScheduleTableRow oneRow = new ScheduleTableRow(tl);
            if (oneRow.isDisplayable())
                scheduleRows.add(oneRow);
View Full Code Here

                     JOptionPane.ERROR_MESSAGE);
                return;
            }

            // create the new task list, and add the current list to it.
            EVTaskListRollup rollup = new EVTaskListRollup
                (newName, data, hierarchy, cache, false);
            rollup.addTask(TaskScheduleCollaborationWizard.this.taskListName,
                           data, hierarchy, cache, false);
            rollup.save();
            rollup = null;

            // display the results screen.
            rollupTaskListName = newName;
            showResultsScreen(ROLLUP, NO_PASSWORD);
View Full Code Here

             dash.getCache(), true);

        // If the earned value model doesn't already exist, create a new one.
        if (model == null) {
            if (createRollup)
                model = new EVTaskListRollup
                    (taskListName, dash.getData(), dash.getHierarchy(),
                     dash.getCache(),true);
            else
                model = new EVTaskListData
                    (taskListName, dash.getData(), dash.getHierarchy(), true);
View Full Code Here

   
    private EVTaskList findTaskListWithRoot(EVTaskList tl, EVTask possibleRoot) {
        if (tl.getRoot() == possibleRoot)
            return tl;
        if (tl instanceof EVTaskListRollup) {
            EVTaskListRollup rtl = (EVTaskListRollup) tl;
            for (int i = ((EVTask) rtl.getRoot()).getNumChildren(); i-- > 0; ) {
                EVTaskList result = findTaskListWithRoot(rtl.getSubSchedule(i),
                        possibleRoot);
                if (result != null)
                    return result;
            }
        }
View Full Code Here

                out.print(formatTime(timeRemaining));
                out.println("</td></tr>\n</table>");
            }
            out.print("</div>\n");
        } else {
            EVTaskListRollup parentEVModel = (EVTaskListRollup) evModel;
            for (int i = 0;  i < parentEVModel.getSubScheduleCount();  i++) {
                EVTaskList childModel = parentEVModel.getSubSchedule(i);
                String childName = EVTaskList.cleanupName(childModel
                        .getTaskListName());
                int childPurpose = (childModel instanceof EVTaskListRollup
                        ? SUB_REPORT : LEAF_REPORT);
                writeReport(childName, childModel, effDate, settings,
View Full Code Here

TOP

Related Classes of net.sourceforge.processdash.ev.EVTaskListRollup

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.