Examples of EVTaskDependency


Examples of net.sourceforge.processdash.ev.EVTaskDependency

    protected void printUpcomingDependencies(DependencyForCoord coord,
            TableModel tasks, boolean showAssignedTo, boolean hideNames,
            boolean showMilestones, boolean showLabels, int pos) {

        boolean isExcel = isExportingToExcel();
        EVTaskDependency d = coord.d.clone();
       
        out.print("<div class='expanded'>");
        printExpansionIcon();
       
        out.println(encodeHTML(d.getDisplayName()));
       
        if (!isExcel) {
            out.print("<span class='hideIfExpanded'>");
            out.print(TaskDependencyAnalyzer.getBriefDetails(d,
                    TaskDependencyAnalyzer.HTML_SEP, hideNames));
            out.println("</span>");
        }
       
        out.println("<div class='dependDetail hideIfCollapsed'>");
        interpOut("<b>${Columns.Percent_Complete_Tooltip}:</b> ");
        out.println(formatPercent(d.getPercentComplete()));
        interpOut("<br><b>${Columns.Projected_Date}:</b> ");
        out.println(encodeHTML(d.getProjectedDate()));
        if (!hideNames) {
            interpOut("<br><b>${Columns.Assigned_To}:</b> ");
            out.println(encodeHTML(d.getAssignedTo()));
        }

        // Now, print a table of the dependent tasks.
        interpOut("<table border=1 class='sortable' id='$$$_dep_"+pos+"'><tr>"
                + "<td class=header>${Columns.Needed_For}</td>"
                + "<td class=header>${Columns.Projected_Date}</td>");
        if (showMilestones)
            interpOut("<td class=header>${Columns.Milestone}</td>");
        if (showLabels)
            interpOut("<td class=header>${Columns.Labels}</td>");
        if (showAssignedTo)
            interpOut("<td class=header>${Columns.Needed_By}</td>");
        out.println("</tr>");
       
        Collections.sort(coord.matchingTasks);
        for (RowNumWithDate taskMatch : coord.matchingTasks) {
            int i = taskMatch.rowNumber;
            out.print("<tr><td class='left'>");
            out.print(encodeHTML(tasks.getValueAt(i, EVTaskList.TASK_COLUMN)));
            out.print("</td>");

            d.loadParentDate(tasks.getValueAt(i, EVTaskList.EVTASK_NODE_COLUMN));
            printDateCell(d.getParentDate(),
                TaskDependencyAnalyzer.HTML_INCOMPLETE_MISORD_IND,
                d.isMisordered());

            if (showMilestones) {
                out.print("<td class='left'>");
                out.print(encodeHTML
                          (tasks.getValueAt(i, EVTaskList.MILESTONE_COLUMN)));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.