public abstract class BaseMenuVisitor extends Object implements MenuVisitor
| Constructor and Description |
|---|
BaseMenuVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
visit(MenuCustom<?> menuCustom)
Visits a custom menu item in the menu tree.
|
void |
visit(MenuItemCommand menuItemCommand)
Visits a menu item that has an associated command.
|
void |
visit(MenuItemPerspective menuItemPerspective)
Visits a menu item that has an associated perspective.
|
void |
visit(MenuItemPlain menuItemPlain)
Visits a plain menu item in the tree.
|
boolean |
visitEnter(MenuGroup menuGroup)
Visits a menu group in the tree of menus.
|
boolean |
visitEnter(Menus menus)
Visits the top-level menu container.
|
void |
visitLeave(MenuGroup menuGroup)
Visits a menu group in the tree of menus.
|
void |
visitLeave(Menus menus)
Ends the visit of the top-level menu container.
|
public boolean visitEnter(Menus menus)
MenuVisitorvisitEnter in interface MenuVisitormenus - the top-level container of the menus that will be visited.public void visitLeave(Menus menus)
MenuVisitor
Note that this method is not called if MenuVisitor.visitEnter(Menus) returns false.
visitLeave in interface MenuVisitormenus - the top-level container of the menus that will be visited.public boolean visitEnter(MenuGroup menuGroup)
MenuVisitorvisitEnter in interface MenuVisitormenuGroup - the menu group to visit.MenuVisitor.visitLeave(MenuGroup) call for this
node.public void visitLeave(MenuGroup menuGroup)
MenuVisitor
Note that this method is not called for a MenuGroup where the MenuVisitor.visitEnter(MenuGroup) method returned false.
visitLeave in interface MenuVisitormenuGroup - the menu group to leave.public void visit(MenuItemPlain menuItemPlain)
MenuVisitorvisit in interface MenuVisitormenuItemPlain - the plain menu item to visit.public void visit(MenuItemCommand menuItemCommand)
MenuVisitorvisit in interface MenuVisitormenuItemCommand - the command menu item to visit.public void visit(MenuItemPerspective menuItemPerspective)
MenuVisitorvisit in interface MenuVisitormenuItemPerspective - the command menu item to visit.public void visit(MenuCustom<?> menuCustom)
MenuVisitorvisit in interface MenuVisitormenuCustom - the custom (application provides the widget) menu item to visit.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.