Class TraversingMenuSelector
java.lang.Object
com.foreach.across.modules.web.menu.TraversingMenuSelector
- All Implemented Interfaces:
MenuSelector
Simple implementation of MenuSelector that will iterate over all items
in a menu tree and find the lowest item that matches.
-
Constructor Summary
ModifierConstructorDescriptionprotected
TraversingMenuSelector
(boolean findLowest) If the boolean parameter is true, the entire tree will be scanned for the lowest matching item. -
Method Summary
Modifier and TypeMethodDescriptionSearch the given Menu for an item that matches the current selector.boolean
protected abstract boolean
void
setFindLowest
(boolean findLowest)
-
Constructor Details
-
TraversingMenuSelector
protected TraversingMenuSelector(boolean findLowest) If the boolean parameter is true, the entire tree will be scanned for the lowest matching item. If false, the first matching item will be returned.- Parameters:
findLowest
- True if the lowest matching item should be found.
-
-
Method Details
-
isFindLowest
public boolean isFindLowest() -
setFindLowest
public void setFindLowest(boolean findLowest)
-