com.levigo.util.swing.flextree
Class PredicateNavigator

java.lang.Object
  extended by com.levigo.util.swing.flextree.PredicateNavigator
All Implemented Interfaces:
TreeNavigator

public class PredicateNavigator
extends Object
implements TreeNavigator


Constructor Summary
PredicateNavigator(TreeNavigator navigator)
           
PredicateNavigator(TreeNavigator navigator, Matcher<TreePath> p)
           
 
Method Summary
 Matcher<TreePath> getMatchPredicate()
           
 TreePath next(TreePath current)
           
 TreePath previous(TreePath current)
          A depth-first traversal of the tree starting at the given node.
 void setMatchPredicate(Matcher<TreePath> matchPredicate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PredicateNavigator

public PredicateNavigator(TreeNavigator navigator)

PredicateNavigator

public PredicateNavigator(TreeNavigator navigator,
                          Matcher<TreePath> p)
Method Detail

getMatchPredicate

public Matcher<TreePath> getMatchPredicate()

setMatchPredicate

public void setMatchPredicate(Matcher<TreePath> matchPredicate)

next

public TreePath next(TreePath current)
Specified by:
next in interface TreeNavigator

previous

public TreePath previous(TreePath current)
A depth-first traversal of the tree starting at the given node. Child nodes are considered only starting at the given index. Finds the next node in forward direction.

Specified by:
previous in interface TreeNavigator
Parameters:
current -
Returns:


Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.