|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.web.ConfluenceWebMenuManager
public class ConfluenceWebMenuManager
Retrieves menu details from plugins via a ConfluenceWebInterfaceManager
.
Field Summary | |
---|---|
protected ConfluenceWebInterfaceManager |
webInterfaceManager
|
Constructor Summary | |
---|---|
ConfluenceWebMenuManager()
|
Method Summary | |
---|---|
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,
List<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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ConfluenceWebInterfaceManager webInterfaceManager
Constructor Detail |
---|
public ConfluenceWebMenuManager()
Method Detail |
---|
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 in
WebMenu
which can be used for displaypublic WebMenu getMenu(String id, List<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 in
WebMenu
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |