public interface IMenuPathMapper
MenuItem
(pageMenuMap)Modifier and Type | Method and Description |
---|---|
Map<String,MenuItem> |
getGeneratedPageMenuMap(Object... params)
Consume a Menu, (typically the same generated by
getReferenceToPathMapping(Object...) and generate the pageMenuMap.The pageMenuMap ensures when the Navigation is happening, then the in Focus component knows which MenuItem is in focus and can decide the MenuItemState
accordingly. |
Map<String,String[]> |
getReferenceToPathMapping(Object... params)
A
MenuItem.getRefId() points to the raw resource that the menu points to (like classpath name). |
Map<String,MenuItem> getGeneratedPageMenuMap(Object... params)
getReferenceToPathMapping(Object...)
and generate the pageMenuMap.MenuItem
is in focus and can decide the MenuItemState
accordingly.Map<String,String[]> getReferenceToPathMapping(Object... params)
MenuItem.getRefId()
points to the raw resource that the menu points to (like classpath name).
To generate the Page Menu Map when the refId is not same as app path we require the additional mapping(s).
Note, a reference can have multiple path aliases.Map
of String to String arrayCopyright © 2018. All rights reserved.