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)
MenuVisitor
visitEnter
in interface MenuVisitor
menus
- 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 MenuVisitor
menus
- the top-level container of the menus that will be visited.public boolean visitEnter(MenuGroup menuGroup)
MenuVisitor
visitEnter
in interface MenuVisitor
menuGroup
- 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 MenuVisitor
menuGroup
- the menu group to leave.public void visit(MenuItemPlain menuItemPlain)
MenuVisitor
visit
in interface MenuVisitor
menuItemPlain
- the plain menu item to visit.public void visit(MenuItemCommand menuItemCommand)
MenuVisitor
visit
in interface MenuVisitor
menuItemCommand
- the command menu item to visit.public void visit(MenuItemPerspective menuItemPerspective)
MenuVisitor
visit
in interface MenuVisitor
menuItemPerspective
- the command menu item to visit.public void visit(MenuCustom<?> menuCustom)
MenuVisitor
visit
in interface MenuVisitor
menuCustom
- the custom (application provides the widget) menu item to visit.Copyright © 2012–2019 JBoss by Red Hat. All rights reserved.