public class ConfluenceWebMenuManager extends Object implements WebMenuManager
ConfluenceWebInterfaceManager
.Modifier and Type | Field and Description |
---|---|
protected ConfluenceWebInterfaceManager |
webInterfaceManager |
Constructor and Description |
---|
ConfluenceWebMenuManager() |
Modifier and Type | Method and Description |
---|---|
protected List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> |
getLeadingItems(String menuKey,
WebInterfaceContext context)
Returns items to be displayed at the top of the menu.
|
WebMenu |
getMenu(String id,
Collection<String> menuKeys,
WebInterfaceContext context)
Builds and returns a
WebMenu for display with the given properties and context. |
WebMenu |
getMenu(String id,
String menuKey,
WebInterfaceContext context)
Builds and returns a
WebMenu for display with the given properties and context. |
protected List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> |
getSectionItems(String menuKey,
String sectionKey,
WebInterfaceContext context)
Returns the items for a given section in the menu.
|
protected List<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> |
getSections(String menuKey,
WebInterfaceContext context)
Returns sections to be displayed in the menu.
|
protected List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> |
getTrailingItems(String menuKey,
WebInterfaceContext context)
Returns items to be displayed at the bottom of the menu.
|
void |
setWebInterfaceManager(ConfluenceWebInterfaceManager webInterfaceManager) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMenu
protected ConfluenceWebInterfaceManager webInterfaceManager
public WebMenu getMenu(String id, String menuKey, WebInterfaceContext context)
WebMenuManager
WebMenu
for display with the given properties and context.
WebMenuSection
)s with no menu items are not included in the final menu returned.
getMenu
in interface WebMenuManager
id
- the id of the menumenuKey
- the web section key of the menu being built (see WebInterfaceManager
)context
- the context in which the menu is being built inWebMenu
which can be used for displaypublic WebMenu getMenu(String id, Collection<String> menuKeys, WebInterfaceContext context)
WebMenuManager
WebMenu
for display with the given properties and context. This method
takes in a list of menu keys to allow for building a combination of menus.
WebMenuSection
)s with no menu items are not included in the final menu returned.
getMenu
in interface WebMenuManager
id
- the id of the menumenuKeys
- the web section keys of the menu being built with (see WebInterfaceManager
)context
- the context in which the menu is being built inWebMenu
which can be used for displayprotected List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getSectionItems(String menuKey, String sectionKey, WebInterfaceContext context)
protected List<com.atlassian.plugin.web.descriptors.WebSectionModuleDescriptor> getSections(String menuKey, WebInterfaceContext context)
protected List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getTrailingItems(String menuKey, WebInterfaceContext context)
protected List<com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> getLeadingItems(String menuKey, WebInterfaceContext context)
public void setWebInterfaceManager(ConfluenceWebInterfaceManager webInterfaceManager)
Copyright © 2003–2020 Atlassian. All rights reserved.