Common Scrollable interface
[nikiroo-utils.git] / src / jexer / TDirectoryTreeItem.java
index 0066e49356c3806c1af8f68a59c419001e631a39..6d5d018004775c97ae1b476018c5c30f398ce996 100644 (file)
@@ -3,7 +3,7 @@
  *
  * The MIT License (MIT)
  *
- * Copyright (C) 2016 Kevin Lamonte
+ * Copyright (C) 2017 Kevin Lamonte
  *
  * Permission is hereby granted, free of charge, to any person obtaining a
  * copy of this software and associated documentation files (the "Software"),
@@ -76,7 +76,7 @@ public class TDirectoryTreeItem extends TTreeItem {
         setExpandable(true);
 
         if (!isExpanded() || !isExpandable()) {
-            getTreeView().reflow();
+            getTreeView().reflowData();
             return;
         }
 
@@ -103,7 +103,7 @@ public class TDirectoryTreeItem extends TTreeItem {
         }
         Collections.sort(getChildren());
 
-        getTreeView().reflow();
+        getTreeView().reflowData();
     }
 
     /**
@@ -212,6 +212,6 @@ public class TDirectoryTreeItem extends TTreeItem {
             getTreeView().setSelected(childFile);
             setExpanded(oldExpanded);
         }
-        getTreeView().reflow();
+        getTreeView().reflowData();
     }
 }