Copyright (C) 2014 Philip Helger (www.helger.com)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Determine all menu items to show, depending on the currently selected menu
boolean bAddAllChildrenOnThisLevel = false;
boolean bExpanded = false;
final boolean bIsTopLevel = getLevel () == 0;
bAddAllChildrenOnThisLevel = bShow;
if (bShow || bAddAllChildrenOnThisLevel)
bAddAllChildrenOnThisLevel = false;
- A map with all items to be displayed, where the key is the menu
item ID and the value is the expansion state of the item.
ValueEnforcer.notNull (aDeterminator, "Determinator");
TreeWalker.walkTree (aDeterminator.m_aMenuTree, aDeterminator);
Get all menu items without a separate
The menu tree to get all items from. May not be
- A non-
null map with all menu item IDs as keys.
ValueEnforcer.notNull (aMenuTree, "MenuTree");