public class WebMenu extends Object
WebMenuSection
.Modifier and Type | Method and Description |
---|---|
void |
addSection(String sectionName,
String label,
List<? extends com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> items)
Adds a section to the menu with the given name and list of items.
|
String |
getId() |
List<WebMenuSection> |
getSections() |
boolean |
isEmpty() |
String |
toString() |
public WebMenu(String id)
public String getId()
public void addSection(String sectionName, String label, List<? extends com.atlassian.plugin.web.descriptors.WebItemModuleDescriptor> items)
sectionName
- the name of the section, used for ID and class name generationlabel
- the i18n label for the sectionitems
- the list of items in the menu sectionpublic boolean isEmpty()
addSection(String, String, List)
does
not allow the addition of empty sections.public List<WebMenuSection> getSections()
Copyright © 2003–2017 Atlassian. All rights reserved.