Esempio n. 1
0
 public void testExpand() {
   TreePath rootPath = collapseRoot();
   myTree.setSelectionPath(rootPath);
   TreeExpandCollapse.expand(myTree);
   checkExpanded(rootPath);
   checkCollapsed(myChildAPath);
 }
Esempio n. 2
0
 public void testTotalExpandWithoutSelection() {
   collapseRoot();
   myTree.clearSelection();
   TreeExpandCollapse.expand(myTree);
   checkCollapsed(new TreePath(myRoot));
   checkCollapsed(myChildAPath);
   checkCollapsed(myChildBPath);
 }
Esempio n. 3
0
 public void testExpandWithoutSelection() {
   myTree.clearSelection();
   TreeExpandCollapse.expand(myTree);
 }