use of teamdash.wbs.WBSNode in project processdash by dtuma.
the class ProjectWbsNodeChange method addChildRows.
private void addChildRows(List<ProjectChangeReportRow> result, WBSNode node, int indent) {
indent++;
for (WBSNode child : node.getWbsModel().getChildren(node)) {
result.add(new ProjectChangeReportRow(indent, false, null, null, getNameHtml(child), false, null));
addChildRows(result, child, indent);
}
}
use of teamdash.wbs.WBSNode in project processdash by dtuma.
the class ProjectWbsNodeChange method addChildRows.
private void addChildRows(List<ProjectChangeReportRow> result, WbsNodeTimeReportRow parentRow, WBSNode parentNode, int indent) {
indent++;
for (WBSNode child : parentNode.getWbsModel().getChildren(parentNode)) {
WbsNodeTimeReportRow childRow = new WbsNodeTimeReportRow(child, indent, null, null);
result.add(childRow);
addChildRows(result, childRow, child, indent);
parentRow.sumChildData(childRow);
}
parentRow.loadDirectTimeData(parentNode);
}
use of teamdash.wbs.WBSNode in project processdash by dtuma.
the class DataProblemsTextArea method setCurrentNode.
public void setCurrentNode(Integer nodeID) {
this.currentNodeID = nodeID;
String text = null;
WBSNode wbsNode = getNode(nodeID);
if (wbsNode != null)
text = ErrorNotesColumn.getTextAt(wbsNode);
setText(text);
setVisible(text != null && text.trim().length() > 0);
}
use of teamdash.wbs.WBSNode in project processdash by dtuma.
the class DataProblemsTextArea method maybeSaveDataNotes.
private void maybeSaveDataNotes() {
WBSNode wbsNode = getNode(currentNodeID);
if (wbsNode == null)
return;
String currentText = ErrorNotesColumn.getTextAt(wbsNode);
String newText = getText().trim();
if (newText.equals(nvl(currentText)))
return;
wbsDataModel.setValueAt(newText, wbsNode, dataProblemsColumn);
UndoList.madeChange(tabPanel, "Editing value in 'Data Problems' column");
int row = wbsDataModel.getWBSModel().getRowForNode(wbsNode);
if (row != -1) {
wbsDataModel.getWBSModel().fireTableCellUpdated(row, 0);
wbsDataModel.fireTableCellUpdated(row, dataProblemsColumn);
}
}
use of teamdash.wbs.WBSNode in project processdash by dtuma.
the class BlameValueTableModel method setBlameNodeStructure.
public void setBlameNodeStructure(BlameNodeData nodeData) {
clearRows();
// display a message about the addition of this node
if (nodeData.getAddedBy() != null)
addBlameRow(nodeData.getAddedBy(), resources.getString("Node.Added"), null);
// display historical changes to the name of this node
if (nodeData.getNodeNameChanges() != null) {
addBlameRow(null, RENAME_HEADER, null);
addBlameValues(nodeData.getNodeNameChanges(), INITIAL_NAME);
}
// display historical changes to the parent of this node
if (nodeData.getParentPathChanges() != null) {
addBlameRow(null, MOVE_HEADER, null);
addBlameValues(nodeData.getParentPathChanges(), INITIAL_PARENT);
}
// display children that have been deleted from this node
if (nodeData.getDeletedChildren() != null) {
addBlameRow(null, DELETE_HEADER, null);
for (Entry<WBSNode, BlamePoint> e : nodeData.getDeletedChildren().entrySet()) {
BlamePoint blame = e.getValue();
String deletedChildName = e.getKey().getName();
addBlameRow(blame, deletedChildName, null);
}
}
}
Aggregations