/[classpath]/classpath/javax/swing/plaf/basic/BasicTreeUI.java
ViewVC logotype

Diff of /classpath/javax/swing/plaf/basic/BasicTreeUI.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.17 by langel, Wed Jul 6 19:46:50 2005 UTC revision 1.18 by langel, Wed Jul 6 20:33:15 2005 UTC
# Line 621  public class BasicTreeUI Line 621  public class BasicTreeUI
621           */           */
622          private DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node)          private DefaultMutableTreeNode getNextVisibleNode(DefaultMutableTreeNode node)
623          {          {
624                    DefaultMutableTreeNode next = null;
625                    TreePath current = null;
626                    
627                  if (node != null)                  if (node != null)
628                            next = node.getNextNode();
629                    
630                    if (next != null)
631                  {                  {
632                          DefaultMutableTreeNode next = node.getNextNode();                          current = new TreePath(next.getPath());
633                          TreePath current = new TreePath(next.getPath());                          if (tree.isVisible(current))
                         if (next != null && tree.isVisible(current))  
634                                  return next;                                  return next;
635                            
636                          while (next != null && !tree.isVisible(current))                          while (next != null && !tree.isVisible(current))
637                          {                          {
638                                  next = next.getNextNode();                                  next = next.getNextNode();
# Line 635  public class BasicTreeUI Line 640  public class BasicTreeUI
640                                  if (next != null)                                  if (next != null)
641                                          current = new TreePath(next.getPath());                                          current = new TreePath(next.getPath());
642                          }                          }
                         node = next;  
643                  }                  }
644                  return node;                  return next;
645          }          }
646                    
647          /**          /**
# Line 666  public class BasicTreeUI Line 670  public class BasicTreeUI
670           */           */
671          public int getRowCount(JTree tree)          public int getRowCount(JTree tree)
672          {          {
673                    // FIXME: check visibility
674                  return treeState.getRowCount();                  return treeState.getRowCount();
675          }          }
676    

Legend:
Removed from v.1.17  
changed lines
  Added in v.1.18

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26