summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod
diff options
context:
space:
mode:
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/JCheckBoxTree.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/JCheckBoxTree.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/JCheckBoxTree.java
index 21460ba2..bdb3e360 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/JCheckBoxTree.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/control/JCheckBoxTree.java
@@ -100,16 +100,13 @@ public class JCheckBoxTree extends JTree {
// Hack to get rid of leaf nodes with an expand button
// first expand all nodes
for (int i = 0; i < this.getRowCount(); i++) {
- System.out.println("Open: " + i);
this.expandRow(i);
}
// Now collapse again if it's not first level
for (int i = 0; i > this.getRowCount(); i++) {
TreePath path = this.getPathForRow(i);
- if (path.getPathCount() > 1) {
- System.out.println("Collpasing: " + path);
+ if (path.getPathCount() > 1)
this.collapseRow(i);
- }
}
}
// Preselection stuff
@@ -119,14 +116,10 @@ public class JCheckBoxTree extends JTree {
for (TreePath path : paths) {
if (path != null) {
checkSubTree(path, check);
- if (check) {
- System.out.println("Checking: " + path);
+ if (check)
this.expandPath(path);
- }
}
}
- // here we still have all but the first level nodes collapsed
- // so we need to expand the nodes we just checked...
}
// New method that returns only the checked paths (totally ignores original
@@ -149,7 +142,6 @@ public class JCheckBoxTree extends JTree {
TreePath path = it.getKey();
CheckedNode cn = it.getValue();
if (cn.hasChildren && cn.allChildrenSelected && !isCollapsed(path)) {
-// System.out.println("Collapsing: " + path);
collapsePath(path);
}
}