summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx
diff options
context:
space:
mode:
authorJonathan Bauer2016-03-15 14:11:38 +0100
committerJonathan Bauer2016-03-15 14:11:38 +0100
commitda82ce61a8ba91af16d6da043c9f931a927a79ea (patch)
tree432d00b0bb3043389c573f3ae83d4fe808939863 /dozentenmodul/src/main/java/org/openslx
parent[client] reworked lecture details window (diff)
downloadtutor-module-da82ce61a8ba91af16d6da043c9f931a927a79ea.tar.gz
tutor-module-da82ce61a8ba91af16d6da043c9f931a927a79ea.tar.xz
tutor-module-da82ce61a8ba91af16d6da043c9f931a927a79ea.zip
[client] cleanup debug stuff
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx')
-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);
}
}