@JsType
public interface MenuVisitor
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.
|
boolean visitEnter(Menus menus)
menus
- the top-level container of the menus that will be visited.void visitLeave(Menus menus)
Note that this method is not called if visitEnter(Menus)
returns false.
menus
- the top-level container of the menus that will be visited.@JsMethod(name="visitEnterGroup") boolean visitEnter(MenuGroup menuGroup)
menuGroup
- the menu group to visit.visitLeave(MenuGroup)
call for this
node.@JsMethod(name="visitLeaveGroup") void visitLeave(MenuGroup menuGroup)
Note that this method is not called for a MenuGroup where the visitEnter(MenuGroup)
method returned false.
menuGroup
- the menu group to leave.void visit(MenuItemPlain menuItemPlain)
menuItemPlain
- the plain menu item to visit.@JsMethod(name="visitCommand") void visit(MenuItemCommand menuItemCommand)
menuItemCommand
- the command menu item to visit.@JsMethod(name="visitPerspective") void visit(MenuItemPerspective menuItemPerspective)
menuItemPerspective
- the command menu item to visit.@JsMethod(name="visitCustom") void visit(MenuCustom<?> menuCustom)
menuCustom
- the custom (application provides the widget) menu item to visit.Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.